diff --git a/Assets/Docs/objects/Character.md b/Assets/Docs/objects/Character.md index d056b158c..ccb712884 100644 --- a/Assets/Docs/objects/Character.md +++ b/Assets/Docs/objects/Character.md @@ -28,17 +28,78 @@ Inherits from object |CurrentAnimation|[String](../static/String.md)|False|Character's current playing animation.| |Grounded|bool|False|Character's grounded status.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|GetKilled|killer : [String](../static/String.md)|none|Kills the character. Callable by non-owners.| -|GetDamaged|killer : [String](../static/String.md)
damage : int|none|Damages the character and kills it if its health reaches 0. Callable by non-owners.| -|Emote|emote : [String](../static/String.md)|none|Causes the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.| -|PlayAnimation|animation : [String](../static/String.md)
fade : float = 0.1|none|Causes the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.| -|GetAnimationLength|animation : [String](../static/String.md)|float|Gets the length of animation.| -|PlaySound|sound : [String](../static/String.md)|none|Plays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.| -|StopSound|sound : [String](../static/String.md)|none|Stops the sound.| -|LookAt|position : [Vector3](../objects/Vector3.md)|none|Rotates the character such that it is looking towards a world position.| -|AddForce|force : [Vector3](../objects/Vector3.md)
mode : [String](../static/String.md) = Acceleration|none|Adds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.| -|Reveal|delay : float|none|Reveaal the titan for a set number of seconds.| -|AddOutline|color : [Color](../objects/Color.md) =
mode : [String](../static/String.md) = OutlineAll|none|Adds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor| -|RemoveOutline||none|Removes the outline effect from the character.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
GetKilled(killer : [String](../static/String.md))noneKills the character. Callable by non-owners.
GetDamaged(killer : [String](../static/String.md),damage : int)noneDamages the character and kills it if its health reaches 0. Callable by non-owners.
Emote(emote : [String](../static/String.md))noneCauses the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.
PlayAnimation(animation : [String](../static/String.md),fade : float = 0.1)noneCauses the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.
GetAnimationLength(animation : [String](../static/String.md))floatGets the length of animation.
PlaySound(sound : [String](../static/String.md))nonePlays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.
StopSound(sound : [String](../static/String.md))noneStops the sound.
LookAt(position : [Vector3](../objects/Vector3.md))noneRotates the character such that it is looking towards a world position.
AddForce(force : [Vector3](../objects/Vector3.md),mode : [String](../static/String.md) = Acceleration)noneAdds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.
Reveal(delay : float)noneReveaal the titan for a set number of seconds.
AddOutline(color : [Color](../objects/Color.md) = ,mode : [String](../static/String.md) = OutlineAll)noneAdds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor
RemoveOutline()noneRemoves the outline effect from the character.
diff --git a/Assets/Docs/objects/Character.md.meta b/Assets/Docs/objects/Character.md.meta deleted file mode 100644 index 8bd942bdb..000000000 --- a/Assets/Docs/objects/Character.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6a3278747746c814fadec616961f33d3 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Collider.md b/Assets/Docs/objects/Collider.md index 3304ac112..48b9700b5 100644 --- a/Assets/Docs/objects/Collider.md +++ b/Assets/Docs/objects/Collider.md @@ -16,8 +16,33 @@ Inherits from object |Transform|[Transform](../objects/Transform.md)|False|| |GameObjectTransform|[Transform](../objects/Transform.md)|False|| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|ClosestPoint|position : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|| -|ClosestPointOnBounds|position : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|| -|Raycast|start : [Vector3](../objects/Vector3.md)
end : [Vector3](../objects/Vector3.md)
maxDistance : float
collideWith : [String](../static/String.md)|[LineCastHitResult](../objects/LineCastHitResult.md)|| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
ClosestPoint(position : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)
ClosestPointOnBounds(position : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)
Raycast(start : [Vector3](../objects/Vector3.md),end : [Vector3](../objects/Vector3.md),maxDistance : float,collideWith : [String](../static/String.md))[LineCastHitResult](../objects/LineCastHitResult.md)
diff --git a/Assets/Docs/objects/Collider.md.meta b/Assets/Docs/objects/Collider.md.meta deleted file mode 100644 index 59df789dc..000000000 --- a/Assets/Docs/objects/Collider.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 16db6184f4cef6f49a76cd5a7dbf4727 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Collision.md b/Assets/Docs/objects/Collision.md index 7e5d8b704..144bc2422 100644 --- a/Assets/Docs/objects/Collision.md +++ b/Assets/Docs/objects/Collision.md @@ -7,7 +7,28 @@ Inherits from object |Impulse|[Vector3](../objects/Vector3.md)|False|| |RelativeVelocity|[Vector3](../objects/Vector3.md)|False|| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|GetContact|index : int|none|| -|GetContacts||none|| + ++++ + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
GetContact(index : int)none
GetContacts()none
diff --git a/Assets/Docs/objects/Collision.md.meta b/Assets/Docs/objects/Collision.md.meta deleted file mode 100644 index 5e13f7b58..000000000 --- a/Assets/Docs/objects/Collision.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6b37bfd12c38cd3408725221b38a81a1 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Color.md b/Assets/Docs/objects/Color.md index e48f7dd2d..217e5e10c 100644 --- a/Assets/Docs/objects/Color.md +++ b/Assets/Docs/objects/Color.md @@ -8,11 +8,49 @@ Inherits from object |B|int|False|Blue component of the color| |A|int|False|Alpha component of the color| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|ToHexString||[String](../static/String.md)|Converts the color to a hex string| + ++++ + + + + + + + + + + + + + + +
FunctionReturnsDescription
ToHexString()[String](../static/String.md)Converts the color to a hex string
## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Lerp|a : [Color](../objects/Color.md)
b : [Color](../objects/Color.md)
t : float|[Color](../objects/Color.md)|Linearly interpolates between colors a and b by t| -|Gradient|a : [Color](../objects/Color.md)
b : [Color](../objects/Color.md)
t : float|[Color](../objects/Color.md)|Creates a gradient color from two colors| + ++++ + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Lerp(a : [Color](../objects/Color.md),b : [Color](../objects/Color.md),t : float)[Color](../objects/Color.md)Linearly interpolates between colors a and b by t
Gradient(a : [Color](../objects/Color.md),b : [Color](../objects/Color.md),t : float)[Color](../objects/Color.md)Creates a gradient color from two colors
diff --git a/Assets/Docs/objects/Color.md.meta b/Assets/Docs/objects/Color.md.meta deleted file mode 100644 index 1cb0312cc..000000000 --- a/Assets/Docs/objects/Color.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bca17e22a2f35c74db74a9439e75c7ae -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Dict.md b/Assets/Docs/objects/Dict.md index 2403a06c0..301395259 100644 --- a/Assets/Docs/objects/Dict.md +++ b/Assets/Docs/objects/Dict.md @@ -11,10 +11,43 @@ example = Dict() |Keys|[List](../objects/List.md)|False|Keys in the dictionary| |Values|[List](../objects/List.md)|False|Values in the dictionary| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Clear||none|Clears the dictionary| -|Get|key : Object
defaultValue : Object = |Object|Gets a value from the dictionary| -|Set|key : Object
value : Object|none|Sets a value in the dictionary| -|Remove|key : Object|none|Removes a value from the dictionary| -|Contains|key : Object|bool|Checks if the dictionary contains a key| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Clear()noneClears the dictionary
Get(key : Object,defaultValue : Object = )ObjectGets a value from the dictionary
Set(key : Object,value : Object)noneSets a value in the dictionary
Remove(key : Object)noneRemoves a value from the dictionary
Contains(key : Object)boolChecks if the dictionary contains a key
diff --git a/Assets/Docs/objects/Dict.md.meta b/Assets/Docs/objects/Dict.md.meta deleted file mode 100644 index 1275757c8..000000000 --- a/Assets/Docs/objects/Dict.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4313e09b5cbefdd478ce030770190ae9 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Human.md b/Assets/Docs/objects/Human.md index 694e1c7d2..2728391a0 100644 --- a/Assets/Docs/objects/Human.md +++ b/Assets/Docs/objects/Human.md @@ -57,29 +57,138 @@ Inherits from [Character](../objects/Character.md) |CurrentAnimation|[String](../static/String.md)|False|Character's current playing animation.| |Grounded|bool|False|Character's grounded status.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Refill||bool|Refills the gas of the human| -|RefillImmediate||none|Refills the gas of the human immediately| -|ClearHooks||none|Clears all hooks| -|ClearLeftHook||none|Clears the left hook| -|ClearRightHook||none|Clears the right hook| -|MountMapObject|mapObject : [MapObject](../objects/MapObject.md)
positionOffset : [Vector3](../objects/Vector3.md)
rotationOffset : [Vector3](../objects/Vector3.md)|none|Mounts the human on a map object| -|MountTransform|transform : [Transform](../objects/Transform.md)
positionOffset : [Vector3](../objects/Vector3.md)
rotationOffset : [Vector3](../objects/Vector3.md)|none|Mounts the human on a transform| -|Unmount||none|Unmounts the human| -|SetSpecial|special : [String](../static/String.md)|none|Sets the special of the human| -|ActivateSpecial||none|Activates the special of the human| -|SetWeapon|weapon : [String](../static/String.md)|none|Sets the weapon of the human| -|DisablePerks||none|Disables all perks of the human| -|GetKilled|killer : [String](../static/String.md)|none|Kills the character. Callable by non-owners.| -|GetDamaged|killer : [String](../static/String.md)
damage : int|none|Damages the character and kills it if its health reaches 0. Callable by non-owners.| -|Emote|emote : [String](../static/String.md)|none|Causes the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.| -|PlayAnimation|animation : [String](../static/String.md)
fade : float = 0.1|none|Causes the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.| -|GetAnimationLength|animation : [String](../static/String.md)|float|Gets the length of animation.| -|PlaySound|sound : [String](../static/String.md)|none|Plays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.| -|StopSound|sound : [String](../static/String.md)|none|Stops the sound.| -|LookAt|position : [Vector3](../objects/Vector3.md)|none|Rotates the character such that it is looking towards a world position.| -|AddForce|force : [Vector3](../objects/Vector3.md)
mode : [String](../static/String.md) = Acceleration|none|Adds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.| -|Reveal|delay : float|none|Reveaal the titan for a set number of seconds.| -|AddOutline|color : [Color](../objects/Color.md) =
mode : [String](../static/String.md) = OutlineAll|none|Adds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor| -|RemoveOutline||none|Removes the outline effect from the character.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Refill()boolRefills the gas of the human
RefillImmediate()noneRefills the gas of the human immediately
ClearHooks()noneClears all hooks
ClearLeftHook()noneClears the left hook
ClearRightHook()noneClears the right hook
MountMapObject(mapObject : [MapObject](../objects/MapObject.md),positionOffset : [Vector3](../objects/Vector3.md),rotationOffset : [Vector3](../objects/Vector3.md))noneMounts the human on a map object
MountTransform(transform : [Transform](../objects/Transform.md),positionOffset : [Vector3](../objects/Vector3.md),rotationOffset : [Vector3](../objects/Vector3.md))noneMounts the human on a transform
Unmount()noneUnmounts the human
SetSpecial(special : [String](../static/String.md))noneSets the special of the human
ActivateSpecial()noneActivates the special of the human
SetWeapon(weapon : [String](../static/String.md))noneSets the weapon of the human
DisablePerks()noneDisables all perks of the human
GetKilled(killer : [String](../static/String.md))noneKills the character. Callable by non-owners.
GetDamaged(killer : [String](../static/String.md),damage : int)noneDamages the character and kills it if its health reaches 0. Callable by non-owners.
Emote(emote : [String](../static/String.md))noneCauses the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.
PlayAnimation(animation : [String](../static/String.md),fade : float = 0.1)noneCauses the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.
GetAnimationLength(animation : [String](../static/String.md))floatGets the length of animation.
PlaySound(sound : [String](../static/String.md))nonePlays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.
StopSound(sound : [String](../static/String.md))noneStops the sound.
LookAt(position : [Vector3](../objects/Vector3.md))noneRotates the character such that it is looking towards a world position.
AddForce(force : [Vector3](../objects/Vector3.md),mode : [String](../static/String.md) = Acceleration)noneAdds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.
Reveal(delay : float)noneReveaal the titan for a set number of seconds.
AddOutline(color : [Color](../objects/Color.md) = ,mode : [String](../static/String.md) = OutlineAll)noneAdds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor
RemoveOutline()noneRemoves the outline effect from the character.
diff --git a/Assets/Docs/objects/Human.md.meta b/Assets/Docs/objects/Human.md.meta deleted file mode 100644 index 617ff881f..000000000 --- a/Assets/Docs/objects/Human.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c057b9d36239b6945adc8451eaec206d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/LineCastHitResult.md.meta b/Assets/Docs/objects/LineCastHitResult.md.meta deleted file mode 100644 index 58a229db3..000000000 --- a/Assets/Docs/objects/LineCastHitResult.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7e5ee69bb1a91d64da1522a52e6dfa7c -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/LineRenderer.md b/Assets/Docs/objects/LineRenderer.md index 2b7736321..48ca4f345 100644 --- a/Assets/Docs/objects/LineRenderer.md +++ b/Assets/Docs/objects/LineRenderer.md @@ -22,11 +22,49 @@ Inherits from object |WidthMultiplier|float|False|The width multiplier of the line renderer| |ColorGradientMode|[String](../static/String.md)|False|The color gradient mode of the line renderer| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|GetPosition|index : int|[Vector3](../objects/Vector3.md)|Get the position of a point in the line renderer| -|SetPosition|index : int
position : [Vector3](../objects/Vector3.md)|none|Set the position of a point in the line renderer| + ++++ + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
GetPosition(index : int)[Vector3](../objects/Vector3.md)Get the position of a point in the line renderer
SetPosition(index : int,position : [Vector3](../objects/Vector3.md))noneSet the position of a point in the line renderer
## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|CreateLineRenderer||[LineRenderer](../objects/LineRenderer.md)|[Obselete] Create a new LineRenderer| + ++++ + + + + + + + + + + + + + + +
FunctionReturnsDescription
CreateLineRenderer()[LineRenderer](../objects/LineRenderer.md)[Obselete] Create a new LineRenderer
diff --git a/Assets/Docs/objects/LineRenderer.md.meta b/Assets/Docs/objects/LineRenderer.md.meta deleted file mode 100644 index d8dbc4824..000000000 --- a/Assets/Docs/objects/LineRenderer.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8f8ac6475280ce24995a1fd86d91be69 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/List.md b/Assets/Docs/objects/List.md index 5bcf85024..6b984f261 100644 --- a/Assets/Docs/objects/List.md +++ b/Assets/Docs/objects/List.md @@ -10,20 +10,93 @@ example = List((CustomLogicSetBuiltin)) |---|---|---|---| |Count|int|True|The number of elements in the list| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Clear||none|Clear all list elements| -|Get|index : int|Object|Get the element at the specified index| -|Set|index : int
value : Object|none|Set the element at the specified index| -|Add|value : Object|none|Add an element to the end of the list| -|InsertAt|index : int
value : Object|none|Insert an element at the specified index| -|RemoveAt|index : int|none|Remove the element at the specified index| -|Remove|value : Object|none|Remove the first occurrence of the specified element| -|Contains|value : Object|bool|Check if the list contains the specified element| -|Sort||none|Sort the list| -|SortCustom|method : UserMethod|none|Sort the list using a custom method, expects a method with the signature int method(a,b)| -|Filter|method : UserMethod|[List](../objects/List.md)|Filter the list using a custom method, expects a method with the signature bool method(element)| -|Map|method : UserMethod|[List](../objects/List.md)|Map the list using a custom method, expects a method with the signature object method(element)| -|Reduce|method : UserMethod
initialValue : Object|Object|Reduce the list using a custom method, expects a method with the signature object method(acc, element)| -|Randomize||none|Randomize the list| -|ToSet||[Set](../objects/Set.md)|Convert the list to a set| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Clear()noneClear all list elements
Get(index : int)ObjectGet the element at the specified index
Set(index : int,value : Object)noneSet the element at the specified index
Add(value : Object)noneAdd an element to the end of the list
InsertAt(index : int,value : Object)noneInsert an element at the specified index
RemoveAt(index : int)noneRemove the element at the specified index
Remove(value : Object)noneRemove the first occurrence of the specified element
Contains(value : Object)boolCheck if the list contains the specified element
Sort()noneSort the list
SortCustom(method : UserMethod)noneSort the list using a custom method, expects a method with the signature int method(a,b)
Filter(method : UserMethod)[List](../objects/List.md)Filter the list using a custom method, expects a method with the signature bool method(element)
Map(method : UserMethod)[List](../objects/List.md)Map the list using a custom method, expects a method with the signature object method(element)
Reduce(method : UserMethod,initialValue : Object)ObjectReduce the list using a custom method, expects a method with the signature object method(acc, element)
Randomize()noneRandomize the list
ToSet()[Set](../objects/Set.md)Convert the list to a set
diff --git a/Assets/Docs/objects/List.md.meta b/Assets/Docs/objects/List.md.meta deleted file mode 100644 index 98672b481..000000000 --- a/Assets/Docs/objects/List.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c0032e789e5d3c7499f4d3ac614c6420 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/MapObject.md b/Assets/Docs/objects/MapObject.md index cbf8f705b..c0c711c52 100644 --- a/Assets/Docs/objects/MapObject.md +++ b/Assets/Docs/objects/MapObject.md @@ -28,29 +28,138 @@ Inherits from object |Tag|[String](../static/String.md)|False|The tag of the object| |Layer|int|False|The layer of the object| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|AddComponent|name : [String](../static/String.md)|CustomLogicComponentInstance|Add a component to the object| -|RemoveComponent|name : [String](../static/String.md)|none|Remove a component from the object| -|GetComponent|name : [String](../static/String.md)|CustomLogicComponentInstance|Get a component from the object| -|SetComponentEnabled|name : [String](../static/String.md)
enabled : bool|none|Set whether a component is enabled| -|SetComponentsEnabled|enabled : bool|none|Set whether all components are enabled| -|AddSphereCollider|collideMode : [String](../static/String.md)
collideWith : [String](../static/String.md)
center : [Vector3](../objects/Vector3.md)
radius : float|none|Add a sphere collider to the object| -|AddBoxCollider|collideMode : [String](../static/String.md)
collideWith : [String](../static/String.md)
center : [Vector3](../objects/Vector3.md) =
size : [Vector3](../objects/Vector3.md) = |none|Add a box collider to the object| -|AddSphereTarget|team : [String](../static/String.md)
center : [Vector3](../objects/Vector3.md)
radius : float|[MapTargetable](../objects/MapTargetable.md)|Add a sphere target to the object| -|AddBoxTarget|team : [String](../static/String.md)
center : [Vector3](../objects/Vector3.md)
size : [Vector3](../objects/Vector3.md)|[MapTargetable](../objects/MapTargetable.md)|Add a box target to the object| -|GetChild|name : [String](../static/String.md)|[MapObject](../objects/MapObject.md)|Get a child object by name| -|GetChildren||[List](../objects/List.md)|Get all child objects| -|GetTransform|name : [String](../static/String.md)|[Transform](../objects/Transform.md)|Get a child transform by name| -|SetColorAll|color : [Color](../objects/Color.md)|none|Set the color of all renderers on the object| -|InBounds|position : [Vector3](../objects/Vector3.md)|bool|Check if a position is within the object's bounds| -|GetBoundsAverageCenter||[Vector3](../objects/Vector3.md)|Get the bounds average center| -|GetBoundsCenter||[Vector3](../objects/Vector3.md)|Get the bounds center| -|GetBoundsSize||[Vector3](../objects/Vector3.md)|Get the bounds size| -|GetBoundsMin||[Vector3](../objects/Vector3.md)|Get the bounds min| -|GetBoundsMax||[Vector3](../objects/Vector3.md)|Get the bounds max| -|GetBoundsExtents||[Vector3](../objects/Vector3.md)|Get the bounds extents| -|GetCorners||[List](../objects/List.md)|Get the corners of the bounds| -|AddBuiltinComponent|parameter0 : Object =
parameter1 : Object =
parameter2 : Object =
parameter3 : Object =
parameter4 : Object = |none|[OBSELETE] Add builtin component| -|ReadBuiltinComponent|name : [String](../static/String.md)
param : [String](../static/String.md)|Object|[OBSELETE] Read a builtin component| -|UpdateBuiltinComponent|parameter0 : Object =
parameter1 : Object =
parameter2 : Object =
parameter3 : Object =
parameter4 : Object = |none|[OBSELETE] Update a builtin component| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
AddComponent(name : [String](../static/String.md))CustomLogicComponentInstanceAdd a component to the object
RemoveComponent(name : [String](../static/String.md))noneRemove a component from the object
GetComponent(name : [String](../static/String.md))CustomLogicComponentInstanceGet a component from the object
SetComponentEnabled(name : [String](../static/String.md),enabled : bool)noneSet whether a component is enabled
SetComponentsEnabled(enabled : bool)noneSet whether all components are enabled
AddSphereCollider(collideMode : [String](../static/String.md),collideWith : [String](../static/String.md),center : [Vector3](../objects/Vector3.md),radius : float)noneAdd a sphere collider to the object
AddBoxCollider(collideMode : [String](../static/String.md),collideWith : [String](../static/String.md),center : [Vector3](../objects/Vector3.md) = ,size : [Vector3](../objects/Vector3.md) = )noneAdd a box collider to the object
AddSphereTarget(team : [String](../static/String.md),center : [Vector3](../objects/Vector3.md),radius : float)[MapTargetable](../objects/MapTargetable.md)Add a sphere target to the object
AddBoxTarget(team : [String](../static/String.md),center : [Vector3](../objects/Vector3.md),size : [Vector3](../objects/Vector3.md))[MapTargetable](../objects/MapTargetable.md)Add a box target to the object
GetChild(name : [String](../static/String.md))[MapObject](../objects/MapObject.md)Get a child object by name
GetChildren()[List](../objects/List.md)Get all child objects
GetTransform(name : [String](../static/String.md))[Transform](../objects/Transform.md)Get a child transform by name
SetColorAll(color : [Color](../objects/Color.md))noneSet the color of all renderers on the object
InBounds(position : [Vector3](../objects/Vector3.md))boolCheck if a position is within the object's bounds
GetBoundsAverageCenter()[Vector3](../objects/Vector3.md)Get the bounds average center
GetBoundsCenter()[Vector3](../objects/Vector3.md)Get the bounds center
GetBoundsSize()[Vector3](../objects/Vector3.md)Get the bounds size
GetBoundsMin()[Vector3](../objects/Vector3.md)Get the bounds min
GetBoundsMax()[Vector3](../objects/Vector3.md)Get the bounds max
GetBoundsExtents()[Vector3](../objects/Vector3.md)Get the bounds extents
GetCorners()[List](../objects/List.md)Get the corners of the bounds
AddBuiltinComponent(parameter0 : Object = ,parameter1 : Object = ,parameter2 : Object = ,parameter3 : Object = ,parameter4 : Object = )none[OBSELETE] Add builtin component
ReadBuiltinComponent(name : [String](../static/String.md),param : [String](../static/String.md))Object[OBSELETE] Read a builtin component
UpdateBuiltinComponent(parameter0 : Object = ,parameter1 : Object = ,parameter2 : Object = ,parameter3 : Object = ,parameter4 : Object = )none[OBSELETE] Update a builtin component
diff --git a/Assets/Docs/objects/MapObject.md.meta b/Assets/Docs/objects/MapObject.md.meta deleted file mode 100644 index 3a712e8d7..000000000 --- a/Assets/Docs/objects/MapObject.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e3a4854345f298443a242d9af9ac8e9e -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/MapTargetable.md.meta b/Assets/Docs/objects/MapTargetable.md.meta deleted file mode 100644 index 3b0ee27ef..000000000 --- a/Assets/Docs/objects/MapTargetable.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7ccfe181a650e4240a89586f30477bf7 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/NetworkView.md b/Assets/Docs/objects/NetworkView.md index e716b92c9..294882f69 100644 --- a/Assets/Docs/objects/NetworkView.md +++ b/Assets/Docs/objects/NetworkView.md @@ -5,11 +5,48 @@ Inherits from object |---|---|---|---| |Owner|[Player](../objects/Player.md)|False|The network view's owner.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Transfer|player : [Player](../objects/Player.md)|none|Owner only. Transfer ownership of this NetworkView to another player.| -|SendMessage|target : [Player](../objects/Player.md)
msg : [String](../static/String.md)|none|Send a message to a target player. This will be received in any of the MapObject attached components through the OnNetworkMessage callback.| -|SendMessageAll|msg : [String](../static/String.md)|none|Send a message to all players including myself.| -|SendMessageOthers|msg : [String](../static/String.md)|none|Send a message to players excluding myself.| -|SendStream|obj : Object|none|Send an object to the network sync stream. This represents sending data from the object owner to all non-owner observers, and should only be called in the SendNetworkStream callback in the attached component. It only works with some object types: primitives and Vector3.| -|ReceiveStream||Object|Receive an object through the network sync stream. This represents receiving data from the object owner as a non-owner observer, and should only be called in the OnNetworkStream callback.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Transfer(player : [Player](../objects/Player.md))noneOwner only. Transfer ownership of this NetworkView to another player.
SendMessage(target : [Player](../objects/Player.md),msg : [String](../static/String.md))noneSend a message to a target player. This will be received in any of the MapObject attached components through the OnNetworkMessage callback.
SendMessageAll(msg : [String](../static/String.md))noneSend a message to all players including myself.
SendMessageOthers(msg : [String](../static/String.md))noneSend a message to players excluding myself.
SendStream(obj : Object)noneSend an object to the network sync stream. This represents sending data from the object owner to all non-owner observers, and should only be called in the SendNetworkStream callback in the attached component. It only works with some object types: primitives and Vector3.
ReceiveStream()ObjectReceive an object through the network sync stream. This represents receiving data from the object owner as a non-owner observer, and should only be called in the OnNetworkStream callback.
diff --git a/Assets/Docs/objects/NetworkView.md.meta b/Assets/Docs/objects/NetworkView.md.meta deleted file mode 100644 index 03ab175cf..000000000 --- a/Assets/Docs/objects/NetworkView.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5210f64a30e529c4bba76bd1fe982c68 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Physics.md b/Assets/Docs/objects/Physics.md index 933d45e88..ff78ab0ca 100644 --- a/Assets/Docs/objects/Physics.md +++ b/Assets/Docs/objects/Physics.md @@ -1,7 +1,28 @@ # Physics Inherits from object ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|LineCast|start : [Vector3](../objects/Vector3.md)
end : [Vector3](../objects/Vector3.md)
collideWith : [String](../static/String.md)|Object|Performs a line cast between two points.| -|SphereCast|start : [Vector3](../objects/Vector3.md)
end : [Vector3](../objects/Vector3.md)
radius : float
collideWith : [String](../static/String.md)|Object|Performs a sphere cast between two points.| + ++++ + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
LineCast(start : [Vector3](../objects/Vector3.md),end : [Vector3](../objects/Vector3.md),collideWith : [String](../static/String.md))ObjectPerforms a line cast between two points.
SphereCast(start : [Vector3](../objects/Vector3.md),end : [Vector3](../objects/Vector3.md),radius : float,collideWith : [String](../static/String.md))ObjectPerforms a sphere cast between two points.
diff --git a/Assets/Docs/objects/Physics.md.meta b/Assets/Docs/objects/Physics.md.meta deleted file mode 100644 index 5373b44f1..000000000 --- a/Assets/Docs/objects/Physics.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7232282bfe0c42a49a0611ba9f367e4b -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Player.md b/Assets/Docs/objects/Player.md index 3c552b8c4..d619b8156 100644 --- a/Assets/Docs/objects/Player.md +++ b/Assets/Docs/objects/Player.md @@ -20,8 +20,33 @@ Inherits from object |SpectateID|int|False|The player's spectating ID. If not spectating anyone, returns -1.| |SpawnPoint|[Vector3](../objects/Vector3.md)|False|Player's respawn point. Is initially null and can be set back to null, at which point map spawn points are used.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|GetCustomProperty|property : [String](../static/String.md)|Object|Get a custom property at given key. Must be a primitive type. This is synced to all clients.| -|SetCustomProperty|property : [String](../static/String.md)
value : Object|none|Sets a custom property at given key. Must be a primitive type. This is synced to all clients.| -|ClearKDR||none|Clears kills, deaths, highestdamage, and totaldamage properties.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
GetCustomProperty(property : [String](../static/String.md))ObjectGet a custom property at given key. Must be a primitive type. This is synced to all clients.
SetCustomProperty(property : [String](../static/String.md),value : Object)noneSets a custom property at given key. Must be a primitive type. This is synced to all clients.
ClearKDR()noneClears kills, deaths, highestdamage, and totaldamage properties.
diff --git a/Assets/Docs/objects/Player.md.meta b/Assets/Docs/objects/Player.md.meta deleted file mode 100644 index c38788cbb..000000000 --- a/Assets/Docs/objects/Player.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 36022b2b77991754a9a2a4f125f52f49 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Quaternion.md b/Assets/Docs/objects/Quaternion.md index d72827785..f15674e7e 100644 --- a/Assets/Docs/objects/Quaternion.md +++ b/Assets/Docs/objects/Quaternion.md @@ -13,24 +13,114 @@ Inherits from object |---|---|---|---| |Identity|[Quaternion](../objects/Quaternion.md)|False|The identity rotation (Read Only).| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|\_\_Copy\_\_||Object|Override to deepcopy object on assignment, used for structs. Ex: copy = original is equivalent to copy = original.\_\_Copy\_\_()| -|\_\_Add\_\_|self : Object
other : Object|Object|Override to implement addition, used for + operator. Ex: a + b is equivalent to a.\_\_Add\_\_(a, b)| -|\_\_Sub\_\_|self : Object
other : Object|Object|Override to implement subtraction, used for - operator. Ex: a - b is equivalent to a.\_\_Sub\_\_(a, b)| -|\_\_Mul\_\_|self : Object
other : Object|Object|Override to implement multiplication, used for * operator. Ex: a * b is equivalent to a.\_\_Mul\_\_(a, b)| -|\_\_Div\_\_|self : Object
other : Object|Object|Override to implement division, used for / operator. Ex: a / b is equivalent to a.\_\_Div\_\_(a, b)| -|\_\_Eq\_\_|self : Object
other : Object|bool|Override to implement equality comparison, used for == and != operators. Ex: a == b is equivalent to a.\_\_Eq\_\_(a, b)| -|\_\_Hash\_\_||int|Override to implement hashing, used for GetHashCode - Used for Dictionaries/Sets. Ex: hash = obj.GetHashCode() is equivalent to hash = obj.\_\_Hash\_\_()| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
\_\_Copy\_\_()ObjectOverride to deepcopy object on assignment, used for structs. Ex: copy = original is equivalent to copy = original.\_\_Copy\_\_()
\_\_Add\_\_(self : Object,other : Object)ObjectOverride to implement addition, used for + operator. Ex: a + b is equivalent to a.\_\_Add\_\_(a, b)
\_\_Sub\_\_(self : Object,other : Object)ObjectOverride to implement subtraction, used for - operator. Ex: a - b is equivalent to a.\_\_Sub\_\_(a, b)
\_\_Mul\_\_(self : Object,other : Object)ObjectOverride to implement multiplication, used for * operator. Ex: a * b is equivalent to a.\_\_Mul\_\_(a, b)
\_\_Div\_\_(self : Object,other : Object)ObjectOverride to implement division, used for / operator. Ex: a / b is equivalent to a.\_\_Div\_\_(a, b)
\_\_Eq\_\_(self : Object,other : Object)boolOverride to implement equality comparison, used for == and != operators. Ex: a == b is equivalent to a.\_\_Eq\_\_(a, b)
\_\_Hash\_\_()intOverride to implement hashing, used for GetHashCode - Used for Dictionaries/Sets. Ex: hash = obj.GetHashCode() is equivalent to hash = obj.\_\_Hash\_\_()
## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Lerp|a : [Quaternion](../objects/Quaternion.md)
b : [Quaternion](../objects/Quaternion.md)
t : float|[Quaternion](../objects/Quaternion.md)|Interpolates between a and b by t and normalizes the result afterwards.| -|LerpUnclamped|a : [Quaternion](../objects/Quaternion.md)
b : [Quaternion](../objects/Quaternion.md)
t : float|[Quaternion](../objects/Quaternion.md)|Interpolates between a and b by t and normalizes the result afterwards. The parameter t is not clamped.| -|Slerp|a : [Quaternion](../objects/Quaternion.md)
b : [Quaternion](../objects/Quaternion.md)
t : float|[Quaternion](../objects/Quaternion.md)|Spherically linear interpolates between unit quaternions a and b by a ratio of t.| -|SlerpUnclamped|a : [Quaternion](../objects/Quaternion.md)
b : [Quaternion](../objects/Quaternion.md)
t : float|[Quaternion](../objects/Quaternion.md)|Spherically linear interpolates between unit quaternions a and b by t.| -|FromEuler|euler : [Vector3](../objects/Vector3.md)|[Quaternion](../objects/Quaternion.md)|Returns the Quaternion rotation from the given euler angles.| -|LookRotation|forward : [Vector3](../objects/Vector3.md)
upwards : [Vector3](../objects/Vector3.md) = |[Quaternion](../objects/Quaternion.md)|Creates a rotation with the specified forward and upwards directions.| -|FromToRotation|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Quaternion](../objects/Quaternion.md)|Creates a rotation from fromDirection to toDirection.| -|Inverse|q : [Quaternion](../objects/Quaternion.md)|[Quaternion](../objects/Quaternion.md)|Returns the Inverse of rotation.| -|RotateTowards|from : [Quaternion](../objects/Quaternion.md)
to : [Quaternion](../objects/Quaternion.md)
maxDegreesDelta : float|[Quaternion](../objects/Quaternion.md)|Rotates a rotation from towards to.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Lerp(a : [Quaternion](../objects/Quaternion.md),b : [Quaternion](../objects/Quaternion.md),t : float)[Quaternion](../objects/Quaternion.md)Interpolates between a and b by t and normalizes the result afterwards.
LerpUnclamped(a : [Quaternion](../objects/Quaternion.md),b : [Quaternion](../objects/Quaternion.md),t : float)[Quaternion](../objects/Quaternion.md)Interpolates between a and b by t and normalizes the result afterwards. The parameter t is not clamped.
Slerp(a : [Quaternion](../objects/Quaternion.md),b : [Quaternion](../objects/Quaternion.md),t : float)[Quaternion](../objects/Quaternion.md)Spherically linear interpolates between unit quaternions a and b by a ratio of t.
SlerpUnclamped(a : [Quaternion](../objects/Quaternion.md),b : [Quaternion](../objects/Quaternion.md),t : float)[Quaternion](../objects/Quaternion.md)Spherically linear interpolates between unit quaternions a and b by t.
FromEuler(euler : [Vector3](../objects/Vector3.md))[Quaternion](../objects/Quaternion.md)Returns the Quaternion rotation from the given euler angles.
LookRotation(forward : [Vector3](../objects/Vector3.md),upwards : [Vector3](../objects/Vector3.md) = )[Quaternion](../objects/Quaternion.md)Creates a rotation with the specified forward and upwards directions.
FromToRotation(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Quaternion](../objects/Quaternion.md)Creates a rotation from fromDirection to toDirection.
Inverse(q : [Quaternion](../objects/Quaternion.md))[Quaternion](../objects/Quaternion.md)Returns the Inverse of rotation.
RotateTowards(from : [Quaternion](../objects/Quaternion.md),to : [Quaternion](../objects/Quaternion.md),maxDegreesDelta : float)[Quaternion](../objects/Quaternion.md)Rotates a rotation from towards to.
diff --git a/Assets/Docs/objects/Quaternion.md.meta b/Assets/Docs/objects/Quaternion.md.meta deleted file mode 100644 index cbceea674..000000000 --- a/Assets/Docs/objects/Quaternion.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9ec4566cf2d450b488b0801c67ca2296 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/README.md.meta b/Assets/Docs/objects/README.md.meta deleted file mode 100644 index e322b1317..000000000 --- a/Assets/Docs/objects/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4abbeb9d654abf4458052c628f921e05 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Range.md b/Assets/Docs/objects/Range.md index 653e95029..9dd537b51 100644 --- a/Assets/Docs/objects/Range.md +++ b/Assets/Docs/objects/Range.md @@ -8,20 +8,93 @@ example = Range((Object[])) |---|---|---|---| |Count|int|True|The number of elements in the list| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Clear||none|Clear all list elements| -|Get|index : int|Object|Get the element at the specified index| -|Set|index : int
value : Object|none|Set the element at the specified index| -|Add|value : Object|none|Add an element to the end of the list| -|InsertAt|index : int
value : Object|none|Insert an element at the specified index| -|RemoveAt|index : int|none|Remove the element at the specified index| -|Remove|value : Object|none|Remove the first occurrence of the specified element| -|Contains|value : Object|bool|Check if the list contains the specified element| -|Sort||none|Sort the list| -|SortCustom|method : UserMethod|none|Sort the list using a custom method, expects a method with the signature int method(a,b)| -|Filter|method : UserMethod|[List](../objects/List.md)|Filter the list using a custom method, expects a method with the signature bool method(element)| -|Map|method : UserMethod|[List](../objects/List.md)|Map the list using a custom method, expects a method with the signature object method(element)| -|Reduce|method : UserMethod
initialValue : Object|Object|Reduce the list using a custom method, expects a method with the signature object method(acc, element)| -|Randomize||none|Randomize the list| -|ToSet||[Set](../objects/Set.md)|Convert the list to a set| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Clear()noneClear all list elements
Get(index : int)ObjectGet the element at the specified index
Set(index : int,value : Object)noneSet the element at the specified index
Add(value : Object)noneAdd an element to the end of the list
InsertAt(index : int,value : Object)noneInsert an element at the specified index
RemoveAt(index : int)noneRemove the element at the specified index
Remove(value : Object)noneRemove the first occurrence of the specified element
Contains(value : Object)boolCheck if the list contains the specified element
Sort()noneSort the list
SortCustom(method : UserMethod)noneSort the list using a custom method, expects a method with the signature int method(a,b)
Filter(method : UserMethod)[List](../objects/List.md)Filter the list using a custom method, expects a method with the signature bool method(element)
Map(method : UserMethod)[List](../objects/List.md)Map the list using a custom method, expects a method with the signature object method(element)
Reduce(method : UserMethod,initialValue : Object)ObjectReduce the list using a custom method, expects a method with the signature object method(acc, element)
Randomize()noneRandomize the list
ToSet()[Set](../objects/Set.md)Convert the list to a set
diff --git a/Assets/Docs/objects/Range.md.meta b/Assets/Docs/objects/Range.md.meta deleted file mode 100644 index 2951d5aeb..000000000 --- a/Assets/Docs/objects/Range.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 403a4b6334147554c9d9ee83fd5273b0 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Set.md b/Assets/Docs/objects/Set.md index 94636d4c1..60b61bd52 100644 --- a/Assets/Docs/objects/Set.md +++ b/Assets/Docs/objects/Set.md @@ -10,19 +10,88 @@ example = Set((CustomLogicListBuiltin)) |---|---|---|---| |Count|int|True|The number of elements in the set| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Clear||none|Clear all set elements| -|Contains|value : Object|bool|Check if the set contains the specified element| -|Add|value : Object|none|Add an element to the set| -|Remove|value : Object|none|Remove the element from the set| -|Union|set : [Set](../objects/Set.md)|none|Union with another set| -|Intersect|set : [Set](../objects/Set.md)|none|Intersect with another set| -|Difference|set : [Set](../objects/Set.md)|none|Difference with another set| -|IsSubsetOf|set : [Set](../objects/Set.md)|bool|Check if the set is a subset of another set| -|IsSupersetOf|set : [Set](../objects/Set.md)|bool|Check if the set is a superset of another set| -|IsProperSubsetOf|set : [Set](../objects/Set.md)|bool|Check if the set is a proper subset of another set| -|IsProperSupersetOf|set : [Set](../objects/Set.md)|bool|Check if the set is a proper superset of another set| -|Overlaps|set : [Set](../objects/Set.md)|bool|Check if the set overlaps with another set| -|SetEquals|set : [Set](../objects/Set.md)|bool|Check if the set has the same elements as another set| -|ToList||[List](../objects/List.md)|Convert the set to a list| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Clear()noneClear all set elements
Contains(value : Object)boolCheck if the set contains the specified element
Add(value : Object)noneAdd an element to the set
Remove(value : Object)noneRemove the element from the set
Union(set : [Set](../objects/Set.md))noneUnion with another set
Intersect(set : [Set](../objects/Set.md))noneIntersect with another set
Difference(set : [Set](../objects/Set.md))noneDifference with another set
IsSubsetOf(set : [Set](../objects/Set.md))boolCheck if the set is a subset of another set
IsSupersetOf(set : [Set](../objects/Set.md))boolCheck if the set is a superset of another set
IsProperSubsetOf(set : [Set](../objects/Set.md))boolCheck if the set is a proper subset of another set
IsProperSupersetOf(set : [Set](../objects/Set.md))boolCheck if the set is a proper superset of another set
Overlaps(set : [Set](../objects/Set.md))boolCheck if the set overlaps with another set
SetEquals(set : [Set](../objects/Set.md))boolCheck if the set has the same elements as another set
ToList()[List](../objects/List.md)Convert the set to a list
diff --git a/Assets/Docs/objects/Set.md.meta b/Assets/Docs/objects/Set.md.meta deleted file mode 100644 index 080516b1a..000000000 --- a/Assets/Docs/objects/Set.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9abf9500dbc392f4b9fcd13c0d369e7a -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Shifter.md b/Assets/Docs/objects/Shifter.md index 36331fe56..0efb4b42c 100644 --- a/Assets/Docs/objects/Shifter.md +++ b/Assets/Docs/objects/Shifter.md @@ -48,23 +48,108 @@ Inherits from [Character](../objects/Character.md) |CurrentAnimation|[String](../static/String.md)|False|Character's current playing animation.| |Grounded|bool|False|Character's grounded status.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|MoveTo|position : [Vector3](../objects/Vector3.md)
range : float
ignoreEnemies : bool|none|Causes the (AI) shifter to move towards a position. If ignoreEnemies is true, will not engage enemies along the way.| -|Target|enemyObj : Object
focus : float|none|Causes the (AI) shifter to target an enemy character or MapTargetable for focusTime seconds. If focusTime is 0 it will use the default focus time.| -|Idle|time : float|none|Causes the (AI) shifter to idle for time seconds before beginning to wander. During idle the titan will not react or move at all.| -|Wander||none|Causes the (AI) shifter to cancel any move commands and begin wandering randomly.| -|Blind||none|Causes the shifter to enter the blind state.| -|Cripple|time : float|none|Causes the shifter to enter the cripple state.| -|GetKilled|killer : [String](../static/String.md)|none|Kills the character. Callable by non-owners.| -|GetDamaged|killer : [String](../static/String.md)
damage : int|none|Damages the character and kills it if its health reaches 0. Callable by non-owners.| -|Emote|emote : [String](../static/String.md)|none|Causes the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.| -|PlayAnimation|animation : [String](../static/String.md)
fade : float = 0.1|none|Causes the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.| -|GetAnimationLength|animation : [String](../static/String.md)|float|Gets the length of animation.| -|PlaySound|sound : [String](../static/String.md)|none|Plays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.| -|StopSound|sound : [String](../static/String.md)|none|Stops the sound.| -|LookAt|position : [Vector3](../objects/Vector3.md)|none|Rotates the character such that it is looking towards a world position.| -|AddForce|force : [Vector3](../objects/Vector3.md)
mode : [String](../static/String.md) = Acceleration|none|Adds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.| -|Reveal|delay : float|none|Reveaal the titan for a set number of seconds.| -|AddOutline|color : [Color](../objects/Color.md) =
mode : [String](../static/String.md) = OutlineAll|none|Adds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor| -|RemoveOutline||none|Removes the outline effect from the character.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
MoveTo(position : [Vector3](../objects/Vector3.md),range : float,ignoreEnemies : bool)noneCauses the (AI) shifter to move towards a position. If ignoreEnemies is true, will not engage enemies along the way.
Target(enemyObj : Object,focus : float)noneCauses the (AI) shifter to target an enemy character or MapTargetable for focusTime seconds. If focusTime is 0 it will use the default focus time.
Idle(time : float)noneCauses the (AI) shifter to idle for time seconds before beginning to wander. During idle the titan will not react or move at all.
Wander()noneCauses the (AI) shifter to cancel any move commands and begin wandering randomly.
Blind()noneCauses the shifter to enter the blind state.
Cripple(time : float)noneCauses the shifter to enter the cripple state.
GetKilled(killer : [String](../static/String.md))noneKills the character. Callable by non-owners.
GetDamaged(killer : [String](../static/String.md),damage : int)noneDamages the character and kills it if its health reaches 0. Callable by non-owners.
Emote(emote : [String](../static/String.md))noneCauses the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.
PlayAnimation(animation : [String](../static/String.md),fade : float = 0.1)noneCauses the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.
GetAnimationLength(animation : [String](../static/String.md))floatGets the length of animation.
PlaySound(sound : [String](../static/String.md))nonePlays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.
StopSound(sound : [String](../static/String.md))noneStops the sound.
LookAt(position : [Vector3](../objects/Vector3.md))noneRotates the character such that it is looking towards a world position.
AddForce(force : [Vector3](../objects/Vector3.md),mode : [String](../static/String.md) = Acceleration)noneAdds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.
Reveal(delay : float)noneReveaal the titan for a set number of seconds.
AddOutline(color : [Color](../objects/Color.md) = ,mode : [String](../static/String.md) = OutlineAll)noneAdds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor
RemoveOutline()noneRemoves the outline effect from the character.
diff --git a/Assets/Docs/objects/Shifter.md.meta b/Assets/Docs/objects/Shifter.md.meta deleted file mode 100644 index 82d9e04f4..000000000 --- a/Assets/Docs/objects/Shifter.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 021567c0c7945da478e83e6ca79f06a8 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Titan.md b/Assets/Docs/objects/Titan.md index 15035112c..d5ee2add0 100644 --- a/Assets/Docs/objects/Titan.md +++ b/Assets/Docs/objects/Titan.md @@ -53,23 +53,108 @@ Inherits from [Character](../objects/Character.md) |CurrentAnimation|[String](../static/String.md)|False|Character's current playing animation.| |Grounded|bool|False|Character's grounded status.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|MoveTo|position : [Vector3](../objects/Vector3.md)
range : float
ignoreEnemies : bool|none|Causes the (AI) titan to move towards a position and stopping when within specified range. If ignoreEnemies is true, will not engage enemies along the way.| -|Target|enemyObj : Object
focus : float|none|Causes the (AI) titan to target an enemy character or MapTargetable for focusTime seconds. If focusTime is 0 it will use the default focus time| -|Idle|time : float|none|Causes the (AI) titan to idle for time seconds before beginning to wander. During idle the titan will not react or move at all.| -|Wander||none|Causes the (AI) titan to cancel any move commands and begin wandering randomly.| -|Blind||none|Causes the titan to enter the blind state.| -|Cripple|time : float|none|Causes the titan to enter the cripple state for time seconds. Using 0 will use the default cripple time.| -|GetKilled|killer : [String](../static/String.md)|none|Kills the character. Callable by non-owners.| -|GetDamaged|killer : [String](../static/String.md)
damage : int|none|Damages the character and kills it if its health reaches 0. Callable by non-owners.| -|Emote|emote : [String](../static/String.md)|none|Causes the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.| -|PlayAnimation|animation : [String](../static/String.md)
fade : float = 0.1|none|Causes the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.| -|GetAnimationLength|animation : [String](../static/String.md)|float|Gets the length of animation.| -|PlaySound|sound : [String](../static/String.md)|none|Plays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.| -|StopSound|sound : [String](../static/String.md)|none|Stops the sound.| -|LookAt|position : [Vector3](../objects/Vector3.md)|none|Rotates the character such that it is looking towards a world position.| -|AddForce|force : [Vector3](../objects/Vector3.md)
mode : [String](../static/String.md) = Acceleration|none|Adds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.| -|Reveal|delay : float|none|Reveaal the titan for a set number of seconds.| -|AddOutline|color : [Color](../objects/Color.md) =
mode : [String](../static/String.md) = OutlineAll|none|Adds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor| -|RemoveOutline||none|Removes the outline effect from the character.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
MoveTo(position : [Vector3](../objects/Vector3.md),range : float,ignoreEnemies : bool)noneCauses the (AI) titan to move towards a position and stopping when within specified range. If ignoreEnemies is true, will not engage enemies along the way.
Target(enemyObj : Object,focus : float)noneCauses the (AI) titan to target an enemy character or MapTargetable for focusTime seconds. If focusTime is 0 it will use the default focus time
Idle(time : float)noneCauses the (AI) titan to idle for time seconds before beginning to wander. During idle the titan will not react or move at all.
Wander()noneCauses the (AI) titan to cancel any move commands and begin wandering randomly.
Blind()noneCauses the titan to enter the blind state.
Cripple(time : float)noneCauses the titan to enter the cripple state for time seconds. Using 0 will use the default cripple time.
GetKilled(killer : [String](../static/String.md))noneKills the character. Callable by non-owners.
GetDamaged(killer : [String](../static/String.md),damage : int)noneDamages the character and kills it if its health reaches 0. Callable by non-owners.
Emote(emote : [String](../static/String.md))noneCauses the character to emote. The list of available emotes is the same as those shown in the in-game emote menu.
PlayAnimation(animation : [String](../static/String.md),fade : float = 0.1)noneCauses the character to play an animation. If the fade parameter is provided, will crossfade the animation by this timestep. Available animations can be found here: Human, Titan, Annie, Eren. Use the right-hand string value for the animation.
GetAnimationLength(animation : [String](../static/String.md))floatGets the length of animation.
PlaySound(sound : [String](../static/String.md))nonePlays a sound if present in the character. Available sound names can be found here: Humans, Shifters, Titans. Note that shifters also have all titan sounds.
StopSound(sound : [String](../static/String.md))noneStops the sound.
LookAt(position : [Vector3](../objects/Vector3.md))noneRotates the character such that it is looking towards a world position.
AddForce(force : [Vector3](../objects/Vector3.md),mode : [String](../static/String.md) = Acceleration)noneAdds a force to the character with given force vector and optional mode. Valid modes are Force, Acceleration, Impulse, VelocityChange with default being Acceleration.
Reveal(delay : float)noneReveaal the titan for a set number of seconds.
AddOutline(color : [Color](../objects/Color.md) = ,mode : [String](../static/String.md) = OutlineAll)noneAdds an outline effect with the given color and mode. Valid modes are: OutlineAll, OutlineVisible, OutlineHidden, OutlineAndSilhouette, SilhouetteOnly, OutlineAndLightenColor
RemoveOutline()noneRemoves the outline effect from the character.
diff --git a/Assets/Docs/objects/Titan.md.meta b/Assets/Docs/objects/Titan.md.meta deleted file mode 100644 index 4fe7f9fec..000000000 --- a/Assets/Docs/objects/Titan.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 10c9a3e11d53e4a45895267b60ac41aa -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Transform.md b/Assets/Docs/objects/Transform.md index 13776472e..31591edd8 100644 --- a/Assets/Docs/objects/Transform.md +++ b/Assets/Docs/objects/Transform.md @@ -17,20 +17,93 @@ Inherits from object |Up|[Vector3](../objects/Vector3.md)|False|Gets the up vector of the transform.| |Right|[Vector3](../objects/Vector3.md)|False|Gets the right vector of the transform.| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|GetTransform|name : [String](../static/String.md)|[Transform](../objects/Transform.md)|Gets the transform of the specified child.| -|GetTransforms||[List](../objects/List.md)|Gets all child transforms.| -|PlayAnimation|anim : [String](../static/String.md)
fade : float = 0.1|none|Plays the specified animation.| -|GetAnimationLength|anim : [String](../static/String.md)|float|Gets the length of the specified animation.| -|PlaySound||none|Plays the sound.| -|StopSound||none|Stops the sound.| -|ToggleParticle|enabled : bool|none|Toggles the particle system.| -|InverseTransformDirection|direction : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Transforms a direction from world space to local space. The opposite of Transform.TransformDirection.| -|InverseTransformPoint|point : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Transforms position from world space to local space.| -|TransformDirection|direction : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Transforms direction from local space to world space.| -|TransformPoint|point : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Transforms position from local space to world space.| -|Rotate|rotation : [Vector3](../objects/Vector3.md)|none|Applies a rotation of eulerAngles.z degrees around the z-axis, eulerAngles.x degrees around the x-axis, and eulerAngles.y degrees around the y-axis (in that order).| -|RotateAround|point : [Vector3](../objects/Vector3.md)
axis : [Vector3](../objects/Vector3.md)
angle : float|none|Rotates the transform about axis passing through point in world coordinates by angle degrees.| -|LookAt|target : [Vector3](../objects/Vector3.md)|none|Rotates the transform so the forward vector points at worldPosition.| -|SetRenderersEnabled|enabled : bool|none|Sets the enabled state of all child renderers.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
GetTransform(name : [String](../static/String.md))[Transform](../objects/Transform.md)Gets the transform of the specified child.
GetTransforms()[List](../objects/List.md)Gets all child transforms.
PlayAnimation(anim : [String](../static/String.md),fade : float = 0.1)nonePlays the specified animation.
GetAnimationLength(anim : [String](../static/String.md))floatGets the length of the specified animation.
PlaySound()nonePlays the sound.
StopSound()noneStops the sound.
ToggleParticle(enabled : bool)noneToggles the particle system.
InverseTransformDirection(direction : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Transforms a direction from world space to local space. The opposite of Transform.TransformDirection.
InverseTransformPoint(point : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Transforms position from world space to local space.
TransformDirection(direction : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Transforms direction from local space to world space.
TransformPoint(point : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Transforms position from local space to world space.
Rotate(rotation : [Vector3](../objects/Vector3.md))noneApplies a rotation of eulerAngles.z degrees around the z-axis, eulerAngles.x degrees around the x-axis, and eulerAngles.y degrees around the y-axis (in that order).
RotateAround(point : [Vector3](../objects/Vector3.md),axis : [Vector3](../objects/Vector3.md),angle : float)noneRotates the transform about axis passing through point in world coordinates by angle degrees.
LookAt(target : [Vector3](../objects/Vector3.md))noneRotates the transform so the forward vector points at worldPosition.
SetRenderersEnabled(enabled : bool)noneSets the enabled state of all child renderers.
diff --git a/Assets/Docs/objects/Transform.md.meta b/Assets/Docs/objects/Transform.md.meta deleted file mode 100644 index f34167c7e..000000000 --- a/Assets/Docs/objects/Transform.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e6f444199675f834cac8937bac0152fe -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Vector2.md b/Assets/Docs/objects/Vector2.md index 79819f4c0..2fb15871b 100644 --- a/Assets/Docs/objects/Vector2.md +++ b/Assets/Docs/objects/Vector2.md @@ -20,29 +20,139 @@ Inherits from object |NegativeInfinity|[Vector2](../objects/Vector2.md)|False|Shorthand for writing Vector2(float.PositiveInfinity, float.PositiveInfinity).| |PositiveInfinity|[Vector2](../objects/Vector2.md)|False|Shorthand for writing Vector2(float.PositiveInfinity, float.PositiveInfinity).| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Set|x : float
y : float|none|Set x and y components of an existing Vector2.| -|Normalize||none|Makes this vector have a magnitude of 1.| -|\_\_Copy\_\_||Object|Override to deepcopy object on assignment, used for structs. Ex: copy = original is equivalent to copy = original.\_\_Copy\_\_()| -|\_\_Add\_\_|self : Object
other : Object|Object|Override to implement addition, used for + operator. Ex: a + b is equivalent to a.\_\_Add\_\_(a, b)| -|\_\_Sub\_\_|self : Object
other : Object|Object|Override to implement subtraction, used for - operator. Ex: a - b is equivalent to a.\_\_Sub\_\_(a, b)| -|\_\_Mul\_\_|self : Object
other : Object|Object|Override to implement multiplication, used for * operator. Ex: a * b is equivalent to a.\_\_Mul\_\_(a, b)| -|\_\_Div\_\_|self : Object
other : Object|Object|Override to implement division, used for / operator. Ex: a / b is equivalent to a.\_\_Div\_\_(a, b)| -|\_\_Eq\_\_|self : Object
other : Object|bool|Override to implement equality comparison, used for == and != operators. Ex: a == b is equivalent to a.\_\_Eq\_\_(a, b)| -|\_\_Hash\_\_||int|Override to implement hashing, used for GetHashCode - Used for Dictionaries/Sets. Ex: hash = obj.GetHashCode() is equivalent to hash = obj.\_\_Hash\_\_()| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Set(x : float,y : float)noneSet x and y components of an existing Vector2.
Normalize()noneMakes this vector have a magnitude of 1.
\_\_Copy\_\_()ObjectOverride to deepcopy object on assignment, used for structs. Ex: copy = original is equivalent to copy = original.\_\_Copy\_\_()
\_\_Add\_\_(self : Object,other : Object)ObjectOverride to implement addition, used for + operator. Ex: a + b is equivalent to a.\_\_Add\_\_(a, b)
\_\_Sub\_\_(self : Object,other : Object)ObjectOverride to implement subtraction, used for - operator. Ex: a - b is equivalent to a.\_\_Sub\_\_(a, b)
\_\_Mul\_\_(self : Object,other : Object)ObjectOverride to implement multiplication, used for * operator. Ex: a * b is equivalent to a.\_\_Mul\_\_(a, b)
\_\_Div\_\_(self : Object,other : Object)ObjectOverride to implement division, used for / operator. Ex: a / b is equivalent to a.\_\_Div\_\_(a, b)
\_\_Eq\_\_(self : Object,other : Object)boolOverride to implement equality comparison, used for == and != operators. Ex: a == b is equivalent to a.\_\_Eq\_\_(a, b)
\_\_Hash\_\_()intOverride to implement hashing, used for GetHashCode - Used for Dictionaries/Sets. Ex: hash = obj.GetHashCode() is equivalent to hash = obj.\_\_Hash\_\_()
## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Angle|from : [Vector2](../objects/Vector2.md)
to : [Vector2](../objects/Vector2.md)|float|Gets the unsigned angle in degrees between from and to.| -|ClampMagnitude|vector : [Vector2](../objects/Vector2.md)
maxLength : float|[Vector2](../objects/Vector2.md)|Returns a copy of vector with its magnitude clamped to maxLength.| -|Distance|a : [Vector2](../objects/Vector2.md)
b : [Vector2](../objects/Vector2.md)|float|Returns the distance between a and b.| -|Dot|a : [Vector2](../objects/Vector2.md)
b : [Vector2](../objects/Vector2.md)|float|Dot Product of two vectors.| -|Lerp|a : [Vector2](../objects/Vector2.md)
b : [Vector2](../objects/Vector2.md)
t : float|[Vector2](../objects/Vector2.md)|Linearly interpolates between vectors a and b by t.| -|LerpUnclamped|a : [Vector2](../objects/Vector2.md)
b : [Vector2](../objects/Vector2.md)
t : float|[Vector2](../objects/Vector2.md)|Linearly interpolates between vectors a and b by t.| -|Max|a : [Vector2](../objects/Vector2.md)
b : [Vector2](../objects/Vector2.md)|[Vector2](../objects/Vector2.md)|Returns a vector that is made from the largest components of two vectors.| -|Min|a : [Vector2](../objects/Vector2.md)
b : [Vector2](../objects/Vector2.md)|[Vector2](../objects/Vector2.md)|Returns a vector that is made from the smallest components of two vectors.| -|MoveTowards|current : [Vector2](../objects/Vector2.md)
target : [Vector2](../objects/Vector2.md)
maxDistanceDelta : float|[Vector2](../objects/Vector2.md)|Moves a point current towards target.| -|Reflect|inDirection : [Vector2](../objects/Vector2.md)
inNormal : [Vector2](../objects/Vector2.md)|[Vector2](../objects/Vector2.md)|Reflects a vector off the vector defined by a normal.| -|SignedAngle|from : [Vector2](../objects/Vector2.md)
to : [Vector2](../objects/Vector2.md)|float|Gets the signed angle in degrees between from and to.| -|SmoothDamp|current : [Vector2](../objects/Vector2.md)
target : [Vector2](../objects/Vector2.md)
currentVelocity : [Vector2](../objects/Vector2.md)
smoothTime : float
maxSpeed : float|[Vector2](../objects/Vector2.md)|| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Angle(from : [Vector2](../objects/Vector2.md),to : [Vector2](../objects/Vector2.md))floatGets the unsigned angle in degrees between from and to.
ClampMagnitude(vector : [Vector2](../objects/Vector2.md),maxLength : float)[Vector2](../objects/Vector2.md)Returns a copy of vector with its magnitude clamped to maxLength.
Distance(a : [Vector2](../objects/Vector2.md),b : [Vector2](../objects/Vector2.md))floatReturns the distance between a and b.
Dot(a : [Vector2](../objects/Vector2.md),b : [Vector2](../objects/Vector2.md))floatDot Product of two vectors.
Lerp(a : [Vector2](../objects/Vector2.md),b : [Vector2](../objects/Vector2.md),t : float)[Vector2](../objects/Vector2.md)Linearly interpolates between vectors a and b by t.
LerpUnclamped(a : [Vector2](../objects/Vector2.md),b : [Vector2](../objects/Vector2.md),t : float)[Vector2](../objects/Vector2.md)Linearly interpolates between vectors a and b by t.
Max(a : [Vector2](../objects/Vector2.md),b : [Vector2](../objects/Vector2.md))[Vector2](../objects/Vector2.md)Returns a vector that is made from the largest components of two vectors.
Min(a : [Vector2](../objects/Vector2.md),b : [Vector2](../objects/Vector2.md))[Vector2](../objects/Vector2.md)Returns a vector that is made from the smallest components of two vectors.
MoveTowards(current : [Vector2](../objects/Vector2.md),target : [Vector2](../objects/Vector2.md),maxDistanceDelta : float)[Vector2](../objects/Vector2.md)Moves a point current towards target.
Reflect(inDirection : [Vector2](../objects/Vector2.md),inNormal : [Vector2](../objects/Vector2.md))[Vector2](../objects/Vector2.md)Reflects a vector off the vector defined by a normal.
SignedAngle(from : [Vector2](../objects/Vector2.md),to : [Vector2](../objects/Vector2.md))floatGets the signed angle in degrees between from and to.
SmoothDamp(current : [Vector2](../objects/Vector2.md),target : [Vector2](../objects/Vector2.md),currentVelocity : [Vector2](../objects/Vector2.md),smoothTime : float,maxSpeed : float)[Vector2](../objects/Vector2.md)
diff --git a/Assets/Docs/objects/Vector2.md.meta b/Assets/Docs/objects/Vector2.md.meta deleted file mode 100644 index 041b4c1a7..000000000 --- a/Assets/Docs/objects/Vector2.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: be70e158aba1f194692f967ec2d19055 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/objects/Vector3.md b/Assets/Docs/objects/Vector3.md index c1c98c5dc..78c88198d 100644 --- a/Assets/Docs/objects/Vector3.md +++ b/Assets/Docs/objects/Vector3.md @@ -23,40 +23,194 @@ Inherits from object |NegativeInfinity|[Vector3](../objects/Vector3.md)|False|Shorthand for writing Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity).| |PositiveInfinity|[Vector3](../objects/Vector3.md)|False|Shorthand for writing Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity).| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Set|x : float
y : float
z : float|none|Set x, y and z components of an existing Vector3.| -|Scale|scale : Object|[Vector3](../objects/Vector3.md)|Returns the Vector3 multiplied by scale.| -|Multiply|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Returns the multiplication of two Vector3s.| -|Divide|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Returns the division of two Vector3s.| -|GetRotationDirection|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Gets the relational Vector3 "b" using "a" as a reference. This is equivalent to setting MapObject.Forward to Vector "a", and finding the relative "b" vector.| -|\_\_Copy\_\_||Object|Override to deepcopy object on assignment, used for structs. Ex: copy = original is equivalent to copy = original.\_\_Copy\_\_()| -|\_\_Add\_\_|self : Object
other : Object|Object|Override to implement addition, used for + operator. Ex: a + b is equivalent to a.\_\_Add\_\_(a, b)| -|\_\_Sub\_\_|self : Object
other : Object|Object|Override to implement subtraction, used for - operator. Ex: a - b is equivalent to a.\_\_Sub\_\_(a, b)| -|\_\_Mul\_\_|self : Object
other : Object|Object|Override to implement multiplication, used for * operator. Ex: a * b is equivalent to a.\_\_Mul\_\_(a, b)| -|\_\_Div\_\_|self : Object
other : Object|Object|Override to implement division, used for / operator. Ex: a / b is equivalent to a.\_\_Div\_\_(a, b)| -|\_\_Eq\_\_|self : Object
other : Object|bool|Override to implement equality comparison, used for == and != operators. Ex: a == b is equivalent to a.\_\_Eq\_\_(a, b)| -|\_\_Hash\_\_||int|Override to implement hashing, used for GetHashCode - Used for Dictionaries/Sets. Ex: hash = obj.GetHashCode() is equivalent to hash = obj.\_\_Hash\_\_()| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Set(x : float,y : float,z : float)noneSet x, y and z components of an existing Vector3.
Scale(scale : Object)[Vector3](../objects/Vector3.md)Returns the Vector3 multiplied by scale.
Multiply(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Returns the multiplication of two Vector3s.
Divide(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Returns the division of two Vector3s.
GetRotationDirection(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Gets the relational Vector3 "b" using "a" as a reference. This is equivalent to setting MapObject.Forward to Vector "a", and finding the relative "b" vector.
\_\_Copy\_\_()ObjectOverride to deepcopy object on assignment, used for structs. Ex: copy = original is equivalent to copy = original.\_\_Copy\_\_()
\_\_Add\_\_(self : Object,other : Object)ObjectOverride to implement addition, used for + operator. Ex: a + b is equivalent to a.\_\_Add\_\_(a, b)
\_\_Sub\_\_(self : Object,other : Object)ObjectOverride to implement subtraction, used for - operator. Ex: a - b is equivalent to a.\_\_Sub\_\_(a, b)
\_\_Mul\_\_(self : Object,other : Object)ObjectOverride to implement multiplication, used for * operator. Ex: a * b is equivalent to a.\_\_Mul\_\_(a, b)
\_\_Div\_\_(self : Object,other : Object)ObjectOverride to implement division, used for / operator. Ex: a / b is equivalent to a.\_\_Div\_\_(a, b)
\_\_Eq\_\_(self : Object,other : Object)boolOverride to implement equality comparison, used for == and != operators. Ex: a == b is equivalent to a.\_\_Eq\_\_(a, b)
\_\_Hash\_\_()intOverride to implement hashing, used for GetHashCode - Used for Dictionaries/Sets. Ex: hash = obj.GetHashCode() is equivalent to hash = obj.\_\_Hash\_\_()
## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Angle|from : [Vector3](../objects/Vector3.md)
to : [Vector3](../objects/Vector3.md)|float|Calculates the angle between vectors from and.| -|ClampMagnitude|vector : [Vector3](../objects/Vector3.md)
maxLength : float|[Vector3](../objects/Vector3.md)|Returns a copy of vector with its magnitude clamped to maxLength.| -|Cross|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Cross Product of two vectors.| -|Distance|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|float|Returns the distance between a and b.| -|Dot|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|float|Dot Product of two vectors.| -|Lerp|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)
t : float|[Vector3](../objects/Vector3.md)|Linearly interpolates between two points.| -|LerpUnclamped|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)
t : float|[Vector3](../objects/Vector3.md)|Linearly interpolates between two vectors.| -|Max|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Returns a vector that is made from the largest components of two vectors.| -|Min|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Returns a vector that is made from the smallest components of two vectors.| -|MoveTowards|current : [Vector3](../objects/Vector3.md)
target : [Vector3](../objects/Vector3.md)
maxDistanceDelta : float|[Vector3](../objects/Vector3.md)|Calculate a position between the points specified by current and target, moving no farther than the distance specified by maxDistanceDelta.| -|Normalize|value : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Makes this vector have a magnitude of 1.| -|OrthoNormalize|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|none|| -|Project|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Projects a vector onto another vector.| -|ProjectOnPlane|vector : [Vector3](../objects/Vector3.md)
plane : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Projects a vector onto a plane defined by a normal orthogonal to the plane.| -|Reflect|inDirection : [Vector3](../objects/Vector3.md)
inNormal : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Reflects a vector off the plane defined by a normal.| -|RotateTowards|current : [Vector3](../objects/Vector3.md)
target : [Vector3](../objects/Vector3.md)
maxRadiansDelta : float
maxMagnitudeDelta : float|[Vector3](../objects/Vector3.md)|Rotates a vector current towards target.| -|SignedAngle|from : [Vector3](../objects/Vector3.md)
to : [Vector3](../objects/Vector3.md)
axis : [Vector3](../objects/Vector3.md)|float|Calculates the signed angle between vectors from and to in relation to axis.| -|Slerp|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)
t : float|[Vector3](../objects/Vector3.md)|Spherically interpolates between two vectors.| -|SlerpUnclamped|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)
t : float|[Vector3](../objects/Vector3.md)|Spherically interpolates between two vectors.| -|SmoothDamp|current : [Vector3](../objects/Vector3.md)
target : [Vector3](../objects/Vector3.md)
currentVelocity : [Vector3](../objects/Vector3.md)
smoothTime : float
maxSpeed : float|[Vector3](../objects/Vector3.md)|| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Angle(from : [Vector3](../objects/Vector3.md),to : [Vector3](../objects/Vector3.md))floatCalculates the angle between vectors from and.
ClampMagnitude(vector : [Vector3](../objects/Vector3.md),maxLength : float)[Vector3](../objects/Vector3.md)Returns a copy of vector with its magnitude clamped to maxLength.
Cross(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Cross Product of two vectors.
Distance(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))floatReturns the distance between a and b.
Dot(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))floatDot Product of two vectors.
Lerp(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md),t : float)[Vector3](../objects/Vector3.md)Linearly interpolates between two points.
LerpUnclamped(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md),t : float)[Vector3](../objects/Vector3.md)Linearly interpolates between two vectors.
Max(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Returns a vector that is made from the largest components of two vectors.
Min(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Returns a vector that is made from the smallest components of two vectors.
MoveTowards(current : [Vector3](../objects/Vector3.md),target : [Vector3](../objects/Vector3.md),maxDistanceDelta : float)[Vector3](../objects/Vector3.md)Calculate a position between the points specified by current and target, moving no farther than the distance specified by maxDistanceDelta.
Normalize(value : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Makes this vector have a magnitude of 1.
OrthoNormalize(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))none
Project(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Projects a vector onto another vector.
ProjectOnPlane(vector : [Vector3](../objects/Vector3.md),plane : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Projects a vector onto a plane defined by a normal orthogonal to the plane.
Reflect(inDirection : [Vector3](../objects/Vector3.md),inNormal : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Reflects a vector off the plane defined by a normal.
RotateTowards(current : [Vector3](../objects/Vector3.md),target : [Vector3](../objects/Vector3.md),maxRadiansDelta : float,maxMagnitudeDelta : float)[Vector3](../objects/Vector3.md)Rotates a vector current towards target.
SignedAngle(from : [Vector3](../objects/Vector3.md),to : [Vector3](../objects/Vector3.md),axis : [Vector3](../objects/Vector3.md))floatCalculates the signed angle between vectors from and to in relation to axis.
Slerp(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md),t : float)[Vector3](../objects/Vector3.md)Spherically interpolates between two vectors.
SlerpUnclamped(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md),t : float)[Vector3](../objects/Vector3.md)Spherically interpolates between two vectors.
SmoothDamp(current : [Vector3](../objects/Vector3.md),target : [Vector3](../objects/Vector3.md),currentVelocity : [Vector3](../objects/Vector3.md),smoothTime : float,maxSpeed : float)[Vector3](../objects/Vector3.md)
diff --git a/Assets/Docs/objects/Vector3.md.meta b/Assets/Docs/objects/Vector3.md.meta deleted file mode 100644 index 51dc93388..000000000 --- a/Assets/Docs/objects/Vector3.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: dc05bc094dfcbde408f3a0a9624a5603 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Camera.md b/Assets/Docs/static/Camera.md index ab8cd9c03..5146f657a 100644 --- a/Assets/Docs/static/Camera.md +++ b/Assets/Docs/static/Camera.md @@ -14,14 +14,63 @@ Inherits from object |Up|[Vector3](../objects/Vector3.md)|False|Up vector of the camera.| |FollowDistance|float|False|Distance from the camera to the character.| ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|SetManual|manual : bool|none|Sets the camera manual mode. If true, camera will only be controlled by custom logic. If false, camera will follow the spawned or spectated player and read input.| -|SetPosition|position : [Vector3](../objects/Vector3.md)|none|Sets camera position.| -|SetRotation|rotation : [Vector3](../objects/Vector3.md)|none|Sets camera rotation.| -|SetVelocity|velocity : [Vector3](../objects/Vector3.md)|none|Sets camera velocity.| -|LookAt|position : [Vector3](../objects/Vector3.md)|none|Sets the camera forward direction such that it is looking at a world position.| -|SetFOV|fov : float|none|Sets the camera field of view. Use 0 to use the default field of view.| -|SetCameraMode|mode : [String](../static/String.md)|none|Forces the player to use a certain camera mode, taking priority over their camera setting. Accepted values are TPS, Original, FPS.| -|ResetDistance||none|Resets the follow distance to player's settings.| -|ResetCameraMode||none|Resets the camera mode to player's settings.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
SetManual(manual : bool)noneSets the camera manual mode. If true, camera will only be controlled by custom logic. If false, camera will follow the spawned or spectated player and read input.
SetPosition(position : [Vector3](../objects/Vector3.md))noneSets camera position.
SetRotation(rotation : [Vector3](../objects/Vector3.md))noneSets camera rotation.
SetVelocity(velocity : [Vector3](../objects/Vector3.md))noneSets camera velocity.
LookAt(position : [Vector3](../objects/Vector3.md))noneSets the camera forward direction such that it is looking at a world position.
SetFOV(fov : float)noneSets the camera field of view. Use 0 to use the default field of view.
SetCameraMode(mode : [String](../static/String.md))noneForces the player to use a certain camera mode, taking priority over their camera setting. Accepted values are TPS, Original, FPS.
ResetDistance()noneResets the follow distance to player's settings.
ResetCameraMode()noneResets the camera mode to player's settings.
diff --git a/Assets/Docs/static/Camera.md.meta b/Assets/Docs/static/Camera.md.meta deleted file mode 100644 index 33582db36..000000000 --- a/Assets/Docs/static/Camera.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9b0a821a3702dbc4b95a0194d9f1d18e -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Convert.md b/Assets/Docs/static/Convert.md index 647d7e0cf..1e302a314 100644 --- a/Assets/Docs/static/Convert.md +++ b/Assets/Docs/static/Convert.md @@ -1,20 +1,93 @@ # Convert Inherits from object ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|ToFloat|value : Object|float|Converts a value to a float| -|ToInt|value : Object|int|Converts a value to an int| -|ToBool|value : Object|bool|Converts a value to a bool| -|ToString|value : Object|[String](../static/String.md)|Converts a value to a string| -|IsFloat|value : Object|bool|Checks if the value is a float| -|IsInt|value : Object|bool|Checks if the value is an int| -|IsBool|value : Object|bool|Checks if the value is a bool| -|IsString|value : Object|bool|Checks if the value is a string| -|IsObject|value : Object|bool|Checks if the value is an object| -|IsList|value : Object|bool|Checks if the value is a list| -|IsDict|value : Object|bool|Checks if the value is a dictionary| -|HasVariable|cInstance : CustomLogicClassInstance
variableName : [String](../static/String.md)|bool|Checks if the class instance has a variable| -|DefineVariable|cInstance : CustomLogicClassInstance
variableName : [String](../static/String.md)
value : Object|none|Defines a variable for the class instance| -|RemoveVariable|cInstance : CustomLogicClassInstance
variableName : [String](../static/String.md)|none|Removes a variable from the class instance| -|GetType|cInstance : CustomLogicClassInstance|[String](../static/String.md)|Gets the type of the class instance| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
ToFloat(value : Object)floatConverts a value to a float
ToInt(value : Object)intConverts a value to an int
ToBool(value : Object)boolConverts a value to a bool
ToString(value : Object)[String](../static/String.md)Converts a value to a string
IsFloat(value : Object)boolChecks if the value is a float
IsInt(value : Object)boolChecks if the value is an int
IsBool(value : Object)boolChecks if the value is a bool
IsString(value : Object)boolChecks if the value is a string
IsObject(value : Object)boolChecks if the value is an object
IsList(value : Object)boolChecks if the value is a list
IsDict(value : Object)boolChecks if the value is a dictionary
HasVariable(cInstance : CustomLogicClassInstance,variableName : [String](../static/String.md))boolChecks if the class instance has a variable
DefineVariable(cInstance : CustomLogicClassInstance,variableName : [String](../static/String.md),value : Object)noneDefines a variable for the class instance
RemoveVariable(cInstance : CustomLogicClassInstance,variableName : [String](../static/String.md))noneRemoves a variable from the class instance
GetType(cInstance : CustomLogicClassInstance)[String](../static/String.md)Gets the type of the class instance
diff --git a/Assets/Docs/static/Convert.md.meta b/Assets/Docs/static/Convert.md.meta deleted file mode 100644 index 039d4c9f2..000000000 --- a/Assets/Docs/static/Convert.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b435cd0cd75560c45860c58b9062d60a -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Cutscene.md b/Assets/Docs/static/Cutscene.md index f6fe8d885..c235503e0 100644 --- a/Assets/Docs/static/Cutscene.md +++ b/Assets/Docs/static/Cutscene.md @@ -1,9 +1,38 @@ # Cutscene Inherits from object ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Start|name : [String](../static/String.md)
full : bool|none|Start a cutscene| -|ShowDialogue|icon : [String](../static/String.md)
title : [String](../static/String.md)
content : [String](../static/String.md)|none|Show a dialogue box| -|ShowDialogueForTime|icon : [String](../static/String.md)
title : [String](../static/String.md)
content : [String](../static/String.md)
time : float|none|Show a dialogue box for a certain amount of time| -|HideDialogue||none|Hide the dialogue box| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Start(name : [String](../static/String.md),full : bool)noneStart a cutscene
ShowDialogue(icon : [String](../static/String.md),title : [String](../static/String.md),content : [String](../static/String.md))noneShow a dialogue box
ShowDialogueForTime(icon : [String](../static/String.md),title : [String](../static/String.md),content : [String](../static/String.md),time : float)noneShow a dialogue box for a certain amount of time
HideDialogue()noneHide the dialogue box
diff --git a/Assets/Docs/static/Cutscene.md.meta b/Assets/Docs/static/Cutscene.md.meta deleted file mode 100644 index d2dba34cc..000000000 --- a/Assets/Docs/static/Cutscene.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 071a2ae3c1eaf024cb77aa683ce0b498 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Game.md b/Assets/Docs/static/Game.md index a1c8bfd05..dab66dd4b 100644 --- a/Assets/Docs/static/Game.md +++ b/Assets/Docs/static/Game.md @@ -23,34 +23,163 @@ Inherits from object |ForcedCharacterType|[String](../static/String.md)|False|Forced character type| |ForcedLoadout|[String](../static/String.md)|False|Forced loadout| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Debug|message : Object|none|Print a debug statement to the console| -|Print|message : Object|none|Print a message to the chat| -|PrintAll|message : Object|none|Print a message to all players| -|GetGeneralSetting|settingName : [String](../static/String.md)|Object|Get a general setting| -|GetTitanSetting|settingName : [String](../static/String.md)|Object|Get a titan setting| -|GetMiscSetting|settingName : [String](../static/String.md)|Object|Get a misc setting| -|End|delay : float|none|End the game| -|FindCharacterByViewID|viewID : int|[Character](../objects/Character.md)|Find a character by view ID| -|SpawnTitan|type : [String](../static/String.md)|[Titan](../objects/Titan.md)|Spawn a titan| -|SpawnTitanAt|type : [String](../static/String.md)
position : [Vector3](../objects/Vector3.md)
rotationY : float = 0|[Titan](../objects/Titan.md)|Spawn a titan at a position| -|SpawnTitans|type : [String](../static/String.md)
count : int|[List](../objects/List.md)|Spawn titans| -|SpawnTitansAsync|type : [String](../static/String.md)
count : int|none|Spawn titans asynchronously| -|SpawnTitansAt|type : [String](../static/String.md)
count : int
position : [Vector3](../objects/Vector3.md)
rotationY : float = 0|[List](../objects/List.md)|Spawn titans at a position| -|SpawnTitansAtAsync|type : [String](../static/String.md)
count : int
position : [Vector3](../objects/Vector3.md)
rotationY : float = 0|none|Spawn titans at a position asynchronously| -|SpawnShifter|type : [String](../static/String.md)|[Shifter](../objects/Shifter.md)|Spawn a shifter| -|SpawnShifterAt|type : [String](../static/String.md)
position : [Vector3](../objects/Vector3.md)
rotationY : float = 0|[Shifter](../objects/Shifter.md)|Spawn a shifter at a position| -|SpawnProjectile|parameters : Object[]|none|Spawn a projectile| -|SpawnProjectileWithOwner|parameters : Object[]|none|Spawn a projectile with an owner| -|SpawnEffect|parameters : Object[]|none|Spawn an effect| -|SpawnPlayer|player : [Player](../objects/Player.md)
force : bool|none|Spawn a player| -|SpawnPlayerAll|force : bool|none|Spawn a player for all players| -|SpawnPlayerAt|player : [Player](../objects/Player.md)
force : bool
position : [Vector3](../objects/Vector3.md)
rotationY : float = 0|none|Spawn a player at a position| -|SpawnPlayerAtAll|force : bool
position : [Vector3](../objects/Vector3.md)
rotationY : float = 0|none|Spawn a player at a position for all players| -|SetPlaylist|playlist : [String](../static/String.md)|none|Set the music playlist| -|SetSong|song : [String](../static/String.md)|none|Set the music song| -|DrawRay|start : [Vector3](../objects/Vector3.md)
dir : [Vector3](../objects/Vector3.md)
color : [Color](../objects/Color.md)
duration : float|none|Draw a ray| -|ShowKillScore|damage : int|none|Show the kill score| -|ShowKillFeed|killer : [String](../static/String.md)
victim : [String](../static/String.md)
score : int
weapon : [String](../static/String.md)|none|Show the kill feed| -|ShowKillFeedAll|killer : [String](../static/String.md)
victim : [String](../static/String.md)
score : int
weapon : [String](../static/String.md)|none|Show the kill feed for all players| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Debug(message : Object)nonePrint a debug statement to the console
Print(message : Object)nonePrint a message to the chat
PrintAll(message : Object)nonePrint a message to all players
GetGeneralSetting(settingName : [String](../static/String.md))ObjectGet a general setting
GetTitanSetting(settingName : [String](../static/String.md))ObjectGet a titan setting
GetMiscSetting(settingName : [String](../static/String.md))ObjectGet a misc setting
End(delay : float)noneEnd the game
FindCharacterByViewID(viewID : int)[Character](../objects/Character.md)Find a character by view ID
SpawnTitan(type : [String](../static/String.md))[Titan](../objects/Titan.md)Spawn a titan
SpawnTitanAt(type : [String](../static/String.md),position : [Vector3](../objects/Vector3.md),rotationY : float = 0)[Titan](../objects/Titan.md)Spawn a titan at a position
SpawnTitans(type : [String](../static/String.md),count : int)[List](../objects/List.md)Spawn titans
SpawnTitansAsync(type : [String](../static/String.md),count : int)noneSpawn titans asynchronously
SpawnTitansAt(type : [String](../static/String.md),count : int,position : [Vector3](../objects/Vector3.md),rotationY : float = 0)[List](../objects/List.md)Spawn titans at a position
SpawnTitansAtAsync(type : [String](../static/String.md),count : int,position : [Vector3](../objects/Vector3.md),rotationY : float = 0)noneSpawn titans at a position asynchronously
SpawnShifter(type : [String](../static/String.md))[Shifter](../objects/Shifter.md)Spawn a shifter
SpawnShifterAt(type : [String](../static/String.md),position : [Vector3](../objects/Vector3.md),rotationY : float = 0)[Shifter](../objects/Shifter.md)Spawn a shifter at a position
SpawnProjectile(parameters : Object[])noneSpawn a projectile
SpawnProjectileWithOwner(parameters : Object[])noneSpawn a projectile with an owner
SpawnEffect(parameters : Object[])noneSpawn an effect
SpawnPlayer(player : [Player](../objects/Player.md),force : bool)noneSpawn a player
SpawnPlayerAll(force : bool)noneSpawn a player for all players
SpawnPlayerAt(player : [Player](../objects/Player.md),force : bool,position : [Vector3](../objects/Vector3.md),rotationY : float = 0)noneSpawn a player at a position
SpawnPlayerAtAll(force : bool,position : [Vector3](../objects/Vector3.md),rotationY : float = 0)noneSpawn a player at a position for all players
SetPlaylist(playlist : [String](../static/String.md))noneSet the music playlist
SetSong(song : [String](../static/String.md))noneSet the music song
DrawRay(start : [Vector3](../objects/Vector3.md),dir : [Vector3](../objects/Vector3.md),color : [Color](../objects/Color.md),duration : float)noneDraw a ray
ShowKillScore(damage : int)noneShow the kill score
ShowKillFeed(killer : [String](../static/String.md),victim : [String](../static/String.md),score : int,weapon : [String](../static/String.md))noneShow the kill feed
ShowKillFeedAll(killer : [String](../static/String.md),victim : [String](../static/String.md),score : int,weapon : [String](../static/String.md))noneShow the kill feed for all players
diff --git a/Assets/Docs/static/Game.md.meta b/Assets/Docs/static/Game.md.meta deleted file mode 100644 index 8c2e493b3..000000000 --- a/Assets/Docs/static/Game.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: fcf2dbe3662c0364e8ccef7b48ddab18 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Input.md b/Assets/Docs/static/Input.md index c059a98cf..ca344da19 100644 --- a/Assets/Docs/static/Input.md +++ b/Assets/Docs/static/Input.md @@ -1,16 +1,73 @@ # Input Inherits from object ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|GetKeyName|key : [String](../static/String.md)|[String](../static/String.md)|Gets the key name the player assigned to the key setting| -|GetKeyHold|key : [String](../static/String.md)|bool|Returns true if the key is being held down| -|GetKeyDown|key : [String](../static/String.md)|bool|Returns true if the key was pressed down this frame| -|GetKeyUp|key : [String](../static/String.md)|bool|Returns true if the key was released this frame| -|GetMouseAim||[Vector3](../objects/Vector3.md)|Returns the position the player is aiming at| -|GetCursorAimDirection||[Vector3](../objects/Vector3.md)|Returns the ray the player is aiming at| -|GetMouseSpeed||[Vector3](../objects/Vector3.md)|Returns the speed of the mouse| -|GetMousePosition||[Vector3](../objects/Vector3.md)|Returns the position of the mouse| -|GetScreenDimensions||[Vector3](../objects/Vector3.md)|Returns the dimensions of the screen| -|SetKeyDefaultEnabled|key : [String](../static/String.md)
enabled : bool|none|Sets whether the key is enabled by default| -|SetKeyHold|key : [String](../static/String.md)
enabled : bool|none|Sets whether the key is being held down| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
GetKeyName(key : [String](../static/String.md))[String](../static/String.md)Gets the key name the player assigned to the key setting
GetKeyHold(key : [String](../static/String.md))boolReturns true if the key is being held down
GetKeyDown(key : [String](../static/String.md))boolReturns true if the key was pressed down this frame
GetKeyUp(key : [String](../static/String.md))boolReturns true if the key was released this frame
GetMouseAim()[Vector3](../objects/Vector3.md)Returns the position the player is aiming at
GetCursorAimDirection()[Vector3](../objects/Vector3.md)Returns the ray the player is aiming at
GetMouseSpeed()[Vector3](../objects/Vector3.md)Returns the speed of the mouse
GetMousePosition()[Vector3](../objects/Vector3.md)Returns the position of the mouse
GetScreenDimensions()[Vector3](../objects/Vector3.md)Returns the dimensions of the screen
SetKeyDefaultEnabled(key : [String](../static/String.md),enabled : bool)noneSets whether the key is enabled by default
SetKeyHold(key : [String](../static/String.md),enabled : bool)noneSets whether the key is being held down
diff --git a/Assets/Docs/static/Input.md.meta b/Assets/Docs/static/Input.md.meta deleted file mode 100644 index 1f83e3ca2..000000000 --- a/Assets/Docs/static/Input.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d60bd27d07f9bb149b74e65e2c0fa1a4 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Json.md b/Assets/Docs/static/Json.md index 5169a3334..d0398a071 100644 --- a/Assets/Docs/static/Json.md +++ b/Assets/Docs/static/Json.md @@ -1,7 +1,28 @@ # Json Inherits from object ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|LoadFromString|json : [String](../static/String.md)|Object|Loads a json string into a custom logic object| -|SaveToString|obj : Object|[String](../static/String.md)|Saves a custom logic object into a json string| + ++++ + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
LoadFromString(json : [String](../static/String.md))ObjectLoads a json string into a custom logic object
SaveToString(obj : Object)[String](../static/String.md)Saves a custom logic object into a json string
diff --git a/Assets/Docs/static/Json.md.meta b/Assets/Docs/static/Json.md.meta deleted file mode 100644 index 604bd7521..000000000 --- a/Assets/Docs/static/Json.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7767b6f84e6225547a5319b11f266636 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Map.md b/Assets/Docs/static/Map.md index ea0025659..960c87906 100644 --- a/Assets/Docs/static/Map.md +++ b/Assets/Docs/static/Map.md @@ -1,19 +1,88 @@ # Map Inherits from object ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|FindAllMapObjects||[List](../objects/List.md)|Find all map objects| -|FindMapObjectByName|objectName : [String](../static/String.md)|[MapObject](../objects/MapObject.md)|Find a map object by name| -|FindMapObjectsByName|objectName : [String](../static/String.md)|[List](../objects/List.md)|Find all map objects by name| -|FindMapObjectByComponent|className : [String](../static/String.md)|[MapObject](../objects/MapObject.md)|Find all map objects by component| -|FindMapObjectsByComponent|className : [String](../static/String.md)|[List](../objects/List.md)|Find all map objects by component| -|FindMapObjectByID|id : int|[MapObject](../objects/MapObject.md)|Find a map object by ID| -|FindMapObjectByTag|tag : [String](../static/String.md)|[MapObject](../objects/MapObject.md)|Find a map object by tag| -|FindMapObjectsByTag|tag : [String](../static/String.md)|[List](../objects/List.md)|Find all map objects by tag| -|CreateMapObjectRaw|prefab : [String](../static/String.md)|[MapObject](../objects/MapObject.md)|Create a new map object| -|DestroyMapObject|mapObject : [MapObject](../objects/MapObject.md)
includeChildren : bool|none|Destroy a map object| -|CopyMapObject|mapObject : [MapObject](../objects/MapObject.md)
includeChildren : bool|[MapObject](../objects/MapObject.md)|Copy a map object| -|DestroyMapTargetable|targetable : [MapTargetable](../objects/MapTargetable.md)|none|Destroy a map targetable| -|UpdateNavMesh||none|Update the nav mesh| -|UpdateNavMeshAsync||none|Update the nav mesh asynchronously| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
FindAllMapObjects()[List](../objects/List.md)Find all map objects
FindMapObjectByName(objectName : [String](../static/String.md))[MapObject](../objects/MapObject.md)Find a map object by name
FindMapObjectsByName(objectName : [String](../static/String.md))[List](../objects/List.md)Find all map objects by name
FindMapObjectByComponent(className : [String](../static/String.md))[MapObject](../objects/MapObject.md)Find all map objects by component
FindMapObjectsByComponent(className : [String](../static/String.md))[List](../objects/List.md)Find all map objects by component
FindMapObjectByID(id : int)[MapObject](../objects/MapObject.md)Find a map object by ID
FindMapObjectByTag(tag : [String](../static/String.md))[MapObject](../objects/MapObject.md)Find a map object by tag
FindMapObjectsByTag(tag : [String](../static/String.md))[List](../objects/List.md)Find all map objects by tag
CreateMapObjectRaw(prefab : [String](../static/String.md))[MapObject](../objects/MapObject.md)Create a new map object
DestroyMapObject(mapObject : [MapObject](../objects/MapObject.md),includeChildren : bool)noneDestroy a map object
CopyMapObject(mapObject : [MapObject](../objects/MapObject.md),includeChildren : bool)[MapObject](../objects/MapObject.md)Copy a map object
DestroyMapTargetable(targetable : [MapTargetable](../objects/MapTargetable.md))noneDestroy a map targetable
UpdateNavMesh()noneUpdate the nav mesh
UpdateNavMeshAsync()noneUpdate the nav mesh asynchronously
diff --git a/Assets/Docs/static/Map.md.meta b/Assets/Docs/static/Map.md.meta deleted file mode 100644 index c5cdaca7e..000000000 --- a/Assets/Docs/static/Map.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7866b2133c935a94a876afd395426d64 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Math.md b/Assets/Docs/static/Math.md index 9e4d058ea..10f222037 100644 --- a/Assets/Docs/static/Math.md +++ b/Assets/Docs/static/Math.md @@ -10,43 +10,208 @@ Inherits from object |Deg2RadConstant|float|False|The value of Deg2Rad constant| |Epsilon|float|False|The value of Epsilon| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|Clamp|value : Object
min : Object
max : Object|Object|Clamp a value between a minimum and maximum value| -|Max|a : Object
b : Object|Object|Get the maximum of two values| -|Min|a : Object
b : Object|Object|Get the minimum of two values| -|Pow|a : Object
b : Object|Object|Raise a value to the power of another value| -|Abs|value : Object|Object|Get the absolute value of a number| -|Sqrt|value : Object|Object|Get the square root of a number| -|Mod|a : Object
b : Object|Object|Get the remainder of a division operation| -|Sin|angle : Object|Object|Get the sine of an angle in degrees| -|Cos|angle : Object|Object|Get the cosine of an angle in degrees| -|Tan|angle : Object|Object|Get the tangent of an angle in degrees| -|Asin|value : Object|Object|Get the arcsine of a value in degrees| -|Acos|value : Object|Object|Get the arccosine of a value in degrees| -|Atan|value : Object|Object|Get the arctangent of a value in degrees| -|Atan2|a : Object
b : Object|Object|Get the arctangent of a value in degrees| -|Ceil|value : Object|Object|Get the smallest integer greater than or equal to a value| -|Floor|value : Object|Object|Get the largest integer less than or equal to a value| -|Round|value : Object|Object|Round a value to the nearest integer| -|Deg2Rad|angle : Object|Object|Convert an angle from degrees to radians| -|Rad2Deg|angle : Object|Object|Convert an angle from radians to degrees| -|Lerp|a : Object
b : Object
t : Object|Object|Linearly interpolate between two values| -|LerpUnclamped|a : Object
b : Object
t : Object|Object|Linearly interpolate between two values without clamping| -|Sign|value : Object|Object|Get the sign of a value| -|InverseLerp|a : Object
b : Object
value : Object|Object|Get the inverse lerp of two values| -|LerpAngle|a : Object
b : Object
t : Object|Object|Linearly interpolate between two angles| -|Log|value : Object|Object|Get the natural logarithm of a value| -|MoveTowards|current : Object
target : Object
maxDelta : Object|Object|Move a value towards a target value| -|MoveTowardsAngle|current : Object
target : Object
maxDelta : Object|Object|Move an angle towards a target angle| -|PingPong|t : Object
length : Object|Object|Get the ping pong value of a time value| -|SmoothDamp|current : Object
target : Object
currentVelocity : Object
smoothTime : Object
maxSpeed : Object
deltaTime : Object|Object|Smoothly damp a value towards a target value| -|Exp|value : Object|Object|Get the exponential value of a number| -|SmoothDampAngle|current : Object
target : Object
currentVelocity : Object
smoothTime : Object
maxSpeed : Object
deltaTime : Object|Object|Smoothly damp an angle towards a target angle| -|SmoothStep|a : Object
b : Object
t : Object|Object|Smoothly step between two values| -|BitwiseAnd|a : Object
b : Object|Object|Perform a bitwise AND operation| -|BitwiseOr|a : Object
b : Object|Object|Perform a bitwise OR operation| -|BitwiseXor|a : Object
b : Object|Object|Perform a bitwise XOR operation| -|BitwiseNot|value : Object|Object|Perform a bitwise NOT operation| -|BitwiseLeftShift|value : Object
shift : Object|Object|Shift bits to the left| -|BitwiseRightShift|value : Object
shift : Object|Object|Shift bits to the right| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
Clamp(value : Object,min : Object,max : Object)ObjectClamp a value between a minimum and maximum value
Max(a : Object,b : Object)ObjectGet the maximum of two values
Min(a : Object,b : Object)ObjectGet the minimum of two values
Pow(a : Object,b : Object)ObjectRaise a value to the power of another value
Abs(value : Object)ObjectGet the absolute value of a number
Sqrt(value : Object)ObjectGet the square root of a number
Mod(a : Object,b : Object)ObjectGet the remainder of a division operation
Sin(angle : Object)ObjectGet the sine of an angle in degrees
Cos(angle : Object)ObjectGet the cosine of an angle in degrees
Tan(angle : Object)ObjectGet the tangent of an angle in degrees
Asin(value : Object)ObjectGet the arcsine of a value in degrees
Acos(value : Object)ObjectGet the arccosine of a value in degrees
Atan(value : Object)ObjectGet the arctangent of a value in degrees
Atan2(a : Object,b : Object)ObjectGet the arctangent of a value in degrees
Ceil(value : Object)ObjectGet the smallest integer greater than or equal to a value
Floor(value : Object)ObjectGet the largest integer less than or equal to a value
Round(value : Object)ObjectRound a value to the nearest integer
Deg2Rad(angle : Object)ObjectConvert an angle from degrees to radians
Rad2Deg(angle : Object)ObjectConvert an angle from radians to degrees
Lerp(a : Object,b : Object,t : Object)ObjectLinearly interpolate between two values
LerpUnclamped(a : Object,b : Object,t : Object)ObjectLinearly interpolate between two values without clamping
Sign(value : Object)ObjectGet the sign of a value
InverseLerp(a : Object,b : Object,value : Object)ObjectGet the inverse lerp of two values
LerpAngle(a : Object,b : Object,t : Object)ObjectLinearly interpolate between two angles
Log(value : Object)ObjectGet the natural logarithm of a value
MoveTowards(current : Object,target : Object,maxDelta : Object)ObjectMove a value towards a target value
MoveTowardsAngle(current : Object,target : Object,maxDelta : Object)ObjectMove an angle towards a target angle
PingPong(t : Object,length : Object)ObjectGet the ping pong value of a time value
SmoothDamp(current : Object,target : Object,currentVelocity : Object,smoothTime : Object,maxSpeed : Object,deltaTime : Object)ObjectSmoothly damp a value towards a target value
Exp(value : Object)ObjectGet the exponential value of a number
SmoothDampAngle(current : Object,target : Object,currentVelocity : Object,smoothTime : Object,maxSpeed : Object,deltaTime : Object)ObjectSmoothly damp an angle towards a target angle
SmoothStep(a : Object,b : Object,t : Object)ObjectSmoothly step between two values
BitwiseAnd(a : Object,b : Object)ObjectPerform a bitwise AND operation
BitwiseOr(a : Object,b : Object)ObjectPerform a bitwise OR operation
BitwiseXor(a : Object,b : Object)ObjectPerform a bitwise XOR operation
BitwiseNot(value : Object)ObjectPerform a bitwise NOT operation
BitwiseLeftShift(value : Object,shift : Object)ObjectShift bits to the left
BitwiseRightShift(value : Object,shift : Object)ObjectShift bits to the right
diff --git a/Assets/Docs/static/Math.md.meta b/Assets/Docs/static/Math.md.meta deleted file mode 100644 index 99ebb0cd9..000000000 --- a/Assets/Docs/static/Math.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2e6c4c5837bc96448a07828ae0c6359c -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Network.md b/Assets/Docs/static/Network.md index 9c65e2cf5..b82578a17 100644 --- a/Assets/Docs/static/Network.md +++ b/Assets/Docs/static/Network.md @@ -10,10 +10,43 @@ Inherits from object |NetworkTime|double|False|The network time| |Ping|int|False|The local player's ping| ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|SendMessage|player : [Player](../objects/Player.md)
message : [String](../static/String.md)|none|Send a message to a player| -|SendMessageAll|message : [String](../static/String.md)|none|Send a message to all players| -|SendMessageOthers|message : [String](../static/String.md)|none|Send a message to all players except the sender| -|GetTimestampDifference|timestamp1 : double
timestamp2 : double|double|Get the difference between two photon timestamps| -|KickPlayer|target : Object
reason : [String](../static/String.md) = .|none|Kick the given player by id or player reference.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
SendMessage(player : [Player](../objects/Player.md),message : [String](../static/String.md))noneSend a message to a player
SendMessageAll(message : [String](../static/String.md))noneSend a message to all players
SendMessageOthers(message : [String](../static/String.md))noneSend a message to all players except the sender
GetTimestampDifference(timestamp1 : double,timestamp2 : double)doubleGet the difference between two photon timestamps
KickPlayer(target : Object,reason : [String](../static/String.md) = .)noneKick the given player by id or player reference.
diff --git a/Assets/Docs/static/Network.md.meta b/Assets/Docs/static/Network.md.meta deleted file mode 100644 index 5b5475846..000000000 --- a/Assets/Docs/static/Network.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 37dc7beaa31705f43815ab92667b2ed8 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/PersistentData.md b/Assets/Docs/static/PersistentData.md index 402b6ab47..c5120a2b8 100644 --- a/Assets/Docs/static/PersistentData.md +++ b/Assets/Docs/static/PersistentData.md @@ -1,12 +1,53 @@ # PersistentData Inherits from object ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|SetProperty|property : [String](../static/String.md)
value : Object|none|Sets the property with given name to the object value. Valid value types are float, string, bool, and int.| -|GetProperty|property : [String](../static/String.md)
defaultValue : Object|Object|Gets the property with given name. If property does not exist, returns defaultValue.| -|LoadFromFile|fileName : [String](../static/String.md)
encrypted : bool|none|Loads persistent data from given file name. If encrypted is true, will treat the file as having been saved as encrypted.| -|SaveToFile|fileName : [String](../static/String.md)
encrypted : bool|none|Saves current persistent data to given file name. If encrypted is true, will also encrypt the file instead of using plaintext.| -|Clear||none|Clears current persistent data.| -|IsValidFileName|fileName : [String](../static/String.md)|bool|Determines whether or not the given fileName will be allowed for use when saving/loading a file.| -|FileExists|fileName : [String](../static/String.md)|bool|Determines whether the file given already exists. Throws an error if given an invalid file name.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
SetProperty(property : [String](../static/String.md),value : Object)noneSets the property with given name to the object value. Valid value types are float, string, bool, and int.
GetProperty(property : [String](../static/String.md),defaultValue : Object)ObjectGets the property with given name. If property does not exist, returns defaultValue.
LoadFromFile(fileName : [String](../static/String.md),encrypted : bool)noneLoads persistent data from given file name. If encrypted is true, will treat the file as having been saved as encrypted.
SaveToFile(fileName : [String](../static/String.md),encrypted : bool)noneSaves current persistent data to given file name. If encrypted is true, will also encrypt the file instead of using plaintext.
Clear()noneClears current persistent data.
IsValidFileName(fileName : [String](../static/String.md))boolDetermines whether or not the given fileName will be allowed for use when saving/loading a file.
FileExists(fileName : [String](../static/String.md))boolDetermines whether the file given already exists. Throws an error if given an invalid file name.
diff --git a/Assets/Docs/static/PersistentData.md.meta b/Assets/Docs/static/PersistentData.md.meta deleted file mode 100644 index 0cb48c44d..000000000 --- a/Assets/Docs/static/PersistentData.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 62c9002128c5f9e4ca20d82630ea2006 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/README.md.meta b/Assets/Docs/static/README.md.meta deleted file mode 100644 index 08cf3add4..000000000 --- a/Assets/Docs/static/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 62cf625ee331c1c48a8913c362d7d85b -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Random.md b/Assets/Docs/static/Random.md index d941a1818..941fd8544 100644 --- a/Assets/Docs/static/Random.md +++ b/Assets/Docs/static/Random.md @@ -1,12 +1,53 @@ # Random Inherits from object ## Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|RandomInt|min : int
max : int|int|Generates a random integer between the specified range.| -|RandomFloat|min : float
max : float|float|Generates a random float between the specified range.| -|RandomBool||bool|Returns random boolean.| -|RandomVector3|a : [Vector3](../objects/Vector3.md)
b : [Vector3](../objects/Vector3.md)|[Vector3](../objects/Vector3.md)|Generates a random Vector3 between the specified ranges.| -|RandomDirection|flat : bool = False|[Vector3](../objects/Vector3.md)|Generates a random normalized direction vector. If flat is true, the y component will be zero.| -|RandomSign||int|Generates a random sign, either 1 or -1.| -|PerlinNoise|x : float
y : float|float|Returns a point sampled from generated 2d perlin noise. (see Unity Mathf.PerlinNoise for more information)| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
RandomInt(min : int,max : int)intGenerates a random integer between the specified range.
RandomFloat(min : float,max : float)floatGenerates a random float between the specified range.
RandomBool()boolReturns random boolean.
RandomVector3(a : [Vector3](../objects/Vector3.md),b : [Vector3](../objects/Vector3.md))[Vector3](../objects/Vector3.md)Generates a random Vector3 between the specified ranges.
RandomDirection(flat : bool = False)[Vector3](../objects/Vector3.md)Generates a random normalized direction vector. If flat is true, the y component will be zero.
RandomSign()intGenerates a random sign, either 1 or -1.
PerlinNoise(x : float,y : float)floatReturns a point sampled from generated 2d perlin noise. (see Unity Mathf.PerlinNoise for more information)
diff --git a/Assets/Docs/static/Random.md.meta b/Assets/Docs/static/Random.md.meta deleted file mode 100644 index 8d1c274bc..000000000 --- a/Assets/Docs/static/Random.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3029902b259029c479682165353b9e35 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/RoomData.md b/Assets/Docs/static/RoomData.md index 1ed18f00b..a4360fea5 100644 --- a/Assets/Docs/static/RoomData.md +++ b/Assets/Docs/static/RoomData.md @@ -1,8 +1,33 @@ # RoomData Inherits from object ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|SetProperty|property : [String](../static/String.md)
value : Object|none|Sets the property with given name to the object value. Valid value types are float, string, bool, and int.| -|GetProperty|property : [String](../static/String.md)
defaultValue : Object|Object|Gets the property with given name. If property does not exist, returns defaultValue.| -|Clear||none|Clears all room data.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
SetProperty(property : [String](../static/String.md),value : Object)noneSets the property with given name to the object value. Valid value types are float, string, bool, and int.
GetProperty(property : [String](../static/String.md),defaultValue : Object)ObjectGets the property with given name. If property does not exist, returns defaultValue.
Clear()noneClears all room data.
diff --git a/Assets/Docs/static/RoomData.md.meta b/Assets/Docs/static/RoomData.md.meta deleted file mode 100644 index 8b2044d0e..000000000 --- a/Assets/Docs/static/RoomData.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c72e78ebaecf7804c85a5bc8bfe16a76 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/String.md b/Assets/Docs/static/String.md index 9dbf78bdf..564f7780b 100644 --- a/Assets/Docs/static/String.md +++ b/Assets/Docs/static/String.md @@ -5,22 +5,103 @@ Inherits from object |---|---|---|---| |Newline|[String](../static/String.md)|False|Returns the newline character.| ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|FormatFloat|val : float
decimals : int|[String](../static/String.md)|Formats a float to a string with the specified number of decimal places.| -|FormatFromList|str : [String](../static/String.md)
list : [List](../objects/List.md)|[String](../static/String.md)|Equivalent to C# string.format(string, List).| -|Split|toSplit : [String](../static/String.md)
splitter : Object
removeEmptyEntries : bool = False|[List](../objects/List.md)|Split the string into a list. Can pass in either a string to split on or a list of strings to split on, the last optional param can remove all empty entries.| -|Join|list : [List](../objects/List.md)
separator : [String](../static/String.md)|[String](../static/String.md)|Joins a list of strings into a single string with the specified separator.| -|Substring|str : [String](../static/String.md)
startIndex : int|[String](../static/String.md)|Returns a substring starting from the specified index.| -|SubstringWithLength|str : [String](../static/String.md)
startIndex : int
length : int|[String](../static/String.md)|Returns a substring of the specified length starting from the specified start index.| -|Length|str : [String](../static/String.md)|int|Length of the string.| -|Replace|str : [String](../static/String.md)
replace : [String](../static/String.md)
with : [String](../static/String.md)|[String](../static/String.md)|Replaces all occurrences of a substring with another substring.| -|Contains|str : [String](../static/String.md)
match : [String](../static/String.md)|bool|Checks if the string contains the specified substring.| -|StartsWith|str : [String](../static/String.md)
match : [String](../static/String.md)|bool|Checks if the string starts with the specified substring.| -|EndsWith|str : [String](../static/String.md)
match : [String](../static/String.md)|bool|Checks if the string ends with the specified substring.| -|Trim|str : [String](../static/String.md)|[String](../static/String.md)|Trims whitespace from the start and end of the string.| -|Insert|str : [String](../static/String.md)
insert : [String](../static/String.md)
index : int|[String](../static/String.md)|Inserts a substring at the specified index.| -|Capitalize|str : [String](../static/String.md)|[String](../static/String.md)|Capitalizes the first letter of the string.| -|ToUpper|str : [String](../static/String.md)|[String](../static/String.md)|Converts the string to uppercase.| -|ToLower|str : [String](../static/String.md)|[String](../static/String.md)|Converts the string to lowercase.| -|IndexOf|str : [String](../static/String.md)
substring : [String](../static/String.md)|int|Returns the index of the given string.| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
FormatFloat(val : float,decimals : int)[String](../static/String.md)Formats a float to a string with the specified number of decimal places.
FormatFromList(str : [String](../static/String.md),list : [List](../objects/List.md))[String](../static/String.md)Equivalent to C# string.format(string, List).
Split(toSplit : [String](../static/String.md),splitter : Object,removeEmptyEntries : bool = False)[List](../objects/List.md)Split the string into a list. Can pass in either a string to split on or a list of strings to split on, the last optional param can remove all empty entries.
Join(list : [List](../objects/List.md),separator : [String](../static/String.md))[String](../static/String.md)Joins a list of strings into a single string with the specified separator.
Substring(str : [String](../static/String.md),startIndex : int)[String](../static/String.md)Returns a substring starting from the specified index.
SubstringWithLength(str : [String](../static/String.md),startIndex : int,length : int)[String](../static/String.md)Returns a substring of the specified length starting from the specified start index.
Length(str : [String](../static/String.md))intLength of the string.
Replace(str : [String](../static/String.md),replace : [String](../static/String.md),with : [String](../static/String.md))[String](../static/String.md)Replaces all occurrences of a substring with another substring.
Contains(str : [String](../static/String.md),match : [String](../static/String.md))boolChecks if the string contains the specified substring.
StartsWith(str : [String](../static/String.md),match : [String](../static/String.md))boolChecks if the string starts with the specified substring.
EndsWith(str : [String](../static/String.md),match : [String](../static/String.md))boolChecks if the string ends with the specified substring.
Trim(str : [String](../static/String.md))[String](../static/String.md)Trims whitespace from the start and end of the string.
Insert(str : [String](../static/String.md),insert : [String](../static/String.md),index : int)[String](../static/String.md)Inserts a substring at the specified index.
Capitalize(str : [String](../static/String.md))[String](../static/String.md)Capitalizes the first letter of the string.
ToUpper(str : [String](../static/String.md))[String](../static/String.md)Converts the string to uppercase.
ToLower(str : [String](../static/String.md))[String](../static/String.md)Converts the string to lowercase.
IndexOf(str : [String](../static/String.md),substring : [String](../static/String.md))intReturns the index of the given string.
diff --git a/Assets/Docs/static/String.md.meta b/Assets/Docs/static/String.md.meta deleted file mode 100644 index 081065c8e..000000000 --- a/Assets/Docs/static/String.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5f663793e088e85419f66dfa770fc035 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/Time.md.meta b/Assets/Docs/static/Time.md.meta deleted file mode 100644 index 54e1f53cf..000000000 --- a/Assets/Docs/static/Time.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b5c0cb264e5ab4d42bb118d66da8bfef -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Docs/static/UI.md b/Assets/Docs/static/UI.md index d4414dc36..66f16c4c8 100644 --- a/Assets/Docs/static/UI.md +++ b/Assets/Docs/static/UI.md @@ -14,25 +14,118 @@ Inherits from object |BottomRight|[String](../static/String.md)|False|"BottomRight" constant| |Popups|[List](../objects/List.md)|False|Returns a list of all popups| ## Static Methods -|Function|Parameters|Returns|Description| -|---|---|---|---| -|SetLabel|label : [String](../static/String.md)
message : [String](../static/String.md)|none|Sets the label at a certain location. Valid types: "TopCenter", "TopLeft", "TopRight", "MiddleCenter", "MiddleLeft", "MiddleRight", "BottomLeft", "BottomRight", "BottomCenter".| -|SetLabelForTime|label : [String](../static/String.md)
message : [String](../static/String.md)
time : float|none|Sets the label for a certain time, after which it will be cleared.| -|SetLabelAll|label : [String](../static/String.md)
message : [String](../static/String.md)|none|Sets the label for all players. Master client only. Be careful not to call this often.| -|SetLabelForTimeAll|label : [String](../static/String.md)
message : [String](../static/String.md)
time : float|none|Sets the label for all players for a certain time. Master client only.| -|CreatePopup|popupName : [String](../static/String.md)
title : [String](../static/String.md)
width : int
height : int|[String](../static/String.md)|Creates a new popup. This popup is hidden until shown.| -|ShowPopup|popupName : [String](../static/String.md)|none|Shows the popup with given name.| -|HidePopup|popupName : [String](../static/String.md)|none|Hides the popup with given name.| -|ClearPopup|popupName : [String](../static/String.md)|none|Clears all elements in popup with given name.| -|AddPopupLabel|popupName : [String](../static/String.md)
label : [String](../static/String.md)|none|Adds a text row to the popup with label as content.| -|AddPopupButton|popupName : [String](../static/String.md)
label : [String](../static/String.md)
callback : [String](../static/String.md)|none|Adds a button row to the popup with given button name and display text. When button is pressed, OnButtonClick is called in Main with buttonName parameter.| -|AddPopupBottomButton|popupName : [String](../static/String.md)
label : [String](../static/String.md)
callback : [String](../static/String.md)|none|Adds a button to the bottom bar of the popup.| -|AddPopupButtons|popupName : [String](../static/String.md)
labels : [List](../objects/List.md)
callbacks : [List](../objects/List.md)|none|Adds a list of buttons in a row to the popup.| -|WrapStyleTag|text : [String](../static/String.md)
style : [String](../static/String.md)
arg : [String](../static/String.md) = |[String](../static/String.md)|Returns a wrapped string given style and args.| -|GetLocale|cat : [String](../static/String.md)
sub : [String](../static/String.md)
key : [String](../static/String.md)|[String](../static/String.md)|Gets translated locale from the current Language.json file with given category, subcategory, and key pattern.| -|GetLanguage||[String](../static/String.md)|Returns the current language (e.g. "English" or "简体中文").| -|ShowChangeCharacterMenu||none|Shows the change character menu if main character is Human.| -|SetScoreboardHeader|header : [String](../static/String.md)|none|Sets the display of the scoreboard header (default "Kills / Deaths...")| -|SetScoreboardProperty|property : [String](../static/String.md)|none|Sets which Player custom property to read from to display on the scoreboard. If set to empty string, will use the default "Kills / Deaths..." display.| -|GetThemeColor|panel : [String](../static/String.md)
category : [String](../static/String.md)
item : [String](../static/String.md)|[Color](../objects/Color.md)|Gets the color of the specified item. See theme json for reference.| -|IsPopupActive|popupName : [String](../static/String.md)|bool|Returns if the given popup is active| + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionReturnsDescription
SetLabel(label : [String](../static/String.md),message : [String](../static/String.md))noneSets the label at a certain location. Valid types: "TopCenter", "TopLeft", "TopRight", "MiddleCenter", "MiddleLeft", "MiddleRight", "BottomLeft", "BottomRight", "BottomCenter".
SetLabelForTime(label : [String](../static/String.md),message : [String](../static/String.md),time : float)noneSets the label for a certain time, after which it will be cleared.
SetLabelAll(label : [String](../static/String.md),message : [String](../static/String.md))noneSets the label for all players. Master client only. Be careful not to call this often.
SetLabelForTimeAll(label : [String](../static/String.md),message : [String](../static/String.md),time : float)noneSets the label for all players for a certain time. Master client only.
CreatePopup(popupName : [String](../static/String.md),title : [String](../static/String.md),width : int,height : int)[String](../static/String.md)Creates a new popup. This popup is hidden until shown.
ShowPopup(popupName : [String](../static/String.md))noneShows the popup with given name.
HidePopup(popupName : [String](../static/String.md))noneHides the popup with given name.
ClearPopup(popupName : [String](../static/String.md))noneClears all elements in popup with given name.
AddPopupLabel(popupName : [String](../static/String.md),label : [String](../static/String.md))noneAdds a text row to the popup with label as content.
AddPopupButton(popupName : [String](../static/String.md),label : [String](../static/String.md),callback : [String](../static/String.md))noneAdds a button row to the popup with given button name and display text. When button is pressed, OnButtonClick is called in Main with buttonName parameter.
AddPopupBottomButton(popupName : [String](../static/String.md),label : [String](../static/String.md),callback : [String](../static/String.md))noneAdds a button to the bottom bar of the popup.
AddPopupButtons(popupName : [String](../static/String.md),labels : [List](../objects/List.md),callbacks : [List](../objects/List.md))noneAdds a list of buttons in a row to the popup.
WrapStyleTag(text : [String](../static/String.md),style : [String](../static/String.md),arg : [String](../static/String.md) = )[String](../static/String.md)Returns a wrapped string given style and args.
GetLocale(cat : [String](../static/String.md),sub : [String](../static/String.md),key : [String](../static/String.md))[String](../static/String.md)Gets translated locale from the current Language.json file with given category, subcategory, and key pattern.
GetLanguage()[String](../static/String.md)Returns the current language (e.g. "English" or "简体中文").
ShowChangeCharacterMenu()noneShows the change character menu if main character is Human.
SetScoreboardHeader(header : [String](../static/String.md))noneSets the display of the scoreboard header (default "Kills / Deaths...")
SetScoreboardProperty(property : [String](../static/String.md))noneSets which Player custom property to read from to display on the scoreboard. If set to empty string, will use the default "Kills / Deaths..." display.
GetThemeColor(panel : [String](../static/String.md),category : [String](../static/String.md),item : [String](../static/String.md))[Color](../objects/Color.md)Gets the color of the specified item. See theme json for reference.
IsPopupActive(popupName : [String](../static/String.md))boolReturns if the given popup is active
diff --git a/Assets/Docs/static/UI.md.meta b/Assets/Docs/static/UI.md.meta deleted file mode 100644 index 61f746d42..000000000 --- a/Assets/Docs/static/UI.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: fa675e87b83b40441b54332833e890f1 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Scripts/Editor/GenerateCLDocs.cs b/Assets/Scripts/Editor/GenerateCLDocs.cs index 4acf78582..eeb14a17e 100644 --- a/Assets/Scripts/Editor/GenerateCLDocs.cs +++ b/Assets/Scripts/Editor/GenerateCLDocs.cs @@ -505,14 +505,15 @@ private string GenerateMethods(System.Type type, System.Xml.XmlDocument XMLdoc, if (methods.Length > 0) { doc += $"{header}\n"; - List headers = new List { "Function", "Parameters", "Returns", "Description" }; + List headers = new List { "Function", "Returns", "Description" }; + List sizing = new List { 30, 20, 50 }; List> rows = new List>(); foreach (var method in methods) { var clMethod = (CLMethodAttribute)method.GetCustomAttributes(typeof(CLMethodAttribute), false)[0]; var methodName = DelimitStyled(method.Name); var parameters = method.GetParameters(); - string signature = string.Empty; + string signature = $"{methodName}("; for (int i = 0; i < parameters.Length; i++) { @@ -523,13 +524,15 @@ private string GenerateMethods(System.Type type, System.Xml.XmlDocument XMLdoc, else signature += $"{param.Name} : {paramType}"; if (i < parameters.Length - 1) - signature += "
"; + signature += ","; } + signature += ")"; var returnType = ResolveType(method.ReturnType.Name); var description = ResolveMethodDescription(type, method, XMLdoc, clMethod.Description); - rows.Add(new List { methodName, signature, returnType, description }); + rows.Add(new List { signature, returnType, description }); } - doc += CreateTable(headers, rows); + + doc += CreateHTMLTable(headers, rows, sizing); } return doc; } @@ -547,6 +550,44 @@ private string CreateCodeExample(List lines) return code; } + + private string CreateHTMLTable(List headers, List> rows, List columnWidths) + { + string table = string.Empty; + table += "\n"; + table += ""; + foreach (var width in columnWidths) + { + table += $"\n"; + } + table += "\n"; + + // header + table += "\n"; + table += "\n"; + foreach (var header in headers) + { + table += $"\n"; + } + table += "\n"; + table += "\n"; + + // body + table += "\n"; + foreach (var row in rows) + { + table += "\n"; + foreach (var cell in row) + { + table += $"\n"; + } + table += "\n"; + } + table += "\n"; + table += "
{header}
{cell}
\n"; + return table; + } + /// /// Create a markdown table ///