Better boat handling

This commit is contained in:
2025-11-30 18:28:26 +03:00
parent cd82fb0eed
commit 5b014dcb65
21 changed files with 938 additions and 230 deletions

View File

@@ -5,6 +5,7 @@
#include "GameData.h"
#include "CharacterModule.h"
#include "LuaData.h"
#include "EventModule.h"
namespace ECS
{
class RootMotionListener : public Ogre::NodeAnimationTrack::Listener {
@@ -713,9 +714,8 @@ struct AnimationSystem : AnimationNode {
Ogre::String event;
void operator()(const AnimationTrigger *trigger)
{
ECS::get_mut<LuaBase>()
.mLua->call_handler(event, ent,
ent);
ent.get_mut<EventData>().add(ent, event,
ent, ent);
}
EventSubscriber(flecs::entity e,
const Ogre::String &event)