Skip to content

Refactor game event json serialization #38

@Garados007

Description

@Garados007

Currently, is all the serialization stuff hardcoded for each event handler method. It would be better and easier for future maintenance, if those is replaced with auto conversion.

  1. Create a structure for each type we want to output.
  2. Fill the structure with the necessary details.
  3. Use JsonSerializer.Serialize(Utf8JsonWriter, ...) to serialize this object.
  4. Use a json configuration with the following details:
    • kebab-case naming scheme
    • use code generation
    • enums as strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringImprove code quality and make future changes easier

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions