private static extern void ZLO_SetZMessageListener(tZMessageListener l);
public void SetupEvents() { EventListenerInstance = new tEventListener(EventListener); ClientListenerInstance = new tClientListener(ClientListener); ServerListenerInstance = new tServerListener(ServerListener); ServerListenerNameInstance = new tServerListenerName(ServerListenerName); ServerListenerAttrInstance = new tServerListenerAttr(ServerListenerAttr); ServerListenerCapInstance = new tServerListenerCap(ServerListenerCap); ServerListenerStateInstance = new tServerListenerState(ServerListenerState); ServerListenerPlayersInstance = new tServerListenerPlayers(ServerListenerPlayers); ServerListenerAddrInstance = new tServerListenerAddr(ServerListenerAddr); ZMessageListenerInstance = new tZMessageListener(ZMessageListener); VersionListenerInstance = new tVersionListener(VersionListener); StatListenerInstance = new tStatListener(StatListener); DogTagsListenerInstance = new tDogTagsListener(DogTagListener); ClanTagListenerInstance = new tClanTagListener(ClanTagListener); ZLO_SetEventListener(EventListenerInstance); ZLO_SetClientListener(ClientListenerInstance); ZLO_SetServerListener(ServerListenerInstance); ZLO_SetServerListenerName(ServerListenerNameInstance); ZLO_SetServerListenerAttr(ServerListenerAttrInstance); ZLO_SetServerListenerCap(ServerListenerCapInstance); ZLO_SetServerListenerState(ServerListenerStateInstance); ZLO_SetServerListenerPlayers(ServerListenerPlayersInstance); ZLO_SetServerListenerAddr(ServerListenerAddrInstance); ZLO_SetZMessageListener(ZMessageListenerInstance); ZLO_SetVersionListener(VersionListenerInstance); ZLO_SetStatListener(StatListenerInstance); ZLO_SetDogTagsListener(DogTagsListenerInstance); ZLO_SetClanTagListener(ClanTagListenerInstance); }