Example #1
0
        public void InitWorlds(IEnumerable <Assembly> assemblies)
        {
            AllWorlds = AutofacSvc.LoadAllInstanceFromClass <IWorldLine>(assemblies).ToArray();

            foreach (var worldLine in AllWorlds)
            {
                worldLine.Init();
                worldLine.AIGroup.AddRange(CrossWorldAis);
                worldLine.Load();
            }
        }
Example #2
0
        public void Init()
        {
            var assembly = GetType().Assembly;

            AIGroup = AutofacSvc.LoadAllInstanceFromClass <AIBase>(assembly);
        }