public SageyMainScene(ContentManager c, SceneManager sm, ArmadaCamera ca) : base(c, sm, ca) { this._Name = "Sagey"; _Content.RootDirectory = "Content/Scenes/Sagey"; player = new GameObjects.Player(); _UIManager = new ArmadaEngine.UI.UIManager(_Content); _QuestManager = new QuestManager(); _MapManager = new TileMaps.TilemapManager(); _DialogManager = new Managers.DialogManager(_QuestManager); _EventManager = new EventManager(_QuestManager); _ItemManager = new Managers.ItemManager(_Content); _InvenManager = new Managers.InventoryManager(_ItemManager); _BankManager = new Managers.BankManager(_ItemManager, _InvenManager); _WorldObjectManager = new Managers.WorldObjectManager(_MapManager, _InvenManager, _Content, player, _ItemManager); _NPCManager = new Managers.NPCManager(_MapManager, _Content, player, _DialogManager, _InvenManager, _WorldObjectManager); _GatherableManager = new Managers.GatherableManager(_MapManager, _InvenManager, _Content, player); _ChemistryManager = new Managers.ChemistryManager(_InvenManager, _WorldObjectManager, _NPCManager, _Content, _ItemManager); _PlayerManager = new Managers.PlayerManager(player, _InvenManager, _WorldObjectManager, _NPCManager, _MapManager, _GatherableManager); _WorldObjectManager.SetGatherManager(_GatherableManager); //kbHandler = new KbHandler(); _SelectedSprite = new Sprite(); //InputHelper.Init(); //_TestCamera = new TestCamera(GraphicsDevice); //EVENTS _DialogManager.BankOpened += HandleBankOpened; _PlayerManager.BankOpened += HandleBankOpened; _PlayerManager.PlayerMoved += HandlePlayerMoved; _BankManager.AttachEvents(_EventManager); _NPCManager.AttachEvents(_EventManager); _ChemistryManager.AttachEvents(_EventManager); _WorldObjectManager.AttachEvents(_EventManager); _GatherableManager.AttachEvents(_EventManager); }
public CraftPanel(UIManager uim, ChemistryManager cm) : base(uim) { _ChemManager = cm; _Name = "Crafting"; }