public override void OnReplicationDeserialize(P2PNetworkReader reader, bool initial_state)
 {
     this.m_ReplControllerType = (PlayerControllerType)reader.ReadInt32();
     if (this.m_ReplControllerType != PlayerControllerType.Unknown)
     {
         this.m_ReplItemName = reader.ReadString();
     }
 }
Exemplo n.º 2
0
    public override void Deserialize(P2PNetworkReader reader)
    {
        int num = (int)reader.ReadUInt16();

        this.scripts = new P2PCRCMessageEntry[num];
        for (int i = 0; i < this.scripts.Length; i++)
        {
            P2PCRCMessageEntry p2PCRCMessageEntry = default(P2PCRCMessageEntry);
            p2PCRCMessageEntry.name    = reader.ReadString();
            p2PCRCMessageEntry.channel = reader.ReadByte();
            this.scripts[i]            = p2PCRCMessageEntry;
        }
    }
Exemplo n.º 3
0
 public override void Deserialize(P2PNetworkReader reader)
 {
     this.value = reader.ReadString();
 }