Beispiel #1
0
 public void Pack(BinaryWriter writer)
 {
     writer.Write(AttributeFlags);
     if ((AttributeFlags & 0x00000001) != 0)
     {
         Strength.Pack(writer);
     }
     if ((AttributeFlags & 0x00000002) != 0)
     {
         Endurance.Pack(writer);
     }
     if ((AttributeFlags & 0x00000004) != 0)
     {
         Quickness.Pack(writer);
     }
     if ((AttributeFlags & 0x00000008) != 0)
     {
         Coordination.Pack(writer);
     }
     if ((AttributeFlags & 0x00000010) != 0)
     {
         Focus.Pack(writer);
     }
     if ((AttributeFlags & 0x00000020) != 0)
     {
         Self.Pack(writer);
     }
     if ((AttributeFlags & 0x00000040) != 0)
     {
         Health.Pack(writer);
     }
     if ((AttributeFlags & 0x00000080) != 0)
     {
         Stamina.Pack(writer);
     }
     if ((AttributeFlags & 0x00000100) != 0)
     {
         Mana.Pack(writer);
     }
 }