public ItemGenerator(EntityManager eM, StatModifierSystem smSys) { entityManager = eM; modifierSystem = smSys; instance = this; }
private void InitializeSuperSystems() { entityMaintenanceSystem = new EntityMaintenanceSystem(effectSystem, entityManager, equipmentSystem, experienceSystem, gearSystem, inventorySystem, itemSystem, nameSystem, playerSystem, professionSystem, statsSystem, modifierSystem); combatSystem = new CombatSystem(lua, actionSystem, aInventorySystem, aiSystem, dropSystem, effectSystem, entityMaintenanceSystem, experienceSystem, inventorySystem, nameSystem, playerSystem, statsSystem); entityManager = new EntityManager(stateSystem, dropSystem, playerSystem, statsSystem, itemSystem, modifierSystem, effectSystem, equipmentSystem, aiSystem, gearSystem, experienceSystem, inventorySystem, nameSystem, professionSystem, actionSystem, aInventorySystem, combatSystem, entityMaintenanceSystem); messageDispatcher = new MessageDispatcher(entityManager); itemGenerator = new ItemGenerator(entityManager, modifierSystem); enemyGenerator = new EnemyGenerator(lua, combatSystem, entityManager); }