Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo committed May 20, 2024
1 parent b90be76 commit 197d007
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct CreatureHandlers
int32_t onHear = -1;
int32_t onChangeZone = -1;
int32_t onUpdateStorage = -1;
};
} creatureHandlers;

struct PartyHandlers
{
Expand All @@ -31,7 +31,7 @@ struct PartyHandlers
int32_t onInvite = -1;
int32_t onRevokeInvitation = -1;
int32_t onPassLeadership = -1;
};
} partyHandlers;

struct PlayerHandlers
{
Expand Down Expand Up @@ -60,26 +60,21 @@ struct PlayerHandlers
int32_t onInventoryUpdate = -1;
int32_t onNetworkMessage = -1;
int32_t onSpellCheck = -1;
};
} playerHandlers;

struct MonsterHandlers
{
int32_t onDropLoot = -1;
int32_t onSpawn = -1;
};

CreatureHandlers creatureHandlers;
PartyHandlers partyHandlers;
PlayerHandlers playerHandlers;
MonsterHandlers monsterHandlers;
} monsterHandlers;

} // namespace

namespace tfs::events {

bool load()
{
scriptInterface.initState();
scriptInterface.reInitState();

pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file("data/events/events.xml");
Expand Down

0 comments on commit 197d007

Please sign in to comment.