Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Per-protocol content IDsΒ #29

@TheElectronWill

Description

@TheElectronWill

Each protocol (including different versions of the protocol of the same game) can provide its own ids for the game content.
Each protocol should have two maps

Map[protocol id -> internal id]: Index[Int]
Map[internal id -> protocol id]: Index[Int]

That are constructed from the protocol's data, which maps type names (universal) to protocol ids (specific to one protocol).

val config: TomlConfig = // config that maps typenames to protocol ids
for((typename, protocolId) <- config) {
    val i= TuubesRegistry(typename).internalId
    map1 += (i, protocolId)
    map2 += (protocolId, i)
}

This is a part of #17.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions