public void AddProperty(BS_PropertyId id, float value = float.MinValue) { BS_Property ip = new BS_Property(); ip.BaseValue = value; ip.Id = id; ip.Recompute(); _properties.Add(id, ip); _propertyList.Add(ip); }
public void AddPropertyKeyword(BS_PropertyId id, BS_Keyword flags) { BS_Property prop = GetProperty(id); if (Dbg.Assert(prop != null)) { return; } prop.Flags.Add(flags); prop.Recompute(); }
public void RemovePropertyKeywords(BS_PropertyId id, BS_KeywordSet flags) { BS_Property prop = GetProperty(id); if (Dbg.Assert(prop != null)) { return; } prop.Flags.Remove(flags); prop.Recompute(); }
public void SetPropertyBase(BS_PropertyId id, float value) { BS_Property prop = GetProperty(id); if (Dbg.Assert(prop != null)) { return; } prop.BaseValue = value; prop.Recompute(); }