gdk-for-unity icon indicating copy to clipboard operation
gdk-for-unity copied to clipboard

Feature Request: Make TransformSynchronizationStrategy Apply function public

Open luna-duclos opened this issue 6 years ago • 0 comments

Description

When writing a custom ECS system for which TransformSynchronization is wanted, one can setup all the needed Components on the correct entities, however, the TransformSynchronization strategy cannot currently be set from ECS because the Apply function on TransformSynchronizationSendStrategy and TransformSynchronizationReceiveStrategy is internal. Could this API be made public ?

Expected behaviour

Our own could should be able to call TransformSynchronizationReceiveStrategy.Apply and TransformSynchronizationSendStrategy.Apply

Current behaviour

Function is internal and only accessible within the transformSynchronization module

Possible solution

Make the Apply function public

Steps to reproduce

Write an ECS system that sets up transformSynchronization, for example, in my top-down game, we use server side pathing for the player and only receive the destination coordinates for the client, then do all the pathing server side and sync it back to the client with TransformSynchronization, see snippet here for details if needed: https://gist.github.com/luna-duclos/dc06674a877be04cece8788d3d3bae82

NavInitializationSystem.cs:82 is where the call to apply resides that is currently impossible to do.

luna-duclos avatar Feb 04 '19 10:02 luna-duclos