Beispiel #1
0
        // -------------------------------------------------------------------------------
        // AckActorPlayerList
        // -------------------------------------------------------------------------------
        public void AckActorPlayerList(MsgAckActorPlayerList message, NetworkConnection connection = null)
        {
            List <string> previews = new List <string>();

            foreach (SActorPlayerPreview preview in message.sActorPlayerPreviews)
            {
                previews.Add(JsonUtility.ToJson(preview));
            }


            DictionaryDoAction("CallbackActorPlayerList", previews.ToArray());
        }
Beispiel #2
0
        // -------------------------------------------------------------------------------
        // OnMsgAckActorPlayerList
        // -------------------------------------------------------------------------------
        public void OnMsgAckActorPlayerList(NetworkMessage networkMessage)
        {
            MsgAckActorPlayerList message = networkMessage.ReadMessage <MsgAckActorPlayerList>();

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