Skip to content

Commit

Permalink
doc: link TypeHandlerLibrary readme (#5222)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrueckert authored Mar 13, 2024
1 parent bcae39f commit 1b48033
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Serialization-Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The `TypeHandlerLibrary` caches type handlers for various types. Since a single

The `@RegisterTypeHandler` and the `@RegisterTypeHandlerFactory` annotations can also be used to register type handlers and type handler factories to the `TypeHandlerLibrary` in the `Context`.

[Read more about the TypeHandlerLibrary](https://github.com/MovingBlocks/Terasology/tree/develop/subsystems/TypeHandlerLibrary)

### Examples

#### `TypeHandler` without a `TypeHandlerFactory`
Expand Down Expand Up @@ -50,4 +52,4 @@ Terasology currently supports JSON (via Gson) and binary (via Protobuf) serializ
- Format independent -- code that serializes an object remains the same regardless of the target format.
- Supports almost every possible type out-of-the-box.
- Supports recursive types (i.e. types that refer to themselves) but not cyclic object references.
- It is possible to override default serialization behavior by specifying a new `TypeHandler` that handles a type differently.
- It is possible to override default serialization behavior by specifying a new `TypeHandler` that handles a type differently.

0 comments on commit 1b48033

Please sign in to comment.