Skip to content

Mock game server #104

@Douile

Description

@Douile

I'm not sure this fits the goals for the project but I will put it here for comments.

What is this feature about?
Long term I think it would be nice to both serialize and de-serialize packets. As it currently stands we serialize requests in plain functions with no input data (in most cases), and de-serialize responses to a struct but in a standalone function. I imagine a nice abstraction would be like the serde Serialize, and Deserialize traits where both requests and responses can be created from Vec<u8> and serialized into Vec<u8>.

Use cases
This would enable people to use the library to create pseudo-game servers (I'm not suggesting we implement any of the server logic here). But this could be useful for testing: we could implement a pseudo-server and query ourselves using node-gamedig and rust-gamedig and compare outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsAnything regarding tests.v1.0.XThings about v1.0.X

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions