|
|
|
@ -71,6 +71,7 @@ namespace MWLua
|
|
|
|
|
void onConsume(const LObject& consumable) { callEngineHandlers(mOnConsumeHandlers, consumable); }
|
|
|
|
|
void onActivated(const LObject& actor) { callEngineHandlers(mOnActivatedHandlers, actor); }
|
|
|
|
|
void onTeleported() { callEngineHandlers(mOnTeleportedHandlers); }
|
|
|
|
|
void onDeath() { callEngineHandlers(mOnDeathHandlers); }
|
|
|
|
|
|
|
|
|
|
void applyStatsCache();
|
|
|
|
|
|
|
|
|
@ -83,6 +84,7 @@ namespace MWLua
|
|
|
|
|
EngineHandlerList mOnConsumeHandlers{ "onConsume" };
|
|
|
|
|
EngineHandlerList mOnActivatedHandlers{ "onActivated" };
|
|
|
|
|
EngineHandlerList mOnTeleportedHandlers{ "onTeleported" };
|
|
|
|
|
EngineHandlerList mOnDeathHandlers{ "onDeath" };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|