private static void CCListAI(ConCommandArgs _) { string langInvar; string list = ""; int i = 0; foreach (var master in MasterCatalog.allAiMasters) { langInvar = Alias.GetLangInvar(master.bodyPrefab.GetComponent <CharacterBody>().baseNameToken); list += $"[{i}]{master.name}={langInvar}\n"; i++; } Log.Message(list.TrimEnd('\n')); }
private static void CCListItems(ConCommandArgs _) { Log.Message(MagicVars.OBSOLETEWARNING, Log.LogLevel.Warning); StringBuilder text = new StringBuilder(); foreach (ItemIndex item in ItemCatalog.allItems) { int index = (int)item; string invar = Alias.GetLangInvar("ITEM_" + item.ToString().ToUpper() + "_NAME"); string line = string.Format("[{0}]{1}={2}", index, item, invar); text.AppendLine(line); } Log.Message(text.ToString()); }
private static void CCListBody(ConCommandArgs _) { string langInvar; int i = 0; string list = ""; foreach (var body in BodyCatalog.allBodyPrefabBodyBodyComponents) { langInvar = Alias.GetLangInvar(body.baseNameToken); list += $"[{i}]{body.name}={langInvar}\n"; i++; } Log.Message(list.TrimEnd('\n')); }
private static void CCListEquipments(ConCommandArgs _) { Log.Message(MagicVars.OBSOLETEWARNING, Log.LogLevel.Warning); StringBuilder text = new StringBuilder(); foreach (EquipmentIndex equip in EquipmentCatalog.allEquipment) { int index = (int)equip; string invar = Alias.GetLangInvar("EQUIPMENT_" + equip.ToString().ToUpper() + "_NAME"); string line = string.Format("[{0}]{1}={2}", index, equip, invar); text.AppendLine(line); } Log.Message(text.ToString()); }
private static void CCListBody(ConCommandArgs _) { string langInvar; int i = 0; StringBuilder sb = new StringBuilder(); foreach (var body in BodyCatalog.allBodyPrefabBodyBodyComponents) { langInvar = Alias.GetLangInvar(body.baseNameToken); sb.AppendLine($"[{i}]{body.name}={langInvar}"); i++; } Log.Message(sb); }
private static void CCListAI(ConCommandArgs _) { string langInvar; int i = 0; StringBuilder sb = new StringBuilder(); foreach (var master in MasterCatalog.allAiMasters) { langInvar = Alias.GetLangInvar(master.bodyPrefab.GetComponent <CharacterBody>().baseNameToken); sb.AppendLine($"[{i}]{master.name}={langInvar}"); i++; } Log.Message(sb); }