Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        public void                     SetPropertyBase(BS_PropertyId id, float value)
        {
            BS_Property prop = GetProperty(id);

            if (Dbg.Assert(prop != null))
            {
                return;
            }

            prop.BaseValue = value;
            prop.Recompute();
        }