(→Data Types) |
(→Data Types) |
||
Line 24: | Line 24: | ||
==Data Types== | ==Data Types== | ||
+ | * string, byte, int long, float, double, char, etc. | ||
* [[Scripting/SVector]] A 3D Vector class for storing positions/euler rotations | * [[Scripting/SVector]] A 3D Vector class for storing positions/euler rotations | ||
* [[Scripting/SQuaternion]] A Quaternion used for storing proper rotational information | * [[Scripting/SQuaternion]] A Quaternion used for storing proper rotational information |
Note: Scripting is arriving in Editor Pack 9, due for release on January 25th
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.
Coming soon
|