| | |
| | | } |
| | | } |
| | | |
| | | public static string GetBaseFullDescription(int id, long value, string format="{0}+{1}") |
| | | //基础属性描述 |
| | | public static string GetBaseFullDescription(int id, long value, string format = "{0}+{1}") |
| | | { |
| | | var config = Get(id); |
| | | if (config == null) |
| | |
| | | return GetValueDescriptionEx(id, value, largeNumFormat); |
| | | } |
| | | |
| | | public static string GetValueDescriptionEx(int id, long value, int largeNumFormat = 2) |
| | | //带格式 |
| | | public static string GetValueDescriptionFormat(int id, long value, int largeNumFormat = 2, string format="+{0}") |
| | | { |
| | | return string.Format(format, GetValueDescriptionEx(id, value, largeNumFormat)); |
| | | } |
| | | |
| | | static string GetValueDescriptionEx(int id, long value, int largeNumFormat = 2) |
| | | { |
| | | var config = Get(id); |
| | | if (config == null) |