Example #1
0
        public override void ResponderConversation(ref object context)
        {
            JoinGameReply msg = new JoinGameReply()
            {
                Game        = _Game,
                ConvId      = ConvId,
                MsgId       = MessageId.Create(),
                MessageType = TypeOfMessage.CreateGameReply
            };

            ReliableSend(msg);
        }
Example #2
0
        public override void InitatorConversation(ref object context)
        {
            Message msg = CreateFirstMessage();

            ReliableSend(msg);

            if (Error != null)
            {
                return;
            }

            JoinGameReply reply = Message.Decode <JoinGameReply>(incomingMsg);

            _Game = reply.Game;
            //do something if needed with context;
            context = _Game;

            Send(CreateAck());
        }