示例#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);
 }