Example #1
0
 public SubActorLook(sbyte index, SubEntityBindingPointCategoryEnum category, ActorLook look)
 {
     this.m_bindingIndex    = index;
     this.m_bindingCategory = category;
     this.m_look            = look;
     this.m_subEntity       = new ObjectValidator <SubEntity>(new Func <SubEntity>(this.BuildSubEntity));
 }
Example #2
0
        public Look(byte[] datas)
        {
            _colors   = new Dictionary <int, int>();
            _scales   = new List <int>();
            _skins    = new List <uint>();
            _subLooks = new List <SubLook>();

            var reader = new BigEndianReader(datas);
            int count  = 0;

            count = reader.ReadShort();
            for (int i = 0; i < count; i++)
            {
                _colors.Add(reader.ReadInt(), reader.ReadInt());
            }
            count = reader.ReadShort();
            for (int i = 0; i < count; i++)
            {
                var test = reader.ReadInt();
                _scales.Add(test);
            }
            count = reader.ReadShort();
            for (int i = 0; i < count; i++)
            {
                _skins.Add(reader.ReadUInt());
            }
            count = reader.ReadShort();
            for (int i = 0; i < count; i++)
            {
            }

            _bonesID = (uint)reader.ReadUInt();
            _binding = (SubEntityBindingPointCategoryEnum)reader.ReadUInt();
        }
Example #3
0
 public ContextSubEntity(SubEntityBindingPointCategoryEnum category, sbyte bindingPointIndex,
                         ContextActorLook subActorLook)
 {
     this.Category          = category;
     this.BindingPointIndex = bindingPointIndex;
     this.SubActorLook      = subActorLook;
 }
Example #4
0
 public SubActorLook(sbyte index, SubEntityBindingPointCategoryEnum category, ActorLook look)
 {
     m_bindingIndex    = index;
     m_bindingCategory = category;
     Look        = look;
     m_subEntity = new ObjectValidator <SubEntity>(BuildSubEntity);
 }
Example #5
0
 public ContextSubEntity GetSubEntity(SubEntityBindingPointCategoryEnum category)
 {
     return(SubEntities.Find(x => x.Category == category));
 }
Example #6
0
 public int RemoveSubEntities(ContextActorLook look, SubEntityBindingPointCategoryEnum category)
 {
     return(look.SubEntities.RemoveAll(x => x.Category == category));
 }
Example #7
0
 public SubLook(sbyte index, SubEntityBindingPointCategoryEnum category, Look look)
 {
     this.m_bindingIndex    = index;
     this.m_bindingCategory = category;
     this.m_look            = look;
 }
Example #8
0
 public void RemoveSubLook(SubEntityBindingPointCategoryEnum category)
 {
     m_subLooks.RemoveAll(x => x.BindingCategory == category);
     m_entityLook.Invalidate();
 }