예제 #1
0
 public DrawableGameObject(ContentManager content,GameObject parent, string textureName)
     : base(content,parent)
 {
     Texture = Content.Load<Texture2D>(textureName);
 }
예제 #2
0
 public Tileset(ContentManager content,GameObject parent,int id)
     : base(content,parent)
 {
     Data = new TilesetData(id);
     Texture = content.Load<Texture2D>(Data.FileName);
 }
예제 #3
0
 public PlatformerPlayer(ContentManager content,GameObject parent, string textureName)
     : base(content, parent, textureName)
 {
 }
예제 #4
0
 public Map(ContentManager content,GameObject parent,int id)
     : base(content,parent)
 {
     Data = new MapData(id);
     Tileset = new Tileset(content,this, id);
 }
예제 #5
0
 public void AddElement(GameObject obj)
 {
     Elements.Add(obj);
 }
예제 #6
0
 public GameObject(ContentManager content, GameObject parent)
 {
     Content = content;
     Parent = parent;
 }