mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Inserted blank lines where appropriate
This commit is contained in:
parent
6e92cba906
commit
af84a1730b
@ -77,6 +77,7 @@ bool ProcessClientMessage()
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void ClientDisconnect() => client.Disconnect();
|
||||
|
||||
// IMPORTANT: set script execution order to >1000 to call Transport's
|
||||
@ -97,6 +98,7 @@ public void LateUpdate()
|
||||
public override bool ServerActive() => server.Active;
|
||||
public override void ServerStart() => server.Start(port);
|
||||
public override bool ServerSend(int connectionId, int channelId, byte[] data) => server.Send(connectionId, data);
|
||||
|
||||
public bool ProcessServerMessage()
|
||||
{
|
||||
if (server.GetNextMessage(out Telepathy.Message message))
|
||||
@ -121,7 +123,9 @@ public bool ProcessServerMessage()
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool ServerDisconnect(int connectionId) => server.Disconnect(connectionId);
|
||||
|
||||
public override string ServerGetClientAddress(int connectionId)
|
||||
{
|
||||
try
|
||||
@ -141,6 +145,7 @@ public override string ServerGetClientAddress(int connectionId)
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
public override void ServerStop() => server.Stop();
|
||||
|
||||
// common
|
||||
|
Loading…
Reference in New Issue
Block a user