Commit graph

9 commits

Author SHA1 Message Date
hispidence
e834d38522 Fix GameScriptColor's D3DCOLOR operator and __tostring, and add a converting constructor. 2021-08-29 17:05:06 +01:00
hispidence
824a65e603 Make GameScriptColor able to convert to D3DCOLOR. 2021-08-27 14:30:41 +01:00
hispidence
af5b32c929 Clean up GameScriptColor.
Give it default member initialisers and a delegating constructor and expose the four-component version to Lua.
2021-08-07 19:03:27 +01:00
hispidence
3060fb85c0 Make color getters const. 2021-07-24 12:26:48 +01:00
hispidence
dbe6ffdd5c Add __tostring metamethod to GameScriptPosition, GameScriptRotation and GameScriptColor.
Make their properties lowercase to keep them consistent with the properties of other classes.

Move documentation from GameScriptPosition.h to GameScriptPosition.cpp.
2021-07-23 02:06:50 +01:00
hispidence
29d4f89263 Add conversions between GameScriptColor and Vector3/Vector4. 2021-07-21 18:18:51 +01:00
hispidence
7008ab75f8 Make GameScriptColor::Register static. 2021-07-20 17:53:10 +01:00
hispidence
f6ff21bda2 Add Register function and documentation for GameScriptColor, since it will be used in GameScriptMeshInfo. 2021-07-20 17:48:39 +01:00
MontyTRC89
a507e9e1be Moved GameScriptPosition, GameScriptRotation and GameScriptColor classes in separate files 2021-06-29 05:28:17 +02:00