Open kyroschow opened 6 years ago
Alright, there are a couple ways we can go about implementing data storage with LibGDX. These vary in difficulty and efficiency, so I'll leave it up to a full vote of the group tomorrow to decide them.
Pros: Very easy, very quick. Just shoot the file across the server and we're done.
Cons: Inefficient, lazy, and occupies a lot of avoidable processing power.
Pros: Easy, efficient, supports deep/shallow copying/cloning for object to object field transfers, works with databases pretty seamlessly.
Cons: Needs reconstruction of objects that cannot be serialized like TextureRegions and Textures, necessitating a handler class and AssetManager preloading.
Pros: Remote Method Invocation, which allows for methods on sent objects to be invoked remotely. Auto-serialization of objects, seamless integration without any fiddling with Kotlin/JS.
Cons: Would require yet another backend overhaul and I don't know if Chi can take that this late in the project. Also RMI has some overhead, so it might not be the best.
I think we should just leave nodejs alone
:+1:
Personally I'm leaning towards solution 2, but if anyone else wants to weigh in they can.
If the model classes are located in core, then how would we do the Room database instead? The major problem is about the annotations on the instance variables.