コード例 #1
0
ファイル: ExtraAllt.cs プロジェクト: victoriahard/ops
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     extraCheese      = archive.Inout("extraCheese", extraCheese);
     nrOfMushRooms    = archive.Inout("nrOfMushRooms", nrOfMushRooms);
     meetQuality      = archive.Inout("meetQuality", meetQuality);
     timestamp        = archive.Inout("timestamp", timestamp);
     timeBakedHours   = archive.Inout("timeBakedHours", timeBakedHours);
     timeBakedSeconds = archive.Inout("timeBakedSeconds", timeBakedSeconds);
     description      = archive.Inout("description", description);
     _cheese_         = (pizza.special.Cheese)archive.Inout("cheese_", _cheese_);
     _bools           = (List <bool>)archive.InoutBooleanList("bools", _bools);
     _bytes           = (List <byte>)archive.InoutByteList("bytes", _bytes);
     _ints            = (List <int>)archive.InoutIntegerList("ints", _ints);
     _longs           = (List <long>)archive.InoutLongList("longs", _longs);
     _floats          = (List <float>)archive.InoutFloatList("floats", _floats);
     _doubles         = (List <double>)archive.InoutDoubleList("doubles", _doubles);
     _strings         = (List <string>)archive.InoutStringList("strings", _strings);
     _cheeses         = (List <pizza.special.Cheese>)archive.InoutSerializableList("cheeses", _cheeses);
 }
コード例 #2
0
ファイル: ExtraAllt.cs プロジェクト: staxgr/ops
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     extraCheese = archive.Inout("extraCheese", extraCheese);
     nrOfMushRooms = archive.Inout("nrOfMushRooms", nrOfMushRooms);
     meetQuality = archive.Inout("meetQuality", meetQuality);
     timestamp = archive.Inout("timestamp", timestamp);
     timeBakedHours = archive.Inout("timeBakedHours", timeBakedHours);
     timeBakedSeconds = archive.Inout("timeBakedSeconds", timeBakedSeconds);
     description = archive.Inout("description", description);
     _cheese_ = (pizza.special.Cheese) archive.Inout("cheese_", _cheese_);
     _bools = (List<bool>) archive.InoutBooleanList("bools", _bools);
     _bytes = (List<byte>) archive.InoutByteList("bytes", _bytes);
     _ints = (List<int>) archive.InoutIntegerList("ints", _ints);
     _longs = (List<long>) archive.InoutLongList("longs", _longs);
     _floats = (List<float>) archive.InoutFloatList("floats", _floats);
     _doubles = (List<double>) archive.InoutDoubleList("doubles", _doubles);
     _strings = (List<string>) archive.InoutStringList("strings", _strings);
     _cheeses = (List<pizza.special.Cheese>) archive.InoutSerializableList("cheeses", _cheeses);
 }