Пример #1
0
        // -------------------------------------------------------------------------------
        // AckActorPlayerCreate
        // -------------------------------------------------------------------------------
        public void AckActorPlayerCreate(MsgAckActorPlayerCreate message, NetworkConnection connection = null)
        {
            string sResult = (message.bSuccess) ? Constants.INT_SUCCESS.ToString() : Constants.INT_FAILURE.ToString();

            if (message.bSuccess)
            {
                actorsRemaining--;
            }

            DictionaryDoAction("CallbackActorCreate", new string[] { sResult });
        }
Пример #2
0
        // -------------------------------------------------------------------------------
        // OnMsgAckActorPlayerCreate
        // -------------------------------------------------------------------------------
        public void OnMsgAckActorPlayerCreate(NetworkMessage networkMessage)
        {
            MsgAckActorPlayerCreate message = networkMessage.ReadMessage <MsgAckActorPlayerCreate>();

            clientManager.AckActorPlayerCreate(message, networkMessage.conn);
        }