protected void Move(byte[] data) { int mapId = DataPro.getInt(data, ref tempindex); if (m_map.id == mapId) { x = DataPro.getInt(data, ref tempindex); y = DataPro.getInt(data, ref tempindex); m_map.Move(this); } }
protected void Enter(byte[] data) { int mapId = DataPro.getInt(data, ref tempindex); Map m = MapManager.getMapOfId(mapId); if (m != null) { m_map = m; x = DataPro.getInt(data, ref tempindex); y = DataPro.getInt(data, ref tempindex); m_map.Enter(this); } }