예제 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Type          = (CompassionPigmentType)reader.ReadInt();
            m_UsesRemaining = reader.ReadInt();
        }
예제 #2
0
        public CompassionPigment(CompassionPigmentType type, int uses)
            : base(0xEFF)
        {
            m_Type          = type;
            m_UsesRemaining = uses;

            Weight = 1.0;

            InvalidateHue();
        }
예제 #3
0
        public CompassionPigment( CompassionPigmentType type, int uses )
            : base(0xEFF)
        {
            m_Type = type;
            m_UsesRemaining = uses;

            Weight = 1.0;

            InvalidateHue();
        }
예제 #4
0
        public static CompassionPigmentInfo GetInfo(CompassionPigmentType type)
        {
            int v = (int)type;

            if (v < 0 || v >= m_Table.Length)
            {
                v = 0;
            }

            return(m_Table[v]);
        }
예제 #5
0
 public CompassionPigmentInfo(CompassionPigmentType type, int hue, int labelNumber)
 {
     Type        = type;
     Hue         = hue;
     LabelNumber = labelNumber;
 }
예제 #6
0
 public CompassionPigment(CompassionPigmentType type)
     : this(type, 5)
 {
 }
예제 #7
0
 public CompassionPigment( CompassionPigmentType type )
     : this(type, 5)
 {
 }
예제 #8
0
        public static CompassionPigmentInfo GetInfo( CompassionPigmentType type )
        {
            int v = (int) type;

            if ( v < 0 || v >= m_Table.Length )
                v = 0;

            return m_Table[v];
        }
예제 #9
0
 public CompassionPigmentInfo( CompassionPigmentType type, int hue, int labelNumber )
 {
     Type = type;
     Hue = hue;
     LabelNumber = labelNumber;
 }
예제 #10
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            /*int version = */
            reader.ReadInt();

            m_Type = (CompassionPigmentType) reader.ReadInt();
            m_UsesRemaining = reader.ReadInt();
        }