public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Type = (CompassionPigmentType)reader.ReadInt(); m_UsesRemaining = reader.ReadInt(); }
public CompassionPigment(CompassionPigmentType type, int uses) : base(0xEFF) { m_Type = type; m_UsesRemaining = uses; Weight = 1.0; InvalidateHue(); }
public CompassionPigment( CompassionPigmentType type, int uses ) : base(0xEFF) { m_Type = type; m_UsesRemaining = uses; Weight = 1.0; InvalidateHue(); }
public static CompassionPigmentInfo GetInfo(CompassionPigmentType type) { int v = (int)type; if (v < 0 || v >= m_Table.Length) { v = 0; } return(m_Table[v]); }
public CompassionPigmentInfo(CompassionPigmentType type, int hue, int labelNumber) { Type = type; Hue = hue; LabelNumber = labelNumber; }
public CompassionPigment(CompassionPigmentType type) : this(type, 5) { }
public CompassionPigment( CompassionPigmentType type ) : this(type, 5) { }
public static CompassionPigmentInfo GetInfo( CompassionPigmentType type ) { int v = (int) type; if ( v < 0 || v >= m_Table.Length ) v = 0; return m_Table[v]; }
public CompassionPigmentInfo( CompassionPigmentType type, int hue, int labelNumber ) { Type = type; Hue = hue; LabelNumber = labelNumber; }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); /*int version = */ reader.ReadInt(); m_Type = (CompassionPigmentType) reader.ReadInt(); m_UsesRemaining = reader.ReadInt(); }