Exemplo n.º 1
0
 public void Encode(GameBitBuffer buffer)
 {
     for (int i = 0; i < HotBarButtons.Length; i++)
     {
         HotBarButtons[i].Encode(buffer);
     }
     for (int i = 0; i < SkilKeyMappings.Length; i++)
     {
         SkilKeyMappings[i].Encode(buffer);
     }
     buffer.WriteInt(32, PlaytimeTotal);
     buffer.WriteInt(32, WaypointFlags);
     Field4.Encode(buffer);
     buffer.WriteInt(32, Field5);
     LearnedLore.Encode(buffer);
     for (int i = 0; i < snoActiveSkills.Length; i++)
     {
         buffer.WriteInt(32, snoActiveSkills[i]);
     }
     for (int i = 0; i < snoTraits.Length; i++)
     {
         buffer.WriteInt(32, snoTraits[i]);
     }
     SavePointData.Encode(buffer);
     for (int i = 0; i < m_SeenTutorials.Length; i++)
     {
         buffer.WriteInt(32, m_SeenTutorials[i]);
     }
 }
Exemplo n.º 2
0
 public void Encode(GameBitBuffer buffer)
 {
     for (int i = 0; i < HotBarButtons.Length; i++)
     {
         HotBarButtons[i].Encode(buffer);
     }
     buffer.WriteInt(8, Field2);
     HotBarButton.Encode(buffer);
     buffer.WriteInt(32, PlaytimeTotal);
     buffer.WriteInt(32, WaypointFlags);
     Field4.Encode(buffer);
     buffer.WriteInt(32, Field5);
     LearnedLore.Encode(buffer);
     for (int i = 0; i < ActiveSkills.Length; i++)
     {
         ActiveSkills[i].Encode(buffer);
     }
     for (int i = 0; i < snoTraits.Length; i++)
     {
         buffer.WriteInt(32, snoTraits[i]);
     }
     SavePointData.Encode(buffer);
 }