public virtual void LoadContent(ContentPool Content, ObjectPool Objects) { this.Content = Content; Content.AddTexture2D("Bullets\\bullet", this.name + "_bullet"); Content.AddTexture2D("Weapons\\debug", this.name + "_gun"); this.ObjWeapon = (ObjectWeapon)Objects.AddObject(ObjectPool.ObjectTypes.Weapon, "Player" + this.name, this.name + "_gun"); }
public void LoadContent(ObjectPool Objects, ContentPool Content) { foreach (string key in achivementTable.Keys) { AchivementBase b = (AchivementBase)achivementTable[key]; b.LoadContent(Content); } Content.AddTexture2D("Misc\\achivementShelf", "achivementShelf"); shelf = (ObjectAchivementShelf)Objects.AddObject(ObjectPool.ObjectTypes.AchivementShelf, "achivementShelf", "achivementShelf"); shelf.OnMessageFinished += new ObjectAchivementShelf.OnMessageFinishedDelegate(shelf_OnMessageFinished); }