コード例 #1
0
 internal static string DescriptionWithoutType(IEpidermis epidermis, bool singularFormat)
 {
     if (epidermis.epidermisType == EpidermisType.EMPTY)
     {
         return("");
     }
     else if (epidermis.epidermisType.usesTone)
     {
         return(epidermis.skinTexture.AsString(singularFormat) + epidermis.tone.AsString());
     }
     else
     {
         return(epidermis.furTexture.AsString(singularFormat) + epidermis.furColor.AsString());
     }
 }
コード例 #2
0
 internal static string JustColor(IEpidermis epidermis, bool singularFormat = false)
 {
     if (epidermis.epidermisType == EpidermisType.EMPTY)
     {
         return("");
     }
     else if (epidermis.epidermisType.usesTone)
     {
         return(epidermis.tone.AsString(singularFormat));
     }
     else
     {
         return(epidermis.furColor.AsString(singularFormat));
     }
 }
コード例 #3
0
 internal static string JustTexture(IEpidermis epidermis, bool singularFormat = false)
 {
     if (epidermis.epidermisType == EpidermisType.EMPTY)
     {
         return("");
     }
     else if (epidermis.epidermisType.usesTone)
     {
         return(epidermis.skinTexture.AsString(singularFormat));
     }
     else
     {
         return(epidermis.furTexture.AsString(singularFormat));
     }
 }
コード例 #4
0
        private static string ColoredStr(IEpidermis epidermis, bool singularFormat, bool adjectiveDesc, out bool isPlural)
        {
            string preDesc = adjectiveDesc ? ", " : " ";

            if (epidermis.epidermisType == EpidermisType.EMPTY)
            {
                isPlural = false;
                return("");
            }
            else if (epidermis.epidermisType.usesFurColor)
            {
                return(epidermis.furColor.AsString(singularFormat) + preDesc + epidermis.epidermisType.ShortDescription(out isPlural));
            }
            else
            {
                return(epidermis.tone.AsString(singularFormat) + preDesc + epidermis.epidermisType.ShortDescription(out isPlural));
            }
        }
コード例 #5
0
        private static string TexturedStr(IEpidermis epidermis, bool singularFormat, bool adjectiveDesc, out bool isPlural)
        {
            string preDesc = adjectiveDesc ? ", " : " ";

            if (epidermis.epidermisType == EpidermisType.EMPTY)
            {
                isPlural = false;
                return("");
            }
            else if (epidermis.epidermisType.usesFurColor)
            {
                string adj = epidermis.furTexture.AsString(singularFormat);
                return(adj + (string.IsNullOrWhiteSpace(adj) ? "" : preDesc) + epidermis.epidermisType.ShortDescription(out isPlural));
            }
            else
            {
                string adj = epidermis.skinTexture.AsString(singularFormat);
                return(adj + (string.IsNullOrWhiteSpace(adj) ? "" : preDesc) + epidermis.epidermisType.ShortDescription(out isPlural));
            }
        }
コード例 #6
0
 internal static string AdjectiveWith(IEpidermis epidermis, bool noTexture = false, bool noColor = false, bool singularFormat = false)
 {
     if (epidermis.epidermisType == EpidermisType.EMPTY)
     {
         return("");
     }
     else if (noTexture && noColor)
     {
         return(epidermis.epidermisType.AdjectiveDescription(singularFormat));
     }
     else if (noTexture)
     {
         return(AdjectiveWithColor(epidermis, singularFormat));
     }
     else if (noColor)
     {
         return(AdjectiveWithTexture(epidermis, singularFormat));
     }
     else
     {
         return(LongAdjectiveDescription(epidermis, singularFormat));
     }
 }
コード例 #7
0
 internal static string DescriptionWith(IEpidermis epidermis, bool noTexture = false, bool noColor = false)
 {
     if (epidermis.epidermisType == EpidermisType.EMPTY)
     {
         return("");
     }
     else if (noTexture && noColor)
     {
         return(epidermis.epidermisType.ShortDescription());
     }
     else if (noTexture)
     {
         return(DescriptionWithColor(epidermis, out bool _));
     }
     else if (noColor)
     {
         return(DescriptionWithTexture(epidermis, out bool _));
     }
     else
     {
         return(LongDescription(epidermis, out bool _));
     }
 }
コード例 #8
0
 internal static string LongAdjectiveDescription(IEpidermis epidermis, bool singularFormat)
 {
     return(fullStr(epidermis, singularFormat, true, out bool _));
 }
コード例 #9
0
 internal static string AdjectiveDescriptionWithoutType(IEpidermis epidermis, bool singularFormat)
 {
     //identical, afaik.
     return(DescriptionWithoutType(epidermis, singularFormat));
 }
コード例 #10
0
 internal static string AdjectiveWithTexture(IEpidermis epidermis, bool singularFormat)
 {
     return(TexturedStr(epidermis, singularFormat, true, out bool _));
 }
コード例 #11
0
 internal static string LongDescription(IEpidermis epidermis, out bool isPlural)
 {
     return(fullStr(epidermis, false, false, out isPlural));
 }
コード例 #12
0
 internal static string DescriptionWithTexture(IEpidermis epidermis, out bool isPlural)
 {
     return(TexturedStr(epidermis, false, false, out isPlural));
 }