public class EntityBagSerializer implements Json.Serializer<Bag> { @SkipWire private final World world; public EntityBagSerializer(World world) { this.world = world; world.inject(this); } @Override public void write(Json json, Bag bag, Class knownType) { json.writeArrayStart(); for (Object item : bag) json.writeValue(item); json.writeArrayEnd(); } @Override public Bag read(Json json, JsonValue jsonData, Class type) { Bag<Entity> result = new Bag<Entity>(); for (JsonValue child = jsonData.child; child != null; child = child.next) result.add(json.readValue(Entity.class, child)); return result; } }
public class EntityBagSerializer implements JsonSerializer<Bag> { @SkipWire private final World world; public EntityBagSerializer(World world) { this.world = world; world.inject(this); } @Override public void write(Json json, Bag bag, Class knownType) { json.writeArrayStart(); for (Object item : bag) json.writeValue(item); json.writeArrayEnd(); } @Override public Bag read(Json json, JsonValue jsonData, Class type) { Bag<Entity> result = new Bag<Entity>(); for (JsonValue child = jsonData.child; child != null; child = child.next) result.add(json.readValue(Entity.class, child)); return result; } }
public class EntityBagSerializer implements JsonSerializer<Bag> { @SkipWire private final World world; public EntityBagSerializer(World world) { this.world = world; world.inject(this); } @Override public void write(Json json, Bag bag, Class knownType) { json.writeArrayStart(); for (Object item : bag) json.writeValue(item); json.writeArrayEnd(); } @Override public Bag read(Json json, JsonValue jsonData, Class type) { Bag<Entity> result = new Bag<Entity>(); for (JsonValue child = jsonData.child; child != null; child = child.next) result.add(json.readValue(Entity.class, child)); return result; } }
public class IntBagEntitySerializer implements JsonSerializer<IntBag> { @SkipWire private final World world; private final Bag<Entity> translatedIds = new Bag<Entity>();
public class IntBagEntitySerializer implements Json.Serializer<IntBag> { @SkipWire private final World world; private final Bag<Entity> translatedIds = new Bag<Entity>();
public class IntBagEntitySerializer implements JsonSerializer<IntBag> { @SkipWire private final World world; private final Bag<Entity> translatedIds = new Bag<Entity>();
@SkipWire public class AspectSubscriptionManager extends BaseSystem {
@SkipWire public abstract class AssetManager<A extends Component, B extends Component> extends Manager {
@SkipWire protected World world;
@SkipWire public class AspectSubscriptionManager extends BaseSystem {
@SkipWire protected World world;
@SkipWire public class EntityLinkManager extends BaseEntitySystem {
@SkipWire public class EntityManager extends BaseSystem {
@SkipWire public abstract class AssetManager<A extends Component, B extends Component> extends Manager {
@SkipWire public class EntityManager extends BaseSystem {
@SkipWire public class EntityLinkManager extends BaseEntitySystem {
@SkipWire public class ComponentManager extends BaseSystem {
@SkipWire private final World world; private final ReferenceTracker referenceTracker; private final DefaultObjectStore defaultValues;
@SkipWire private final World world; private final ReferenceTracker referenceTracker; private final DefaultObjectStore defaultValues;
@SkipWire private final World world; private final ReferenceTracker referenceTracker; private final DefaultObjectStore defaultValues;