Better boat handling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user