示例#1
0
 public void Read(IStarReader reader)
 {
     ReceivedMessage = new ChatReceivedMessage
     {
         Context = new MessageContext
         {
             Mode = (Mode)reader.ReadByte(),
             ChannelName = reader.ReadString()
         },
         ClientId = reader.ReadInt32(),
         FromNick = reader.ReadString(),
         Text = reader.ReadString()
     };
 }
示例#2
0
 public void Read(IStarReader reader)
 {
     ClientId = reader.ReadVLQ();
     Uuid = reader.Serializer.Deserialize<IUuid>(reader);
     CelestialInformation = new CelestialBaseInformation
     {
         PlanetOrbitalLevels = reader.ReadInt32(),
         SatelliteOrbitalLevels = reader.ReadInt32(),
         ChunkSize = reader.ReadInt32(),
         XyCoordRange = new Vec2I
         {
             X = reader.ReadInt32(),
             Y = reader.ReadInt32()
         },
         ZCoordRange = new Vec2I
         {
             X = reader.ReadInt32(),
             Y = reader.ReadInt32()
         }
     };
 }
示例#3
0
 public void ReadFrom(IStarReader reader)
 {
     ShipLevel = reader.ReadInt32();
     MaxFuel = reader.ReadInt32();
     Capabilities = reader.Serializer.Deserialize<List<string>>(reader);
 }