示例#1
0
        //---------------------------------

        //-------------------------------------------------
        public MainForm()
        {
            IsConnecting             = true;
            IsShowingSandBox         = false;
            IsCheckingForUpdate      = false;
            IsCheckingForUpdateEnded = false;
            IsTheLastVer             = false;
            IsServerOnBreak          = false;
            IsServerUpdating         = false;
            IsServerOnline           = false;
            IsTheFirstTime           = false;
            MainMenuLoaded           = false;
            ReleasingDate            = null;
            //-------------------------------------
            ThereIsConstants.AppSettings.DECoder = new DECoder();
            if (ThereIsConstants.Forming.TheMainForm == null)
            {
                ThereIsConstants.Forming.TheMainForm = this;
            }

            InitializeComponent();
            if (!Directory.Exists(ThereIsConstants.Path.main_Path +
                                  ThereIsConstants.Path.Temporary_Folder_Name))
            {
                Directory.CreateDirectory(ThereIsConstants.Path.main_Path +
                                          ThereIsConstants.Path.Temporary_Folder_Name);
            }
            else
            {
                Directory.Delete(ThereIsConstants.Path.main_Path +
                                 ThereIsConstants.Path.Temporary_Folder_Name, true);
                Directory.CreateDirectory(ThereIsConstants.Path.main_Path +
                                          ThereIsConstants.Path.Temporary_Folder_Name);
            }
            ThereIsConstants.AppSettings.TimeWorker.Enabled  = true;
            ThereIsConstants.AppSettings.TimeWorker.Interval = 1000;
            ThereIsConstants.AppSettings.TimeWorker.Tick    += ThereIsConstants.Actions.TimeWorkerWorks;
            ThereIsConstants.AppSettings.WotoCreation        = WotoCreation.GenerateWotoCreation();



            //UnlimitedBladeWorks();

            /*
             * Hero myHero1 = Hero.GenerateHero(GameObjects.Players.PlayerElement.WaterElement),
             *  myHero2;
             * for(; ; )
             * {
             *  myHero2 = Hero.GenerateHero(GameObjects.Players.PlayerElement.WindElement);
             *  MessageBox.Show(myHero2.HP.ToString());
             * }
             *
             */
        }
示例#2
0
 public WotoEventArgs(WotoCreation wotoCreation)
 {
     WotoCreation = wotoCreation;
 }
示例#3
0
 public VolumeChangedEventArgs(uint theNewVolume, WotoCreation wotoCreation) :
     base(wotoCreation)
 {
     NewVolume = theNewVolume;
 }
示例#4
0
 public SoundPlayerDisposedEventArgs(WotoCreation wotoCreation) :
     base(wotoCreation)
 {
 }
 //-------------------------------------------------
 #region Constructor's Region
 public LoopModeChangedEventArgs(bool loopModeTurnedOn, WotoCreation wotoCreation) : base(wotoCreation)
 {
     LoopModeTurnedOn = loopModeTurnedOn;
 }
示例#6
0
 //-------------------------------------------------
 #region Constructor's Region
 public MouseEventArgs(WotoCreation wotoCreation, MouseButtons _button) : base(wotoCreation)
 {
     Button = _button;
 }
 public SoundLocationChangedEventArgs(string theNewLocation, WotoCreation wotoCreation) :
     base(wotoCreation)
 {
     NewLocation = theNewLocation;
 }
示例#8
0
 //-------------------------------------------------
 public TickHandlerEventArgs(WotoCreation creation, T fatherSender) :
     base(creation)
 {
     Father = fatherSender;
 }