mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 12:39:52 +00:00
buh
This commit is contained in:
parent
36547dfe58
commit
940d01f81b
@ -30,11 +30,12 @@ namespace QSB.Player.Events
|
|||||||
|
|
||||||
public override void OnReceiveRemote(bool isHost, PlayerMessage message)
|
public override void OnReceiveRemote(bool isHost, PlayerMessage message)
|
||||||
{
|
{
|
||||||
// if host, send worldobject and server states TO THE REQUESTING CLIENT
|
// send response only to the requesting client
|
||||||
if (isHost)
|
|
||||||
{
|
|
||||||
ForIdOverride = message.FromId;
|
ForIdOverride = message.FromId;
|
||||||
|
|
||||||
|
// if host, send worldobject and server states
|
||||||
|
if (isHost)
|
||||||
|
{
|
||||||
QSBEventManager.FireEvent(EventNames.QSBServerState, ServerStateManager.Instance.GetServerState());
|
QSBEventManager.FireEvent(EventNames.QSBServerState, ServerStateManager.Instance.GetServerState());
|
||||||
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
||||||
|
|
||||||
@ -42,14 +43,14 @@ namespace QSB.Player.Events
|
|||||||
{
|
{
|
||||||
SendWorldObjectInfo();
|
SendWorldObjectInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
ForIdOverride = uint.MaxValue;
|
|
||||||
}
|
}
|
||||||
// if client, send player and client states TO EVERYONE
|
// if client, send player and client states
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ForIdOverride = uint.MaxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SendWorldObjectInfo()
|
private void SendWorldObjectInfo()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user