I’m developing a game using Property Pattern.
My idea is to use Map<String, Object> (Actually ImmutableIntToObject maps using gs collections) for storing any type of property except classes. I would like to know if anyone had done this in the pass and how does it perform.
My current code is https://github.com/Argentum-Online/Argentum-Online/tree/master/world-model/src/main/java/com/ghrum/argentum/model and an example would be https://github.com/Argentum-Online/Argentum-Online/blob/master/world-example/src/main/java/Example.java
I’m using a functional and data driven pattern for conditions and actions of each stuff.
Thanks!.