Esempio n. 1
0
 public override void LoadContent(Equipment owner, ContentManager content, ManagerMap managerMap, ManagerCamera managerCamera, Entities entities)
 {
     base.LoadContent(owner, content, managerMap, managerCamera,entities);
     AddComponent(new Sprite(ManagerContent.LoadTexture("sword"), 16, 16, new Vector2(0, 0)));
     AddComponent(new Animation(16,16,2,100));
     AddComponent(new Camera(managerCamera));
     GuiTexture = ManagerContent.LoadTexture("sword_gui");
 }
Esempio n. 2
0
 public Equipment(ContentManager content, ManagerMap managerMap, ManagerCamera managerCamera, Entities entities)
 {
     _items = new List<Item>();
     _content = content;
     _equipedItem = new Dictionary<ItemSlot, Item>();
     _managerMap = managerMap;
     _managerCamera = managerCamera;
     _entities = entities;
 }
Esempio n. 3
0
 public ScreenWorld(ManagerScreen managerScreen)
     : base(managerScreen)
 {
     _managerCamera = new ManagerCamera();
     _managerMap = new ManagerMap("newmap", _managerCamera);
     _entities = new Entities();
     _managerEvents = new ManagerEvents();
     _managerPlayer = new ManagerPlayer();
     //uglyyyyyyy
     FactoryDeathAnimation.Initailize(_managerCamera);
 }