Esempio n. 1
0
    private ServerState SerializeDecode(NetworkReader reader)
    {
        int  id      = 0;
        int  input   = 0;
        bool inhibit = false;

        id      = reader.ReadInt32();
        inhibit = reader.ReadBoolean();
        input   = reader.ReadInt32();
        PlayerProperties properties = new PlayerProperties();

        properties.NetworkDeserialize(reader);

        ServerState state = new ServerState(id, properties, input, inhibit);

        return(state);
    }