Skip to content

Allow BufferSerializer to be used directly in game code #2262

@billw2012

Description

@billw2012

Is your feature request related to a problem? Please describe.
I want to reuse the network serialization for saving object state for save game, however the BufferSerializer constructor is internal so I can't create my own instance of it.

Describe the solution you'd like
Make the BufferSerializer constructor public, as well as BufferSerializerWriter and BufferSerializerReader.

Describe alternatives you've considered
My solution so far is copying the classes mentioned above into my own code, so I can access them, but this obviously isn't ideal, particularly when I update to a newer version.
Another alternative would be to provide a static function (or functions) that will make me a BufferSerializer instance for writing or reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature, request or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions