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"; } } TDEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); TDEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); dirty = !dirty; }
public static void LoadDamageTable() { damageTableDB = DamageTableDB.LoadDB(); UpdateLabel_DamageTable(); TDEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); TDEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); }