marceldev89/BattleNET

BattlEyeConnectEventHandler

Closed this issue · 4 comments

How to make BattlEyeConnectEvent return string or bool?

You can change event stuff here.

But how b.BattlEyeConnected += BattlEyeConnected; return in variable bool?

BattlEyeConnected can't return a bool, you need to handle all connection related code inside of the event.
Take a look at the BattlEyeConnectEventArgs inside the connect event.

You can see it here: https://github.com/mvries/BattleNET/blob/master/BattleNET%20client/Program.cs#L102

args.ConnectionResult is what you want.

Closing for now, ty @DomiStyle.