Exemplo n.º 1
0
        public spell_form()
        {
            StaticDataLoader loader = new StaticDataLoader {
            };

            loader.loadAll();
            InitializeComponent();
            InitializeLists();
            validTargetsToolTip.SetToolTip(valid_targets_listbox, "A valid target is not only something you can cast at in the\ntargeting menu, but something that is affected by its spell effect.");
            messageToolTip.SetToolTip(spell_message_textbox, "This is the message that displays in the log when the spell is cast.");
            energySourceToolTip.SetToolTip(energy_type_combobox, "The type of energy used by the caster in order to cast this spell.\nIf the caster does not have any of this energy available, it will not be castable.");
            spelltypeBindingSource.Add(main_spell);
            energy_type_combobox.SelectedIndex = 0;
            effect_combobox.SelectedIndex      = 0;
            damage_type_combobox.SelectedIndex = 0;
            sound_type_combobox.SelectedIndex  = 0;
        }
Exemplo n.º 2
0
 void OnEnterGame()
 {
     //load
     XMLSaver.Load();
     StaticDataLoader.Load();
     ZoneManager.Instance.LoadData();
     gameObject.AddComponent <HeadSpriteUtils> ();
     _timeStamp  = GetTimeStamp();
     _localTime  = 0.0f;
     _lastSecond = false;
     _curTime    = DateTime.Now;
     FrostRX.Start(this).
     Execute(() => { loading.gameObject.SetActive(false); }).
     Wait(4.0f).
     Execute(() => { loading.gameObject.SetActive(true); loading.SetAlpha(0.0f); }).
     AlphaFade(loading, 1.0f, 8.0f).
     ExecuteAfterTime(() => { OnSaveData(); }, 2.0f).
     Wait(2.0f).
     AlphaFade(loading, 0.0f, 8.0f).
     GoToBegin();
 }
Exemplo n.º 3
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <TEST_EXCEL_ARRAY>("test_excel");
 }
Exemplo n.º 4
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <BANK_CARD_ARRAY>("bank_card");
     InitDict();
 }
Exemplo n.º 5
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <ACCOUNT_ARRAY>("account");
     TransToSaveData();
 }
Exemplo n.º 6
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <ALBUM_ARRAY>("album");
     TransToAlbumData();
 }
Exemplo n.º 7
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <BLOG_ARRAY>("blog");
     TransToBlogData();
 }
Exemplo n.º 8
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <CONTENT_ARRAY>("content");
 }
Exemplo n.º 9
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <TWEET_ARRAY>("Tweet");
     TransToTweetData();
 }
        public void RetrieveStaticJsonSuccessfully()
        {
            var rss = StaticDataLoader.GetStaticDataJson();

            Assert.IsNotNull(rss);
        }
Exemplo n.º 11
0
 public static void Init()
 {
     Info = StaticDataLoader.ReadOneDataConfig <COMMENT_ARRAY>("Comment");
     TransToCommentData();
 }