コード例 #1
0
 public void Write(SpecialBonus bonus)
 {
     _writer.Write(bonus.Special);
     _writer.Write(bonus.AlternateString);
     _writer.Write(bonus.Entities.Length - 1);
     for (var i = 0; i < bonus.Entities.Length; i++)
     {
         _entityWriter.Write(bonus.Entities[i]);
     }
 }
コード例 #2
0
 public void Write(Bonus bonus)
 {
     _writer.Write(bonus.Special);
     _writer.Write(bonus.AlternateString);
     _writer.Write(bonus.PlayerVersusMode);
     _writer.Write(bonus.Slotted);
     _writer.Write(bonus.Entities.Length - 1);
     for (var i = 0; i < bonus.Entities.Length; i++)
     {
         _entityWriter.Write(bonus.Entities[i]);
     }
 }