nerdhaus / eldrich

Custom code and config for eldrich.host
11 stars 2 forks source link

Eldrich-specific data normalizer/denormalizer #42

Open eaton opened 7 years ago

EmperorArthur commented 7 years ago

I'd say something like a JSON format. Something like

{
  "attributes": [
    "COG": number;
    "COO": number;
    "INT": number;
    "REF": number;
    "SAV": number;
    "SOM": number;
    "WIL": number;
    "MOX": number;
  ],
  "skills": [
    ...
  ]
}

That's probably what I'm going to implement as the export format from the Character Creator.

eaton commented 7 years ago

Yep — in Drupal, that stuff gets handled by the standard JSON serializer, but it can be swapped out for XML, HAL, etc. The Normalizer is the code responsible for building the structure that will ultimately be serialized into JSON/etc.

The biggest question marks structurally revolve around weapons, vehicles, and weird edge cases like specialty multi-ammo clips for kinetic weapons. Those shouldn't have too much impact on the character definition itself, though, which is what would matter for inter-operation with the Character Creator…