Commit Graph

28 Commits

Author SHA1 Message Date
Deukhoofd 103c703208
Add cool new c++ 20 constraint to EventHook.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 14:10:13 +02:00
Deukhoofd 5536a6b83d
Implements Attack Use event.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 14:00:41 +02:00
Deukhoofd 64b08d4ff0
Cleaned up Events, added events on species and variant changes.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 13:52:22 +02:00
Deukhoofd 50236f4ece
Adds Miss event.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-13 11:17:04 +02:00
Deukhoofd 3d21b7c42d
Remove event hook threads, as it caused issues when being called from dotnet.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 20:11:03 +02:00
Deukhoofd 5b1c73a2af
Fixed valgrind issues.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 12:27:46 +02:00
Deukhoofd 208bb097dd
Make event listeners threaded.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 12:20:59 +02:00
Deukhoofd 5aa04a4b15 Add TurnStart, TurnEnd and ExperienceGain event triggers.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 11:02:37 +02:00
Deukhoofd 3a170d8924 Adds creature Switch event.
continuous-integration/drone/push Build is passing Details
2020-08-07 10:38:35 +02:00
Deukhoofd 9b9b644143
Tweak EventHook data allocation based on testing.
continuous-integration/drone/push Build is passing Details
2020-08-04 13:43:51 +02:00
Deukhoofd f38161f573
Fixed issue where hitdata read wrong memory.
continuous-integration/drone/push Build is passing Details
2020-08-04 12:22:05 +02:00
Deukhoofd 93b3847b31
Revert "Disable EventHook system for now for testing."
continuous-integration/drone/push Build is passing Details
This reverts commit 84e03021
2020-08-03 17:28:43 +02:00
Deukhoofd 84e030213d
Disable EventHook system for now for testing.
continuous-integration/drone/push Build is passing Details
2020-08-02 10:14:56 +02:00
Deukhoofd 1b9da9a721
Added more security to EventHook.
continuous-integration/drone/push Build is passing Details
2020-08-01 11:34:25 +02:00
Deukhoofd fa5184ad77
Tweaks for EventHook.
continuous-integration/drone/push Build is passing Details
2020-07-31 19:52:12 +02:00
Deukhoofd c3de280ebb
Fixes for EventHook corruptions, unit tests for EventHooks.
continuous-integration/drone/push Build is passing Details
2020-07-31 18:39:47 +02:00
Deukhoofd 0eaae43444
Reworked event hook to a system with pre-allocated memory, owned by the battle. This deals with cleaning up event data memory.
continuous-integration/drone/push Build is passing Details
2020-07-31 16:19:39 +02:00
Deukhoofd 3e8f9340f3
Dont delete events after triggering the event listener. Once they're in the event listeners hands, it's their responsibility to properly clean up the memory. 2020-07-31 15:47:18 +02:00
Deukhoofd 48639eeee5
Update to new Arbutils
continuous-integration/drone/push Build is passing Details
2020-06-26 17:08:23 +02:00
Deukhoofd 657d646fda
Make the last couple classes use smart pointers.
continuous-integration/drone/push Build is passing Details
2020-06-02 18:30:37 +02:00
Deukhoofd 7ce3e6940d
Rework for C Interfaces to handle exceptions a bit better.
continuous-integration/drone/push Build is passing Details
2020-03-25 19:09:17 +01:00
Deukhoofd 899e432271
Added lots of security using asserts.
continuous-integration/drone/push Build is failing Details
2020-03-22 13:42:26 +01:00
Deukhoofd 5a976e4031
Added display text event hook. 2020-03-09 17:43:36 +01:00
Deukhoofd 06336c64cd
Added canRevive parameter to Heal function, added Faint event. 2020-03-09 16:29:41 +01:00
Deukhoofd 3efd7a6974
Added C interface for EventData.
continuous-integration/drone/push Build is passing Details
2020-03-09 11:12:24 +01:00
Deukhoofd 8d4860f553
Support for Heal function for Creatures.
continuous-integration/drone/push Build is passing Details
2020-02-13 14:48:09 +01:00
Deukhoofd db002c784f
Resolve memory issue with Event Hooks.
continuous-integration/drone/push Build is passing Details
2019-12-15 12:27:56 +01:00
Deukhoofd 410487c86b
Initial support for Event Hooks.
continuous-integration/drone/push Build is failing Details
2019-12-15 12:24:08 +01:00