the_dungeon_project issueshttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues2015-12-02T20:42:14+01:00https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/27TypedEvent contains an Entity field ----> BAD2015-12-02T20:42:14+01:00Thomas DupriezTypedEvent contains an Entity field ----> BAD**Context:** TypedEvent is currently an intermediate class between the interface Event and all the concrete implementation of it (MoveEvent...).
It means that whenever the client sends a MoveEvent to the Server, he sends also the underl...**Context:** TypedEvent is currently an intermediate class between the interface Event and all the concrete implementation of it (MoveEvent...).
It means that whenever the client sends a MoveEvent to the Server, he sends also the underlying TypedEvent.
**Problem:** The problem is that TypedEvent contains an Entity field. This is bad, because we are transmitting the whole entity at each event, while we could just use the Entity's id (a single int).
**SideNote:** Is TypedEvent really necessary ?Theodore LopezTheodore Lopez