示例#1
0
        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'));
        }
示例#2
0
        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());
        }
示例#3
0
        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'));
        }
示例#4
0
        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());
        }
示例#5
0
        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);
        }
示例#6
0
        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);
        }