private static GetScaleConfig ( string name ) : |
||
name | string | The name of the ScaleType to fetch. |
return |
private static ScaleType GetScaleConfig(string name)
{
var config = GameDatabase.Instance.GetConfigs("SCALETYPE").FirstOrDefault(a => a.name == name);
if (config == null && name != "default")
{
Tools.LogWf("No SCALETYPE with name {0}", name);
}
return (object)config == null ? DefaultScaleType : new ScaleType(config.config);
}