Ejemplo n.º 1
0
 public static void SaveCutters(AggressivePlayer player, SequentialPluginDataWriter writer, IEnumerable <CutterWrapper> cutters)
 {
     writer.StoreNext(player.takenPositions.Count);
     foreach (var cutter in cutters)
     {
         cutter.Save(writer);
     }
 }
Ejemplo n.º 2
0
 public override void Save(SequentialPluginDataWriter writer)
 {
     writer.StoreNext((int)Current);
     writer.StoreNext(timeout.Remaining);
 }
Ejemplo n.º 3
0
 public override void Save(SequentialPluginDataWriter writer)
 {
     writer.StoreNext((int)Current);
     writer.StoreNext(destruction != null);
 }
Ejemplo n.º 4
0
 public override void Save(SequentialPluginDataWriter writer)
 {
     writer.StoreNext((int)Current);
 }
Ejemplo n.º 5
0
 public void Store(SequentialPluginDataWriter writer)
 {
     writer.StoreNext(Unit?.ID ?? 0);
     writer.StoreNext(timeout.Duration);
     writer.StoreNext(timeout.Remaining);
 }
Ejemplo n.º 6
0
 void Save(SequentialPluginDataWriter writer)
 {
     writer.StoreNext(cutter.Building.ID);
     writer.StoreNext(position);
 }