/// <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]); }
/// <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; } }
public GeometryInfo() { VertexData = new FloatStore(); NormalData = new FloatStore(); TextureData = new FloatStore(); IndexData = new IntStore(); }
////////////////////////////////////////////////////////////////////////////// public IntStoreUpdater(IntStore store) : base(store) { Array.Fill(hashtable, -1); this.store = store; }
public CurveInfo() { VertexData = new FloatStore(); IndexData = new IntStore(); }