Constructor
new TypeOnlySerializer(typeId)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
typeId |
string |
A serializer base that works for any piece defined only by its type. The key is just the typeId with no arguments (e.g. "Floor", "Wall", "Fire"). Subclasses implement create() (return a new instance) and tag().
| Name | Type | Description |
|---|---|---|
typeId |
string |