/// <summary> /// Creates a new map chunk /// </summary> /// <param name="x">address within the Chunk grid</param> /// <param name="y">address within the Chunk grid</param> /// <param name="z">address within the Chunk grid</param> /// <param name="objectsToIndex">determines which GOTs get indexed. Anytime you want to get a reference to "All of object type X" as in GetAllAvatarsInRange that object type should be indexed</param> public MapChunk(int chunkX, int chunkY, int chunkZ, GameMap owner) { m_Owner = owner; m_X = chunkX; m_Y = chunkY; m_Z = chunkZ; }
public static GameMap LoadFromDisk(string p) { GameMap map = new GameMap(); Dictionary<string, byte[]> th = PersistableDiskObject.LoadFromDisk(p); if (th == null) { return null; } map.ReadObjectDataFromTable(th); return map; }
/// <summary> /// Creates the meweap object /// </summary> /// <param name="mapName"></param> /// <param name="mapPath"></param> /// <param name="dimensionX"></param> /// <param name="dimensionY"></param> /// <param name="dimensionZ"></param> /// <param name="chunkSizeX"></param> /// <param name="chunkSizeY"></param> /// <param name="chunkSizeZ"></param> /// <param name="bg"></param> /// <returns></returns> public static GameMap CreateMap(string mapName, double dimensionX, double dimensionY, double dimensionZ, double chunkSizeX, double chunkSizeY, double chunkSizeZ) { GameMap m = new GameMap(dimensionX, dimensionY, dimensionZ, chunkSizeX, chunkSizeY, chunkSizeZ); m.m_Name = mapName; return m; }