public override uint LoginLogic(Login2Server msg, long connectId, out LiteNetLibManager.Player player)
        {
            GameConsolePanelSettingConfig config = GameConsolePanelSettingConfig.GetCofig();

            string key = msg.key;
            string pw  = msg.password;

            if (config.loginKey.Equals(key) && config.loginPassword.Equals(pw))
            {
                player          = new LiteNetLibManager.Player(connectId);
                player.playerID = Guid.NewGuid().ToString();

                return(0);
            }
            player = null;
            return(102);
        }
예제 #2
0
        public override uint LoginLogic(Login2Server msg, Session session, out SimpleNetManager.Player player)
        {
            URCSettingData config = URCSettingData.GetCofig();

            string key = msg.key;
            string pw  = msg.password;


            if (config.loginKey.Equals(key) && config.loginPassword.Equals(pw))
            {
                player          = new SimpleNetManager.Player(session);
                player.playerID = Guid.NewGuid().ToString();

                return(0);
            }
            player = null;
            return(102);
        }