def __init__(self, world): self.world = world self.opcodesTable = defineOpcodes([ ("MSG_INITIAL_CONNECTION", WorldSession.handleInitialConnection), ("CMSG_CAST_SPELL", WorldSession.handleCastSpell), ("CMSG_MOVE", WorldSession.handleMove), ("CMSG_SPAWN_INGAME", WorldSession.handleSpawnInGame), ("MSG_CHAT_MESSAGE", WorldSession.handleChatMessage) ], WorldSession.handleNULL)
def __init__(self, gameInstance): self.game = gameInstance self.opcodesTable = defineOpcodes([ ("MSG_INITIAL_CONNECTION", WorldSession.handleInitialConnection), ("SMSG_NOTIFICATION", WorldSession.handleNotification), ("SMSG_MOVE_OBJECT", WorldSession.handleMoveObject), ("SMSG_ADD_OBJECT", WorldSession.handleAddObject), ("SMSG_REMOVE_OBJECT", WorldSession.handleRemoveObject), ("MSG_CHAT_MESSAGE", WorldSession.handleChatMessage) ], WorldSession.handleNULL)