Exemple #1
0
        /// <summary>
        /// Returns an int from the savedata, returns the defaultValue when there's none
        /// </summary>
        public int GetInt(string key, int defaultValue = 0)
        {
            if (!IntStore.ContainsKey(key))
            {
                IntStore.Add(key, defaultValue);
            }

            return(IntStore[key]);
        }
Exemple #2
0
 /// <summary>
 /// Sets an int to the savedata
 /// </summary>
 public void SetInt(string key, int i)
 {
     if (!IntStore.ContainsKey(key))
     {
         IntStore.Add(key, i);
     }
     else
     {
         IntStore[key] = i;
     }
 }
Exemple #3
0
 public GeometryInfo() {
     VertexData = new FloatStore();
     NormalData = new FloatStore();
     TextureData = new FloatStore();
     IndexData = new IntStore();
 }
Exemple #4
0
        //////////////////////////////////////////////////////////////////////////////

        public IntStoreUpdater(IntStore store) : base(store)
        {
            Array.Fill(hashtable, -1);
            this.store = store;
        }
Exemple #5
0
 public CurveInfo()
 {
     VertexData = new FloatStore();
     IndexData = new IntStore();
 }