Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Feature Request: Make TransformSynchronizationStrategy Apply function public #730

@luna-duclos

Description

@luna-duclos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: transform-synchronizationArea: Transform synchronization feature moduleS: being-consideredStatus: This issue is being considered.T: enhancementType: This is an improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions