wiki.sine.space | sinespace

Difference between revisions of "Scripting/Reference"

From wiki.sine.space
Jump to: navigation, search
Line 74: Line 74:
 
* [[Scripting/SVoiceZone]]
 
* [[Scripting/SVoiceZone]]
  
 +
==Types Classes==
 +
* string, byte, int long, float, double, char, etc.
 +
 +
* [[Scripting/SAnimationState]]
 +
* [[Scripting/SAnimatorStateInfo]]
 +
* [[Scripting/SAvatar]]
 +
* [[Scripting/SAvatarAppearance]]
 +
* [[Scripting/SAXParameter]]
 +
* [[Scripting/SColor]]
 +
* [[Scripting/SCommandBuffer]]
 +
* [[Scripting/SComponent]]
 +
* [[Scripting/SGameObject]]
 +
* [[Scripting/SGroupInfo]]
 +
* [[Scripting/SLandmark]]
 +
* [[Scripting/SLayerMask]] A way to filter physics hits
 +
* [[Scripting/SMaterial]] A reference to a rendering material
 +
* [[Scripting/SParticle]]
 +
* [[Scripting/SPublicRegion]]
 +
* [[Scripting/SQuaternion]] A Quaternion used for storing proper rotational information
 +
* [[Scripting/SRay]]
 +
* [[Scripting/SRect]]
 +
* [[Scripting/SScore]]
 +
* [[Scripting/SScoreRank]]
 +
* [[Scripting/SSubRegion]]
 +
* [[Scripting/STrackInfo]]
 +
* [[Scripting/SUIRaycastResult]]
 +
* [[Scripting/SUserRegions]]
 +
* [[Scripting/SVector]] A 3D Vector class for storing positions/euler rotations
 +
* [[Scripting/STrackInfo]] Stores Track Info on Radio track changes
 +
 +
 +
==Network Classes==
 +
* [[Scripting/SNetworkMessage]] A network message received from another script
 +
* [[Scripting/SWebResponse]] Stores the response from a Web Request
 +
 +
==Scene Classes==
 +
* [[Scripting/SPhysicsHit]] Stores hits occurring in the physics subsystems (e.g. Raycast Hits, Collider Hits, etc)
  
 
==Classes==
 
==Classes==
Line 110: Line 147:
 
** [[Scripting/SScoreRank]]ScoreRank functions.
 
** [[Scripting/SScoreRank]]ScoreRank functions.
  
==Data Types==
+
 
* string, byte, int long, float, double, char, etc.
+
* [[Scripting/SVector]] A 3D Vector class for storing positions/euler rotations
+
* [[Scripting/SQuaternion]] A Quaternion used for storing proper rotational information
+
* [[Scripting/SPhysicsHit]] Stores hits occurring in the physics subsystems (e.g. Raycast Hits, Collider Hits, etc)
+
* [[Scripting/SWebResponse]] Stores the response from a Web Request
+
* [[Scripting/SNetworkMessage]] A network message received from another script
+
* [[Scripting/SMaterial]] A reference to a rendering material
+
* [[Scripting/SLayerMask]] A way to filter physics hits
+
* [[Scripting/STrackInfo]] Stores Track Info on Radio track changes
+
  
  

Revision as of 06:34, 13 July 2021

Client Scripting Function Reference

This API is shared between both C# and Lua runtimes. In case of Lua, we treat 'Nil' as 'null', but otherwise identical. C# scripts are defined as a class inheriting from SpaceScript. Lua scripts have a pre-prepared global named 'Space' containing an instance of the SScript class.

Most of these API designs have been modelled after the API already used by Unity3D to allow existing developers easier familiarity with space.

Full Class List (Automated Documentation): http://space-files.s3.amazonaws.com/docs/client-scripting/annotated.html

Component Classes

Types Classes

  • string, byte, int long, float, double, char, etc.


Network Classes

Scene Classes

  • Scripting/SPhysicsHit Stores hits occurring in the physics subsystems (e.g. Raycast Hits, Collider Hits, etc)

Classes



Library Classes



Resources

External Events

Server Scripting Function Reference

Coming soon