public EnemyGenerator(Lua Lua, CombatSystem cSys, EntityManager eMan)
        {
            combatSystem = cSys;
            entityManager = eMan;
            lua = Lua;

            RegisterLuaFunctions();

            instance = this;
        }
Beispiel #2
0
        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);
        }