推动Config新增
This commit is contained in:
@@ -55,12 +55,12 @@ namespace Demo.Game
|
||||
|
||||
public class UpdatementIntConfig : UpdatementConfig<int>
|
||||
{
|
||||
protected override void DeserializePositions(BinaryReader reader, ref NativeArray<int> positions)
|
||||
protected override sealed void DeserializePositions(BinaryReader reader, ref NativeArray<int> positions)
|
||||
{
|
||||
BinarySerializeUtility.DeserializeNativeArray(reader, ref positions);
|
||||
}
|
||||
|
||||
protected override void SerializePositions(BinaryWriter writer, in NativeArray<int> positions)
|
||||
protected override sealed void SerializePositions(BinaryWriter writer, in NativeArray<int> positions)
|
||||
{
|
||||
BinarySerializeUtility.SerializeNativeArray(writer, positions);
|
||||
}
|
||||
@@ -68,12 +68,12 @@ namespace Demo.Game
|
||||
|
||||
public class UpdatementFloatConfig : UpdatementConfig<float>
|
||||
{
|
||||
protected override void DeserializePositions(BinaryReader reader, ref NativeArray<float> positions)
|
||||
protected override sealed void DeserializePositions(BinaryReader reader, ref NativeArray<float> positions)
|
||||
{
|
||||
BinarySerializeUtility.DeserializeNativeArray(reader, ref positions);
|
||||
}
|
||||
|
||||
protected override void SerializePositions(BinaryWriter writer, in NativeArray<float> positions)
|
||||
protected override sealed void SerializePositions(BinaryWriter writer, in NativeArray<float> positions)
|
||||
{
|
||||
BinarySerializeUtility.SerializeNativeArray(writer, positions);
|
||||
}
|
||||
@@ -81,12 +81,12 @@ namespace Demo.Game
|
||||
|
||||
public class UpdatementVec2Config : UpdatementConfig<Vector2>
|
||||
{
|
||||
protected override void DeserializePositions(BinaryReader reader, ref NativeArray<Vector2> positions)
|
||||
protected override sealed void DeserializePositions(BinaryReader reader, ref NativeArray<Vector2> positions)
|
||||
{
|
||||
BinarySerializeUtility.DeserializeNativeArray(reader, ref positions);
|
||||
}
|
||||
|
||||
protected override void SerializePositions(BinaryWriter writer, in NativeArray<Vector2> positions)
|
||||
protected override sealed void SerializePositions(BinaryWriter writer, in NativeArray<Vector2> positions)
|
||||
{
|
||||
BinarySerializeUtility.SerializeNativeArray(writer, positions);
|
||||
}
|
||||
@@ -94,12 +94,12 @@ namespace Demo.Game
|
||||
|
||||
public class UpdatementVec3Config : UpdatementConfig<Vector3>
|
||||
{
|
||||
protected override void DeserializePositions(BinaryReader reader, ref NativeArray<Vector3> positions)
|
||||
protected override sealed void DeserializePositions(BinaryReader reader, ref NativeArray<Vector3> positions)
|
||||
{
|
||||
BinarySerializeUtility.DeserializeNativeArray(reader, ref positions);
|
||||
}
|
||||
|
||||
protected override void SerializePositions(BinaryWriter writer, in NativeArray<Vector3> positions)
|
||||
protected override sealed void SerializePositions(BinaryWriter writer, in NativeArray<Vector3> positions)
|
||||
{
|
||||
BinarySerializeUtility.SerializeNativeArray(writer, positions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user