Exemple #1
0
 public void Store <T>(string key, T value)
 {
     PluginData.Named.DataMap.Add(key, ToDataConvertors[typeof(T)](value, Level));
 }
Exemple #2
0
 public void Store <T>(int index, T value)
 {
     PluginData.Indexed.DataMap.Add(index, ToDataConvertors[typeof(T)](value, Level));
 }
Exemple #3
0
 public bool CanStoreAndLoad <T>()
 {
     return(FromDataConvertors.ContainsKey(typeof(T)) && ToDataConvertors.ContainsKey(typeof(T)));
 }
Exemple #4
0
 public void StoreNext <T>(T value)
 {
     PluginData.Sequential.Data.Add(ToDataConvertors[typeof(T)](value, Level));
 }