SpineEventEngine / mc-java

Model Compiler for Java
Apache License 2.0
0 stars 2 forks source link

Generate `id()` method for `EntityState` types #114

Open alexander-yevsyukov opened 1 year ago

alexander-yevsyukov commented 1 year ago

The EntityState interface defined in base has a generic parameter <I> but this parameter is not used in the interface (which is empty). We have a lengthy description of the convention for the first message field and so on, but it does not make it less confusing, “Why the generic parameter is not used in the interface?”

Obviously, having the id() method returning I would make it more obviously. But we need to tune ProtoData to handle this, and extend the interface accordingly.