Example #1
0
 public void Unpack(BinaryReader reader)
 {
     AttributeFlags = reader.ReadUInt32();
     if ((AttributeFlags & 0x00000001) != 0)
     {
         Strength.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000002) != 0)
     {
         Endurance.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000004) != 0)
     {
         Quickness.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000008) != 0)
     {
         Coordination.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000010) != 0)
     {
         Focus.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000020) != 0)
     {
         Self.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000040) != 0)
     {
         Health.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000080) != 0)
     {
         Stamina.Unpack(reader);
     }
     if ((AttributeFlags & 0x00000100) != 0)
     {
         Mana.Unpack(reader);
     }
 }