Skip to content

Commit

Permalink
Update Messages.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
miwarnec authored Jan 4, 2025
1 parent 2ddfdae commit 1728ed1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Mirror/Core/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public struct SpawnMessage : NetworkMessage
{
// netId of new or existing object
public uint netId;
// isOwner and isLocalPlayer are merged into one byte via bitwise op
public AuthorityFlags authorityFlags;
public ulong sceneId;
// If sceneId != 0 then it is used instead of assetId
Expand Down Expand Up @@ -96,6 +97,7 @@ public bool isLocalPlayer
public struct ChangeOwnerMessage : NetworkMessage
{
public uint netId;
// isOwner and isLocalPlayer are merged into one byte via bitwise op
public AuthorityFlags authorityFlags;

// Backwards compatibility after implementing authorityFlags
Expand Down

0 comments on commit 1728ed1

Please sign in to comment.