geckosio / snapshot-interpolation

A Snapshot Interpolation library for Real-Time Multiplayer Games.
BSD 3-Clause "New" or "Revised" License
277 stars 25 forks source link

Change the Entity type to support number as id #15

Closed RobinVanCauter closed 2 years ago

RobinVanCauter commented 3 years ago

Describe the bug Inside the following example for compression: https://github.com/geckosio/snapshot-interpolation#compression You use a number for the id field on your Entity, but the Entity type expects a string as id.

Maybe we can make the type to support both number and string as id?

yandeu commented 2 years ago

You can define yourself what type the id can be.