wiki.sine.space | sinespace

Difference between revisions of "Scripting/Reference"

From wiki.sine.space
Jump to: navigation, search
(Replaced content with "This section has moved to: https://docs.sine.space/v/scripting/")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Client Scripting Function Reference=
+
This section has moved to:
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.
+
https://docs.sine.space/v/scripting/
 
+
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==
+
* [[Scripting/SAnalyticsEvent]]
+
* [[Scripting/SAnimation]]
+
* [[Scripting/SAnimator]]
+
* [[Scripting/SAttachmentHelper]]
+
* [[Scripting/SAudioReactiveAnimation]]
+
* [[Scripting/SAudioReactiveBase]]
+
* [[Scripting/SAudioReactiveLight]]
+
* [[Scripting/SAudioReactiveMaterial]]
+
* [[Scripting/SAudioReactiveParticleSystem]]
+
* [[Scripting/SAudioReactiveTransform]]
+
* [[Scripting/SAudioSource]]
+
* [[Scripting/SAXModel]]
+
* [[Scripting/SBoxCollider]]
+
* [[Scripting/SBrowserSurface]]
+
* [[Scripting/SCamera]]
+
* [[Scripting/SCanvasGroup]]
+
* [[Scripting/SCapsuleCollider]]
+
* [[Scripting/SCharacterController]]
+
* [[Scripting/SClickable]]
+
* [[Scripting/SCloth]]
+
* [[Scripting/SCollider]]
+
* [[Scripting/SComponentBase]]
+
* [[Scripting/SEmbeddedVideo]]
+
* [[Scripting/SEventCalendar]]
+
* [[Scripting/SFurniture]]
+
* [[Scripting/SGraphicRaycaster]]
+
* [[Scripting/SHingeJoint]] (Doxygen)
+
* [[Scripting/SLight]]
+
* [[Scripting/SLineRenderer]] (Doxygen)
+
* [[Scripting/SMeshRenderer]]
+
* [[Scripting/SModularVehicle]] (Doxygen)
+
* [[Scripting/SNavMeshAgent]]
+
* [[Scripting/SNavMeshObstacle]]
+
* [[Scripting/SNetworking]]
+
* [[Scripting/SParticleSystem]]
+
* [[Scripting/SPlayableDirector]]
+
* [[Scripting/SPostProcessVolume]]
+
* [[Scripting/SRectTransform]]
+
* [[Scripting/SReflectionProbe]]
+
* [[Scripting/SRenderer]]
+
* [[Scripting/SRigidbody]]
+
* [[Scripting/SRoomFloor]]
+
* [[Scripting/SSceneBackgroundMusic]]
+
* [[Scripting/SScriptingData]]
+
* [[Scripting/SScriptingEvents]]
+
* [[Scripting/SScriptingResources]]
+
* [[Scripting/SScriptingRuntime]]
+
* [[Scripting/SSeat]]
+
* [[Scripting/SSkinnedMeshRenderer]]
+
* [[Scripting/SSphereCollider]]
+
* [[Scripting/SStateMachine]]
+
* [[Scripting/STerrain]]
+
* [[Scripting/STrailRenderer]]
+
* [[Scripting/SUIButton]]
+
* [[Scripting/SUICanvas]]
+
* [[Scripting/SUIDropdown]]
+
* [[Scripting/SUIImage]]
+
* [[Scripting/SUIInputField]]
+
* [[Scripting/SUILayout]]
+
* [[Scripting/SUIRawImage]]
+
* [[Scripting/SUIScrollbar]]
+
* [[Scripting/SUISlider]]
+
* [[Scripting/SUIText]]
+
* [[Scripting/SUIToggle]]
+
* [[Scripting/SVirtualCamera]]
+
* [[Scripting/SVoiceZone]]
+
 
+
 
+
==Classes==
+
* [[Scripting/SScript]] (aka 'Space')
+
** [[Scripting/SMath]] Math Functions
+
** [[Scripting/SScene]] Scene Functions
+
*** [[Scripting/SGameObject]] Game Objects
+
*** [[Scripting/SGames]] Games Functions
+
*** [[Scripting/SAvatar]] Avatars/Players
+
*** [[Scripting/SAvatarAppearence]] Avatars/Appearence
+
** [[Scripting/SInventory]] Inventory access
+
*** [[Scripting/SInventoryItem]] Inventory items
+
** [[Scripting/SUserProfile]] User Profile access
+
** [[Scripting/SFurniture]] Furniture items
+
** [[Scripting/SHost]] Scripting runtime
+
** [[Scripting/ScriptClass]]
+
** [[Scripting/SPhysics]] Physics (see also [[Scripting/SRigidbody]])
+
** [[Scripting/SString]] String functions
+
** [[Scripting/SInput]] Input functions
+
** [[Scripting/SCameraManager]] Camera manipulation (see also [[Scripting/SPostFX]], [[Scripting/SCamera]])
+
** [[Scripting/SWebService]] HTTP Requests & Web Services
+
** [[Scripting/SNetwork]] Networking functions (network persisting variables, etc)
+
** [[Scripting/SChat]]
+
** [[Scripting/SChatMessage]]
+
** [[Scripting/SPersistence]] Persistence functions (save/retrieve state information permanently to player)
+
** [[Scripting/SShared]] IPC functions
+
** [[Scripting/SEconomy]] Economy functions
+
** [[Scripting/SGroup]] Group functions
+
** [[Scripting/SGroupInfo]] GroupInfo functions
+
** [[Scripting/SQuests]] Quest functions  (already on Doxygen)
+
** [[Scripting/SColor]] Color functions
+
** [[Scripting/SAXParameter]] AXParameter class
+
** [[Scripting/SRenderSettings]] Render settings
+
** [[Scripting/SRay]]
+
** [[Scripting/SCommandBuffer]]Graphics commands.
+
** [[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
+
 
+
 
+
==Library Classes==
+
* [[Scripting/SPostFX]] Post FX control
+
* [[Scripting/SDialogues]] Input dialoges/confirmation boxes
+
 
+
 
+
 
+
 
+
==Resources==
+
* [[Scripting/SResource]]
+
 
+
==External Events==
+
* [[Scripting/Invoking Events]]
+
* [[Scripting/Calling from UnityEvents]]
+
 
+
=Server Scripting Function Reference=
+
''Coming soon''
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 04:02, 9 August 2022

This section has moved to: https://docs.sine.space/v/scripting/