Ejemplo n.º 1
0
 public bool TryGetValue <T>(int index, out T value)
 {
     value = default(T);
     if (PluginData.Indexed.DataMap.TryGetValue(index, out Data dataValue))
     {
         value = (T)FromDataConvertors[typeof(T)](dataValue, Level);
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
        public bool TryGetValue <T>(string key, out T value)
        {
            value = default(T);
            if (PluginData.Named.DataMap.TryGetValue(key, out Data valueData))
            {
                value = (T)FromDataConvertors[typeof(T)](valueData, Level);
                return(true);
            }

            return(false);
        }
Ejemplo n.º 3
0
 public T Get <T>(string key)
 {
     return((T)FromDataConvertors[typeof(T)](PluginData.Named.DataMap[key], Level));
 }
Ejemplo n.º 4
0
 public bool CanStoreAndLoad <T>()
 {
     return(FromDataConvertors.ContainsKey(typeof(T)) && ToDataConvertors.ContainsKey(typeof(T)));
 }
Ejemplo n.º 5
0
 public T Get <T>(int index)
 {
     return((T)FromDataConvertors[typeof(T)](PluginData.Indexed.DataMap[index], Level));
 }
Ejemplo n.º 6
0
 public T GetCurrent <T>()
 {
     return((T)FromDataConvertors[typeof(T)](dataEnumerator.Current, Level));
 }