public static Map New(MapSettings settings, SlimDX.Direct3D9.Device device) { Map m = new Map { Settings = settings }; m.Ground = new Ground(); m.InitGround(); m.NewSplatMap1(device); m.NewSplatMap2(device); m.Ground.ConstructPieces(m); m.Ground.Init(); m.MainCharacter = new Units.MainCharacter { Translation = new Vector3(settings.Size.Width / 2f, settings.Size.Height / 2f, 0), Name = "MainCharacter" }; m.DynamicsRoot.AddChild(m.MainCharacter); return(m); }
public static Map New(MapSettings settings, SlimDX.Direct3D9.Device device) { Map m = new Map { Settings = settings }; m.Ground = new Ground(); m.InitGround(); m.NewSplatMap1(device); m.NewSplatMap2(device); m.Ground.ConstructPieces(m); m.Ground.Init(); m.MainCharacter = new Units.MainCharacter { Translation = new Vector3(settings.Size.Width / 2f, settings.Size.Height / 2f, 0), Name = "MainCharacter" }; m.DynamicsRoot.AddChild(m.MainCharacter); return m; }