Home Forums Support [Help] Custom Class and Coding

Viewing 2 posts - 11 through 12 (of 12 total)
  • Author
    Posts
  • #3649
    Anonymous
    Inactive

    ok, can you show me the class definition of ServerCommands?

    Regards,
    Marc

    #3658
    Anonymous
    Inactive

    I think this is the same as what tricked me in the first case. Turned out i needed to define which properties were serialized and in which order before the object could be send/recieved.
    Im quite unfamiliar with Protobuf though, so only using [ProtoContract] might be sufficient but i havent tested this yet.

    Like this:

        [ProtoContract]
        public class LoginPacket
        {
            [ProtoMember(1)]
            public string Username { get; set; }
            [ProtoMember(2)]
            public string Password { get; set; }
        }
    • This reply was modified 9 years, 9 months ago by .
    • This reply was modified 9 years, 9 months ago by .
Viewing 2 posts - 11 through 12 (of 12 total)
  • You must be logged in to reply to this topic.