Beispiel #1
0
 public void Deserialize(ref DataStreamReader reader)
 {
     SlotNumber  = reader.ReadUIntNetworkByteOrder();
     SlotContent = (PowerupSlotContent)reader.ReadUIntNetworkByteOrder();
     switch (SlotContent)
     {
     case PowerupSlotContent.Laser:
         LaserPowerupSlotData *slotData = (LaserPowerupSlotData *)UnsafeUtility.Malloc(sizeof(LaserPowerupSlotElement), sizeof(LaserPowerupSlotElement), Unity.Collections.Allocator.Persistent);
         slotData->RemainingShots = reader.ReadUIntNetworkByteOrder();
         SlotData = slotData;
         break;
     }
 }
Beispiel #2
0
        public void FromStream(DataStreamReader reader, ref DataStreamReader.Context ctx)
        {
            QueryHeader.FromStream(reader, ref ctx);
            ChunkLen = reader.ReadUIntNetworkByteOrder(ref ctx);

            ServerInfoData.FromStream(reader, ref ctx);
        }
Beispiel #3
0
 public void FromStream(DataStreamReader reader, ref DataStreamReader.Context ctx)
 {
     Type        = reader.ReadByte(ref ctx);
     ChallangeId = reader.ReadUIntNetworkByteOrder(ref ctx);
 }
Beispiel #4
0
 public void Deserialize(ref DataStreamReader reader)
 {
     slotNumber = reader.ReadUIntNetworkByteOrder();
 }
Beispiel #5
0
 public void Deserialize(ref DataStreamReader reader)
 {
     Position = reader.ReadUIntNetworkByteOrder();
 }
Beispiel #6
0
 public void Deserialize(ref DataStreamReader reader)
 {
     CountdownSeconds = reader.ReadUIntNetworkByteOrder();
 }
Beispiel #7
0
 public void Deserialize(ref DataStreamReader reader)
 {
     PowerupId = reader.ReadUIntNetworkByteOrder();
     Enabled   = Convert.ToBoolean(reader.ReadByte());
 }