示例#1
0
        protected TRatesPreset GetPreset <TRatesPreset>()
            where TRatesPreset : BaseRatesPreset, new()
        {
            if (Api.IsServer)
            {
                return(null);
            }

            return(ClientRatesPresetsManager.GetInstance <TRatesPreset>());
        }
示例#2
0
 static BaseRatesPreset()
 {
     ClientRatesPresetsManager.EnsureInitialized();
 }