Commit graph

13 commits

Author SHA1 Message Date
hispidence
69de6e4502 Move scripting source files into new filder. Obviously, these won't work yet or even compile. 2022-02-10 18:25:09 +00:00
hispidence
f6aa2ac653 Include frameworkandsol.h instead of framework.h and sol.hpp. 2022-02-10 18:23:42 +00:00
hispidence
2889cab98a Take sol.hpp out of framework.h and include it only where needed.
This actually makes the project take longer to build, probably because of it no longer getting precompiled, but this is the first step of many in an effort to decouple them a bit to make things more sensible.
2022-02-10 18:20:03 +00:00
Lwmte
2101d3e65f Reorganize includes tier 2 2021-12-22 16:23:57 +03:00
hispidence
71c570d8ec Actually bind GameScriptRotation::ToString. 2021-11-03 20:18:09 +00:00
Lwmte
3fe6211e4e Further organizing 2021-09-08 18:31:35 +03:00
hispidence
bc9e863307 Give documentation comments new tag names. Part 2 of making the documentation better. 2021-08-23 19:16:24 +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
2d1b9c8178 Move documentation from GameScriptRotation.h to ".cpp. 2021-07-20 17:49:14 +01:00
hispidence
5f0b5f699f Make GameScriptPosition and GameScriptRotation convertible from PHD_3POS and add a function which puts their position or rotation data into a PHD_3POS. Make their members public since their setters and getters were trivial, aside from some tests which seem to serve no purpose (an int can't be larger than INT_MAX or smaller than INT_MIN). 2021-07-03 23:07:21 +01:00
hispidence
d00428f3fb Add Register and ConvertRotation member functions. ConvertRotation converts from degrees to the -32768 to 32767 system the renderer seems to expect.
Changed clamp values to -359 and 359, as 360 = -360 = 0.
2021-07-01 19:25:44 +01:00
hispidence
461f7cd1aa Make getters of GameScriptPosition and GameScriptRotation const. 2021-06-30 14:08:46 +01:00
MontyTRC89
a507e9e1be Moved GameScriptPosition, GameScriptRotation and GameScriptColor classes in separate files 2021-06-29 05:28:17 +02:00