We're currently using Immutable.Map<string, number> for tag maps. This was chosen because I noticed in Joust's early development that a Immutable.Map<number, number> was losing tags. This was probably a bug in Immutable.js. We should retest this and, if it's still an issue, file an upstream bug.
This should get rid of the various tags.set("" + GameTag.SOMETHING, 42) and make them a nice and clean tag.set(GameTag.SOMETHING, 42).
We're currently using
Immutable.Map<string, number>
for tag maps. This was chosen because I noticed in Joust's early development that aImmutable.Map<number, number>
was losing tags. This was probably a bug in Immutable.js. We should retest this and, if it's still an issue, file an upstream bug.This should get rid of the various
tags.set("" + GameTag.SOMETHING, 42)
and make them a nice and cleantag.set(GameTag.SOMETHING, 42)
.