|
|
|
@ -150,62 +150,62 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static constexpr ScriptCallbackData callbacks[]{
|
|
|
|
|
{"OnServerInit", Function<void>()},
|
|
|
|
|
{"OnServerPostInit", Function<void>()},
|
|
|
|
|
{"OnServerExit", Function<void, bool>()},
|
|
|
|
|
{"OnPlayerConnect", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerDisconnect", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerDeath", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerResurrect", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerCellChange", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerAttribute", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerSkill", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerLevel", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerBounty", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerReputation", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerEquipment", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerInventory", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerJournal", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerFaction", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerShapeshift", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerSpellbook", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerQuickKeys", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerTopic", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerDisposition", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerBook", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerItemUse", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerMiscellaneous", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerInput", Function<void, unsigned short>()},
|
|
|
|
|
{"OnPlayerRest", Function<void, unsigned short>()},
|
|
|
|
|
{"OnRecordDynamic", Function<void, unsigned short>()},
|
|
|
|
|
{"OnCellLoad", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnCellUnload", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnCellDeletion", Function<void, const char*>()},
|
|
|
|
|
{"OnContainer", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnDoorState", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectActivate", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectState", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectSpawn", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectLock", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectScale", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectTrap", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnVideoPlay", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnActorList", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnActorEquipment", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnActorAI", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnActorDeath", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnActorCellChange", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnActorTest", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnPlayerSendMessage", Function<void, unsigned short, const char*>()},
|
|
|
|
|
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
|
|
|
|
|
{"OnGUIAction", Function<void, unsigned short, int, const char*>()},
|
|
|
|
|
{"OnWorldKillCount", Function<void, unsigned short>()},
|
|
|
|
|
{"OnWorldMap", Function<void, unsigned short>()},
|
|
|
|
|
{"OnWorldWeather", Function<void, unsigned short>() },
|
|
|
|
|
{"OnMpNumIncrement", Function<void, int>()},
|
|
|
|
|
{"OnRequestPluginList", Function<void>()}
|
|
|
|
|
{"OnServerInit", Callback<>()},
|
|
|
|
|
{"OnServerPostInit", Callback<>()},
|
|
|
|
|
{"OnServerExit", Callback<bool>()},
|
|
|
|
|
{"OnPlayerConnect", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerDisconnect", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerDeath", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerResurrect", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerCellChange", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerAttribute", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerSkill", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerLevel", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerBounty", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerReputation", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerEquipment", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerInventory", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerJournal", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerFaction", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerShapeshift", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerSpellbook", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerQuickKeys", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerTopic", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerDisposition", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerBook", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerItemUse", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerMiscellaneous", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerInput", Callback<unsigned short>()},
|
|
|
|
|
{"OnPlayerRest", Callback<unsigned short>()},
|
|
|
|
|
{"OnRecordDynamic", Callback<unsigned short>()},
|
|
|
|
|
{"OnCellLoad", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnCellUnload", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnCellDeletion", Callback<const char*>()},
|
|
|
|
|
{"OnContainer", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnDoorState", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectActivate", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectPlace", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectState", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectSpawn", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectDelete", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectLock", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectScale", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnObjectTrap", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnVideoPlay", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnActorList", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnActorEquipment", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnActorAI", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnActorDeath", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnActorCellChange", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnActorTest", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnPlayerSendMessage", Callback<unsigned short, const char*>()},
|
|
|
|
|
{"OnPlayerEndCharGen", Callback<unsigned short>()},
|
|
|
|
|
{"OnGUIAction", Callback<unsigned short, int, const char*>()},
|
|
|
|
|
{"OnWorldKillCount", Callback<unsigned short>()},
|
|
|
|
|
{"OnWorldMap", Callback<unsigned short>()},
|
|
|
|
|
{"OnWorldWeather", Callback<unsigned short>() },
|
|
|
|
|
{"OnMpNumIncrement", Callback<int>()},
|
|
|
|
|
{"OnRequestPluginList", Callback<>()}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|