SpineEventEngine / mc-java

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

Migrate entity-related codegen to ProtoData #132

Closed alexander-yevsyukov closed 7 months ago

alexander-yevsyukov commented 9 months ago

This PR initiates the migration of codegen processing to ProtoData. The main part of this PR is the migration of codegen of Column classes in messages that implement the EntityState interface.

In details

EntityPlugin was introduced as an umbrella for all codgen operations related to EntityState messages.

The plugin is based on EntityDiscoveryProcess, which transforms TypeDiscovered event to EntityStateDiscovered event, if the discovered message type has appropriate options. Other parts of the EntityPlugin would listen to the event and act accordingly.

The first render of the plugin is ColumnRenderer which renders a public static class Column nested under corresponding message type implementing EntityState.

ColumnRenderer and ColumnClassFactory now do what ColumnGen class used to do. The ColumnGen class was deprecated and is no longer added to protoc plugin of McJava.

Other notable changes

alexander-yevsyukov commented 7 months ago

@armiol, just FYI. It finally builds again.

“Getting better, every day...” :)