Core: SOme code cleanup, more to follow.

This commit is contained in:
hondacrx
2021-03-20 22:48:48 -04:00
parent 62f554f2e0
commit 62ec699ec6
318 changed files with 5080 additions and 5125 deletions
+4 -4
View File
@@ -43,7 +43,7 @@ namespace Game
{
SetRealmListSecret(changeRealmTicket.Secret);
ChangeRealmTicketResponse realmListTicket = new ChangeRealmTicketResponse();
ChangeRealmTicketResponse realmListTicket = new();
realmListTicket.Token = changeRealmTicket.Token;
realmListTicket.Allow = true;
realmListTicket.Ticket = new Framework.IO.ByteBuffer();
@@ -54,7 +54,7 @@ namespace Game
public void SendBattlenetResponse(uint serviceHash, uint methodId, uint token, IMessage response)
{
Response bnetResponse = new Response();
Response bnetResponse = new();
bnetResponse.BnetStatus = BattlenetRpcErrorCode.Ok;
bnetResponse.Method.Type = MathFunctions.MakePair64(methodId, serviceHash);
bnetResponse.Method.ObjectId = 1;
@@ -68,7 +68,7 @@ namespace Game
public void SendBattlenetResponse(uint serviceHash, uint methodId, uint token, BattlenetRpcErrorCode status)
{
Response bnetResponse = new Response();
Response bnetResponse = new();
bnetResponse.BnetStatus = status;
bnetResponse.Method.Type = MathFunctions.MakePair64(methodId, serviceHash);
bnetResponse.Method.ObjectId = 1;
@@ -85,7 +85,7 @@ namespace Game
public void SendBattlenetRequest(uint serviceHash, uint methodId, IMessage request)
{
Notification notification = new Notification();
Notification notification = new();
notification.Method.Type = MathFunctions.MakePair64(methodId, serviceHash);
notification.Method.ObjectId = 1;
notification.Method.Token = _battlenetRequestToken++;