public virtual void Dispose() { if (m_propHandle != null) { m_propHandle.Reset(); } m_propHandle = null; }
public void RemoveProperty <T>(PropertyH <T> ph) { if (ph.idx < 0 || ph.idx >= m_properties.Count) { return; } var p = m_properties[ph.idx]; m_properties[ph.idx] = null; if (p != null) { p.Clear(); } }
public void AddProperty <T>(PropertyH <T> ph) where T : new() { int idx = 0; int end = m_properties.Count; for (; idx < end;) { if (m_properties[idx] == null) { break; } idx++; } if (idx == end) { m_properties.Add(null); } m_properties[idx] = new Property <T>(ph); ph.Set(idx); }
public Property(PropertyH ph) : base(ph) { }
public Property <T> GetProperty <T>(PropertyH <T> ph) where T : new() { return(this[ph.idx] as Property <T>); }
public BaseProperty(PropertyH propH) { m_propHandle = propH; }