[Server] Make names for Player script callbacks shorter

0.6.1
David Cernat 8 years ago
parent a634a5d9bb
commit 90c594b726

@ -120,15 +120,15 @@ public:
{"OnPlayerDeath", Function<void, unsigned short>()},
{"OnPlayerResurrect", Function<void, unsigned short>()},
{"OnPlayerCellChange", Function<void, unsigned short>()},
{"OnPlayerAttributesChange", Function<void, unsigned short>()},
{"OnPlayerSkillsChange", Function<void, unsigned short>()},
{"OnPlayerLevelChange", Function<void, unsigned short>()},
{"OnPlayerBountyChange", Function<void, unsigned short>()},
{"OnPlayerEquipmentChange", Function<void, unsigned short>()},
{"OnPlayerInventoryChange", Function<void, unsigned short>()},
{"OnPlayerJournalChange", Function<void, unsigned short>()},
{"OnPlayerFactionChange", Function<void, unsigned short>()},
{"OnPlayerSpellbookChange", Function<void, unsigned short>()},
{"OnPlayerAttribute", Function<void, unsigned short>()},
{"OnPlayerSkill", Function<void, unsigned short>()},
{"OnPlayerLevel", Function<void, unsigned short>()},
{"OnPlayerBounty", Function<void, unsigned short>()},
{"OnPlayerEquipment", Function<void, unsigned short>()},
{"OnPlayerInventory", Function<void, unsigned short>()},
{"OnPlayerJournal", Function<void, unsigned short>()},
{"OnPlayerFaction", Function<void, unsigned short>()},
{"OnPlayerSpellbook", Function<void, unsigned short>()},
{"OnCellLoad", Function<void, unsigned short, const char*>()},
{"OnCellUnload", Function<void, unsigned short, const char*>()},
{"OnCellDeletion", Function<void, const char*>()},

@ -26,7 +26,7 @@ namespace mwmp
player.sendToLoaded(&packet);
Script::Call<Script::CallbackIdentity("OnPlayerAttributesChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerAttribute")>(player.getId());
}
}
};

@ -16,7 +16,7 @@ namespace mwmp
void Do(PlayerPacket &packet, Player &player) override
{
Script::Call<Script::CallbackIdentity("OnPlayerBountyChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerBounty")>(player.getId());
}
};
}

@ -24,7 +24,7 @@ namespace mwmp
player.sendToLoaded(&packet);
Script::Call<Script::CallbackIdentity("OnPlayerEquipmentChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerEquipment")>(player.getId());
}
};
}

@ -18,7 +18,7 @@ namespace mwmp
{
DEBUG_PRINTF(strPacketID.c_str());
Script::Call<Script::CallbackIdentity("OnPlayerFactionChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerFaction")>(player.getId());
}
};
}

@ -21,7 +21,7 @@ namespace mwmp
{
DEBUG_PRINTF(strPacketID.c_str());
Script::Call<Script::CallbackIdentity("OnPlayerInventoryChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerInventory")>(player.getId());
}
};
}

@ -22,7 +22,7 @@ namespace mwmp
{
DEBUG_PRINTF(strPacketID.c_str());
Script::Call<Script::CallbackIdentity("OnPlayerJournalChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerJournal")>(player.getId());
}
};
}

@ -22,7 +22,7 @@ namespace mwmp
{
if (!player.creatureStats.mDead)
{
Script::Call<Script::CallbackIdentity("OnPlayerLevelChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerLevel")>(player.getId());
}
}
};

@ -24,7 +24,7 @@ namespace mwmp
//myPacket->Send(player, true);
player.sendToLoaded(&packet);
Script::Call<Script::CallbackIdentity("OnPlayerSkillsChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerSkill")>(player.getId());
}
}
};

@ -21,7 +21,7 @@ namespace mwmp
{
DEBUG_PRINTF(strPacketID.c_str());
Script::Call<Script::CallbackIdentity("OnPlayerSpellbookChange")>(player.getId());
Script::Call<Script::CallbackIdentity("OnPlayerSpellbook")>(player.getId());
}
};
}

Loading…
Cancel
Save