Comments (7)
Are you sure @Transient
doesn't work on fields? Glancing over the Json code it does check for it.
Alternatively, there is a pattern used for non-serialized state that you want to populate after loading: https://github.com/junkdog/artemis-odb/wiki/Model-for-Serialization
from artemis-odb.
Are you sure
@Transient
doesn't work on fields? Glancing over the Json code it does check for it.
@Transient
public Object controller;
There is a compile error when using the Transient tag inside of a class.
error: annotation type not applicable to this kind of declaration
@transient
from artemis-odb.
The @Transient
I'm thinking of is javax.persistence.Transient
which doesn't apply in odb, oops.
Try the java modifier. public transient Object controller;
from artemis-odb.
Added wiki page. Thanks for the question.
https://github.com/junkdog/artemis-odb/wiki/How-to-avoid-serializing-specific-components-or-fields
from artemis-odb.
Added wiki page. Thanks for the question.
https://github.com/junkdog/artemis-odb/wiki/How-to-avoid-serializing-specific-components-or-fields
Nice! I was about to ask where this is documented.
from artemis-odb.
Daan, it would be great if you could put a load and save game system into one of your games.
As far as I know, there is no simple existing example for Artemis ODB in the entire universe.
On the libgdx discord, I like to point people to your games, but there's nothing on loading and saving games to point people to.
from artemis-odb.
Daan, it would be great if you could put a load and save game system into one of your games.
I'll see if I can fit it in somewhere.
from artemis-odb.
Related Issues (20)
- [FEATURE] Double up GWT reflection cache const cap. HOT 1
- Release 2.4.0 HOT 3
- [Performance] Reflection cache prevents GWT dead code elimination
- [FEATURE] Multithreading, Jobs & Parallelisation HOT 1
- [FEATURE] Migrate to pure ECS HOT 1
- [FEATURE] Allow Multiple OR Conditions in Aspects
- [BUG] Injection with Java Generics produce a `MundaneWireException` only in GWT
- [BUG] Randomly get MundaneWireException while doing injection
- [Question] Systematic Error Handling ?
- [FEATURE] Provide annotation-compatible constructors in IntervalSystem
- [Question] is the fluid plugin not support for gradle 7? HOT 3
- [PERFORMANCE] [BUG] @EntityId Annotation creates a lot of garbage over time
- [BUG] Null check needed in EntityProcessingSystem
- [Question] Using UuidEntityManager HOT 1
- [Question] Is the project dead? HOT 4
- [BUG] System component mapper is null in process() after same component type is removed in same system call
- [Question] Needless component creation in EntityEdit#add(Component)
- [Question]
- Maybe the public of BaseComponentMapper#internalCreate should be protected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artemis-odb.