Commit Graph

13 Commits

Author SHA1 Message Date
5fd8abb3a8 Reworks ScriptSources so we can get individual scripts on a source. Fixed OnEndTurn making no sense.
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 19:31:08 +02:00
987f60ee85 Clear scripts from creature when a battle is cleared from it.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-01-15 16:31:47 +01:00
dba1275813 Move ScriptIterator reset to get call instead of inside Macro.
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-02 13:21:23 +02:00
25f65eb47b Update to newer Arbutils version.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-26 18:31:06 +02:00
734d056449 Performance improvement for collecting scripts, by reserving size in ScriptSource.
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-25 11:33:25 +02:00
dd668f2b1c Cleanup of ScriptAggregator class.
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-23 23:23:58 +02:00
3a11bba913 Rework ScriptAggregator so it only needs to be created once, and can then be reset.
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-23 19:57:45 +02:00
27288563cd Replace most collections with Arbutils collections for more safety.
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-22 19:21:40 +01:00
da90c3d59e Reset active scripts on Creature when battle is set.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-17 10:05:32 +01:00
a8730d983f Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-28 12:55:22 +01:00
d8332f9e40 Another rework for scripthooks, for better performance.
All checks were successful
continuous-integration/drone/push Build is passing
This new version caches pointers to the pointers to scripts, so that we can build the data once and then simply iterate over it whenever we want to run a hook.
2019-11-10 17:08:42 +01:00
3488784409 Furter rework on script hooks, simplifying required logic. 2019-11-10 14:32:05 +01:00
ee14efe22e Implemented better script handling. 2019-11-09 12:15:45 +01:00