Skip to content

refactor: half types and mathematics assembly references#2456

Closed
NoelStephensUnity wants to merge 17 commits intodevelopfrom
refactor/half-types-and-mathematics-references
Closed

refactor: half types and mathematics assembly references#2456
NoelStephensUnity wants to merge 17 commits intodevelopfrom
refactor/half-types-and-mathematics-references

Conversation

@NoelStephensUnity
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity commented Mar 15, 2023

This PR refactors the more recent NetworkTransform updates (#2388) by replacing some of the half precision implementations with that of the Unity.Mathematics types. It also adds all of the Unity.Mathematics types to the NGO serialization pipeline.

Testing and Documentation

  • Includes integration test and updates to existing tests.
  • No documentation changes or additions were necessary.

adding asmdef references to Unity.Mathematics
updated HalfVector3 and HalfVector4 with Unity.Mathematics types.
removed classes no longer needed.
renamed HalfVector3DeltaPosition to NetworkDeltaPosition and made that use HalfVector3.
removing whitespace
setting the Vector4 to size of 4 (not 3).
Updating the teleport fix for testing purposes.
mirroring PR-2451 changes to NetworkTransformStateTests for the teleport fix.
Added all Mathematics types to the serialization pipeline.
Added arrays for all Unity.Mathematics types.
Fixed some managed read/write issues with Unity.Mathematics types.
Added the tests for the Unity.Mathematics types.
Comment thread com.unity.netcode.gameobjects/Runtime/Serialization/FastBufferWriter.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Serialization/FastBufferWriter.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Serialization/FastBufferWriter.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Serialization/FastBufferWriter.cs Outdated
Finished getting Unity.Mathematics types added to all pertinent serialization pipelines.
Added XML API documentation to all methods within classes/structs/interfaces that had XML API documentation for other types.
Very basic test to validate that all Unity.Mathematics types can be serialized within an INetworkSerializable implementation.
adding some debug information.
Fixing typos in tests for Unity.Mathematics types.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review March 24, 2023 14:43
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner March 24, 2023 14:43
removing xml doc param that is no longer valid
whitespace correction
@NoelStephensUnity NoelStephensUnity marked this pull request as draft March 24, 2023 18:38
@NoelStephensUnity
Copy link
Copy Markdown
Member Author

Most likely going with PR-2473
(this PR has too many public API additions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants