Skip to content

Commit b2abd93

Browse files
committed
Fix pvp errors
1 parent f0f822f commit b2abd93

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/DocumentationCodeSamples/NetworkVariable/CustomNetworkVariable.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class MyCustomNetworkVariable : NetworkVariableBase
4949
/// <summary>
5050
/// Managed list of class instances
5151
/// </summary>
52-
public List<SomeData> SomeDataToSynchronize = new List<SomeData>();
52+
internal List<SomeData> SomeDataToSynchronize = new List<SomeData>();
5353

5454
/// <summary>
5555
/// Writes the complete state of the variable to the writer
@@ -189,11 +189,8 @@ public override void ReadDelta(FastBufferReader reader, bool keepDirtyDelta)
189189
}
190190
}
191191

192-
/// <summary>
193-
/// Example managed class used as the item type in <see cref="MyCustomNetworkVariable.SomeDataToSynchronize"/>
194-
/// </summary>
195192
[Serializable]
196-
public class SomeData
193+
internal class SomeData
197194
{
198195
public int SomeIntData = default;
199196
public float SomeFloatData = default;

com.unity.netcode.gameobjects/Tests/Runtime/DocumentationCodeSamples/NetworkVariable/NetworkVariableSerialization.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Collections;
32
using System.Text;
43
using Unity.Netcode;
@@ -11,13 +10,13 @@ namespace DocumentationCodeSamples
1110
{
1211
internal static class FastBufferExtensions
1312
{
14-
public static void WriteValueSafe(this FastBufferWriter writer, in TestSerializationDocs.Health health)
13+
internal static void WriteValueSafe(this FastBufferWriter writer, in TestSerializationDocs.Health health)
1514
{
1615
writer.WriteValueSafe(health.MaxHealth);
1716
writer.WriteValueSafe(health.CurrentHealth);
1817
}
1918

20-
public static void ReadValueSafe(this FastBufferReader reader, out TestSerializationDocs.Health health)
19+
internal static void ReadValueSafe(this FastBufferReader reader, out TestSerializationDocs.Health health)
2120
{
2221
reader.ReadValueSafe(out uint max);
2322
reader.ReadValueSafe(out int current);

0 commit comments

Comments
 (0)