Пример #1
0
        public static void UpdateLabel_DamageTable()
        {
            damageTypeLabel = new string[damageTableDB.damageTypeList.Count];
            for (int i = 0; i < damageTableDB.damageTypeList.Count; i++)
            {
                damageTypeLabel[i] = damageTableDB.damageTypeList[i].name;
                if (damageTypeLabel[i] == "")
                {
                    damageTypeLabel[i] = "unnamed";
                }
            }

            armorTypeLabel = new string[damageTableDB.armorTypeList.Count];
            for (int i = 0; i < damageTableDB.armorTypeList.Count; i++)
            {
                armorTypeLabel[i] = damageTableDB.armorTypeList[i].name;
                if (armorTypeLabel[i] == "")
                {
                    armorTypeLabel[i] = "unnamed";
                }
            }

            TDSEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
            TDSEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);

            dirty = !dirty;
        }
Пример #2
0
        public static void LoadDamageTable()
        {
            damageTableDB = DamageTableDB.LoadDB();
            UpdateLabel_DamageTable();

            TDSEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
            TDSEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
        }