public GameMap(GameModelDTO data) : base(data) { Camera = new GameCamera(); worldMatrix = new WorldMatrix(this); }
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; }
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; }
public GameMap(GameModelDTO data, EggEngine engine) : this(data) { Initialize(engine); }