Giter VIP home page Giter VIP logo

Comments (7)

DaanVanYperen avatar DaanVanYperen commented on May 26, 2024

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.

bryanbrunt avatar bryanbrunt commented on May 26, 2024

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.

DaanVanYperen avatar DaanVanYperen commented on May 26, 2024

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.

DaanVanYperen avatar DaanVanYperen commented on May 26, 2024

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.

bryanbrunt avatar bryanbrunt commented on May 26, 2024

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.

bryanbrunt avatar bryanbrunt commented on May 26, 2024

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.

DaanVanYperen avatar DaanVanYperen commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.