Пример #1
0
        public void Initilize()
        {
            StartTime = DateTime.Now;

            //got to do this before the command list
            TagWrapper = new TagWrapper();
            World      = new World.World();
            Settings   = new Settings.Settings();


            CanMobDoSomething = new CanMobDoSomething.CanMobDoSomething();
            //ClassFactory = new ClassFactory();
            CommandList = new Commands.CommandList();
            //Counters = new PerformanceCounters.Counters();
            DefaultValues   = new DefaultValues.DefaultValues();
            Experience      = new Exp.Experience();
            Engine          = new Engine.Engine();
            FindObjects     = new FindObjects.FindObjects();
            FileIO          = new FileIO();
            GameDateTime    = new GameDateTime.GameDateTime(new Time());
            GuildAbilities  = new Guild.GuildAbilities();
            Logger          = new Logging.Logger();
            Map             = new Map.Map();
            MoneyToCoins    = new MoneyToCoins.MoneyToCoins();
            MultiClassBonus = new MultiClassBonus.MultiClassBonus();
            Notify          = new Notify.Notify();
            Parser          = new Commands.Parser();
            Random          = new Random.Random();
            TickTimes       = new TickTimes.TickTimes();
            Translator      = new Language.Translator(new Language.TranslatorAlgorithm());
            UpTime          = new UpTime.UpTime();
            //Serialization = new Serialization.XmlSerialization();
            Serialization = new Serialization.JsonSerialization();
        }
Пример #2
0
        public void Initilize()
        {
            StartTime = DateTime.Now;

            //got to do this before the command list
            TagWrapper = new TagWrapper();
            World      = new World.World();
            Settings   = new Settings.Settings();
            Translator = new Language.Translator(new Language.TranslatorAlgorithm());



            CanMobDoSomething       = new CanMobDoSomething.CanMobDoSomething();
            CommandList             = new Commands.CommandList();
            Counters                = new Counters();
            CountersLog             = new List <ICounters>();
            DefaultValues           = new DefaultValues.DefaultValues();
            Engine                  = new Engine.Engine();
            EvaluateLevelDifference = new EvaluateLevelDifference();
            Experience              = new Exp.Experience();
            FileIO                  = new Shared.FileIO.FileIO();
            FindObjects             = new FindObjects.FindObjects();
            GameDateTime            = new InGameDateTime(new Time());
            GameStats               = new GameStats();
            GuildAbilities          = new Guild.GuildAbilities();
            Logger                  = new Logging.Logger();
            Map                 = new Map.Map();
            MoneyToCoins        = new MoneyToCoins.MoneyToCoins();
            MultiClassBonus     = new MultiClassBonus.MultiClassBonus();
            Notify              = new Notify.Notify();
            Parser              = new Commands.Parser();
            Random              = new Random.Random();
            RandomDropGenerator = new Random.RandomDropGenerator();
            Serialization       = new Serialization.JsonSerialization();
            StringManipulator   = new StringManuplation.StringManipulator();
            TickTimes           = new TickTimes.TickTimes();
            Time                = new Time();
            UpTime              = new UpTime.UpTime();
            ValidateAsset       = new ValidateAsset.ValidateAsset();



            //do these last as they depend on things above
            WeaponId = new WeaponId();
        }