Пример #1
0
        public void Initialize(string directory)
        {
            D2pManager.Setup("./" + directory + "/"); //initialize

            this.maps = new List <Map>();

            MapPositionRepository.Instance.Initialize("MapPositions");                        //load map position
            NpcSpawnRepository.Instance.Initialize("npcs_spawns");                            //load npcs
            MapInteractiveElementRepository.Instance.Initialize("maps_interactive_elements"); //load interactive elements
            MapStatedElementRepository.Instance.Initialize("maps_stated_elements");           //load stated elements
            InteractiveManager.Instance.Initialize();                                         //interactive manager

            Console.WriteLine("Map lazy loading from d2p...");
        }
Пример #2
0
        static void Main(string[] args)
        {
            D2pManager.Setup(Variables.Maps);
            Handle.Setup();

            Auth.Start(Variables.Auth);
            Console.WriteLine("- - Auth Started - -");
            World.Start(Variables.World);
            Console.WriteLine("- - World Started - -");

            Console.WriteLine("= = = LOAD D20 FILES = = =");
            ObjectDataManager.Initialize(Variables.d2opath);

            EffectsManager.Init();
            ItemsManager.Init();

            Console.Read();
        }