wiki.sine.space | sinespace

Difference between revisions of "Scripting/SScript"

From wiki.sine.space
Jump to: navigation, search
Line 3: Line 3:
 
It has the following members:
 
It has the following members:
  
* {{ScriptFunction|SInventory|Inventory|{ get; }|Allows access to the users inventory}}
+
{{ScriptFunction|SInventory|Inventory|{ get; }|Allows access to the users inventory}}
* [[Scripting/SPersistence]] Persistence
+
{{ScriptFunction|SPersistence|Persistence|{ get; }|Stores information between user sessions, and for other users}}
* [[Scripting/SScene]] Scene
+
{{ScriptFunction|SScene|Scene|{ get; }|Allows access to the current scene graph (objects and avatars in the scene, and other information)}}
* [[Scripting/SHost]] Host
+
{{ScriptFunction|SHost|Host|{ get; }|Access information about the current scripting runtime host}}
* [[Scripting/SPhysics]] Physics
+
{{ScriptFunction|SPhysics|Physics|{ get; }|Call physics-related commands, and variables, such as raycasting}}
 
* [[Scripting/SMath]] Math
 
* [[Scripting/SMath]] Math
 
* [[Scripting/SString]] String
 
* [[Scripting/SString]] String

Revision as of 05:32, 17 January 2017

The 'Space' global accessible in every script (for C# scripts, this inherits from the SpaceScript base class)

It has the following members:

Inventory

SInventory Inventory { get; }

Allows access to the users inventory

No example provided yet


Persistence

SPersistence Persistence { get; }

Stores information between user sessions, and for other users

No example provided yet


Scene

SScene Scene { get; }

Allows access to the current scene graph (objects and avatars in the scene, and other information)

No example provided yet


Host

SHost Host { get; }

Access information about the current scripting runtime host

No example provided yet


Physics

SPhysics Physics { get; }

Call physics-related commands, and variables, such as raycasting

No example provided yet


  • Scripting/SMath Math
  • Scripting/SString String
  • Scripting/SInput Input
  • Scripting/SCameraManager Camera
  • Scripting/SWebService WebServices
  • Scripting/SNetwork Network
  • Scripting/SResource[] Resources
  • float Time The current viewer time - this will usually correlate with the number of seconds the player has been in the current scene, increments each frame, typically used for animation/tweening
  • DateTime ServerTime The current server time - usually UTC, as according to the login server.
  • float DeltaTime The current time between this frame, and the previous frame, as used in Update, LateUpdate events, if moving a object, you can multiply it by DeltaTime to get a consistent speed
  • void Log(string text) Logs the message to the script debug console