/// <summary> /// Creates a WorldSystem. /// </summary> public WorldSystem() : base() { Id = ComponentSystemId.WorldSystem; WantsUpdates = true; // Create world grid WorldGrid = new WorldGrid( Map.MapData.Dimensions.X, Map.MapData.Dimensions.Y, CellSize, CellSize ); }
/// <summary> /// Creates an instance of a world cell. /// </summary> /// <param name="parent">Parent WorldGrid</param> public WorldCell(WorldGrid parent) { Parent = parent; ObjectsInCell = new Dictionary <WorldComponent, Entity>(); }