public static VersionConfig Get() { if (config == null) { config = BuiltInAssets.LoadConfig <VersionConfig>("VersionConfig"); } return(config); }
static ColorUtil() { var colorPattern = BuiltInAssets.LoadConfig <ColorPattern>("Config/ColorPattern"); white = colorPattern.white; green = colorPattern.green; blue = colorPattern.blue; purple = colorPattern.purple; orange = colorPattern.orange; red = colorPattern.red; pink = colorPattern.pink; qualityColors = new string[] { StringUtil.Contact("<color=#", ColorToInt16String(white), ">{0}</color>"), StringUtil.Contact("<color=#", ColorToInt16String(green), ">{0}</color>"), StringUtil.Contact("<color=#", ColorToInt16String(blue), ">{0}</color>"), StringUtil.Contact("<color=#", ColorToInt16String(purple), ">{0}</color>"), StringUtil.Contact("<color=#", ColorToInt16String(orange), ">{0}</color>"), StringUtil.Contact("<color=#", ColorToInt16String(red), ">{0}</color>"), StringUtil.Contact("<color=#", ColorToInt16String(pink), ">{0}</color>"), }; }