Example #1
0
        public override string ToString()
        {
            string childClassName      = null;
            string commaSeparatedProps = null;

            getCommaSeparatedToStringProps(out childClassName, out commaSeparatedProps);

            string output = "<" + childClassName + ">{" +
                            "ID: " + ID + ", " +
                            "InstanceID: " + InstanceID + ", " +
                            "Name: " + Name + ", " +
                            "Description: " + Description + ", " +
                            "Level: " + Level_ZeroBased + ", " +
                            "RarityType: " + RarityType.ToString() + ", " +
                            "StackedCount: " + StackedCount + ", " +
                            commaSeparatedProps +
                            "}";

            return(output);
        }
Example #2
0
        public override string ToString()
        {
            string alwaysDroppedItems = "";

            if (AlwaysDroppedItemIDs != null)
            {
                alwaysDroppedItems = "[" + string.Join(",", AlwaysDroppedItemIDs) + "]";
            }

            string output = "<NpcModel>{" + ", " +
                            "ID: " + ID + ", " +
                            "Name: " + Name + ", " +
                            "NpcRole: " + NpcRole.ToString() + ", " +
                            "NpcRace: " + NpcRace.ToString() + ", " +
                            "NpcSize: " + NpcSize.ToString() + ", " +
                            "RarityType: " + RarityType.ToString() + ", " +
                            "CombatantModel: " + CombatantModel.ToString() + ", " +
                            "AlwaysDroppedItemIDs: " + alwaysDroppedItems +
                            "}";

            return(output);
        }
Example #3
0
 public static string GetString(this RarityType rarity, float adjust        = 0) => rarity.ToString().Rarity(rarity, adjust);