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)); }
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(); }
public ContextSubEntity(SubEntityBindingPointCategoryEnum category, sbyte bindingPointIndex, ContextActorLook subActorLook) { this.Category = category; this.BindingPointIndex = bindingPointIndex; this.SubActorLook = subActorLook; }
public SubActorLook(sbyte index, SubEntityBindingPointCategoryEnum category, ActorLook look) { m_bindingIndex = index; m_bindingCategory = category; Look = look; m_subEntity = new ObjectValidator <SubEntity>(BuildSubEntity); }
public ContextSubEntity GetSubEntity(SubEntityBindingPointCategoryEnum category) { return(SubEntities.Find(x => x.Category == category)); }
public int RemoveSubEntities(ContextActorLook look, SubEntityBindingPointCategoryEnum category) { return(look.SubEntities.RemoveAll(x => x.Category == category)); }
public SubLook(sbyte index, SubEntityBindingPointCategoryEnum category, Look look) { this.m_bindingIndex = index; this.m_bindingCategory = category; this.m_look = look; }
public void RemoveSubLook(SubEntityBindingPointCategoryEnum category) { m_subLooks.RemoveAll(x => x.BindingCategory == category); m_entityLook.Invalidate(); }