Skip to content

Commit ad7f285

Browse files
committed
Adding todos
1 parent dd4a7a7 commit ad7f285

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Messaging/Messages/CreateObjectMessage.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ internal struct CreateObjectMessage : INetworkMessage
2828
// to clients that already have the NetworkObject spawned
2929
internal ulong NetworkObjectId;
3030

31+
32+
//TODO Replace all bytes by boolean field
3133
private const byte k_IncludesSerializedObject = 0x01;
3234
private const byte k_UpdateObservers = 0x02;
3335
private const byte k_UpdateNewObservers = 0x04;
@@ -87,6 +89,7 @@ private void SetFlag(bool set, byte flag)
8789

8890
public void Serialize(FastBufferWriter writer, int targetVersion)
8991
{
92+
// TODO Create a byte, see Landed PR, set all the values and then write
9093
writer.WriteValueSafe(m_CreateObjectMessageTypeFlags);
9194

9295
if (UpdateObservers)
@@ -125,6 +128,7 @@ public bool Deserialize(FastBufferReader reader, ref NetworkContext context, int
125128
return false;
126129
}
127130

131+
// TODO Read a byte, if bool returned
128132
reader.ReadValueSafe(out m_CreateObjectMessageTypeFlags);
129133
if (UpdateObservers)
130134
{

0 commit comments

Comments
 (0)