Beispiel #1
0
        public void OnPlayerLogin(long sessionID, message.LoginRequest msg)
        {
            var  u         = DB.User.Login(msg.deviceUID);
            long playerUID = u["uid"].AsInt64;

            sessionPlayerDict[sessionID] = playerUID;

            //TODO: 额外LOG处理
            Debug.Log("receive ---> {0}   {1} :len({2})", playerUID, msg.GetType(), -1);

            message.LoginReply rep = new message.LoginReply();
            rep.level = 1;
            rep.name  = "hello";
            SendTo(playerUID, rep);
        }
Beispiel #2
0
 public void SetData(message.LoginReply info)
 {
     m_uuid = 1;
     m_name = info.name;
     m_camp = ECamp.None;
 }