예제 #1
0
        public GameMap(GameModelDTO data)
            : base(data)
        {
            Camera = new GameCamera();

            worldMatrix = new WorldMatrix(this);
        }
예제 #2
0
 public GameModel(GameModelDTO modelData, GameModel parent = null)
 {
     this.blocks = modelData.blocks.Select(block => new GameBlock(this, block)).ToArray();
     this.subModels.AddRange(modelData.subModels.Select(modelDTO => new GameModel(modelDTO, null)));
     this.relativeBounds = new BoundingBoxInt(modelData.min, modelData.max);
     foreach (AnimationDTO animationDTO in modelData.animations)
     {
         this.Animations.Add(animationDTO.Name, new Animation(animationDTO));
     }
     this.spawnLocations = modelData.spawnLocations;
 }
예제 #3
0
 public GameModel(GameModelDTO modelData, EggEngine engine, GameModel parent = null)
     : this(modelData, parent)
 {
     Initialize(engine);
 }
 //public Action<GameTime> DoneMoving;
 public GameMovableModel(GameModelDTO modelDTO, EggEngine engine)
     : base(modelDTO, engine)
 {
     this.Engine = engine;
 }
예제 #5
0
 public GameMap(GameModelDTO data, EggEngine engine)
     : this(data)
 {
     Initialize(engine);
 }