예제 #1
0
        /// <summary>
        /// Applys a structure (from a timestamp for example) to the level
        /// </summary>
        /// <param name="levelStruct">The LevelStruct to apply</param>
        public void ApplyStructure(LevelStruct levelStruct)
        {
            foreach (Cell cell in Grid)
            {
                PickUp pickUp = cell.CellEffect as PickUp;

                if(pickUp != null)
                {
                    pickUp.SetIsActive(levelStruct.grid[cell.GridPosition.X, cell.GridPosition.Y]);
                }
            }
        }
예제 #2
0
 public TimeStamp(double time, LevelStruct levelStruct, List<MovObjStruct> movObjStructs, GameState gameState)
 {
     this.time = time;
     this.levelStruct = levelStruct;
     this.movableObjects = movObjStructs;
     this.gameState = gameState;
 }