Example #1
0
        /// <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
                );
        }
Example #2
0
 /// <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>();
 }