public EntityBagSerializer(World world) { this.world = world; world.inject(this); }
public KryoIntBagEntitySerializer (World world) { this.world = world; world.inject(this); }
public IntBagEntitySerializer(World world) { this.world = world; world.inject(this); }
public KryoEntityBagSerializer (World world) { this.world = world; world.inject(this); }
public KryoEntityBagSerializer (World world) { this.world = world; world.inject(this); }
public EntityBagSerializer(World world) { this.world = world; world.inject(this); }
public IntBagEntitySerializer(World world) { this.world = world; world.inject(this); }
public KryoIntBagEntitySerializer (World world) { this.world = world; world.inject(this); }
public IntBagEntitySerializer(World world) { this.world = world; world.inject(this); }
public EntityBagSerializer(World world) { this.world = world; world.inject(this); }
/** * Inject dependencies on object. * <p/> * Immediately perform dependency injection on the target, even if the target isn't of an Artemis class. * <p/> * If you want to specify nonstandard dependencies to inject, use * {@link com.artemis.WorldConfiguration#register(String, Object)} instead, or * configure an {@link com.artemis.injection.Injector} * <p/> * If you want a non-throwing alternative, use {@link #inject(Object, boolean)} * @param target * Object to inject into. * throws {@link MundaneWireException} if {@code target} is annotated with {@link com.artemis.annotations.SkipWire} * @see com.artemis.annotations.Wire for more details about dependency injection. * @see #inject(Object, boolean) */ public void inject(Object target) { inject(target, true); }
public void save(OutputStream out, SaveFileFormat format) throws SerializationException { if (backend == null) { throw new RuntimeException("Missing ArtemisSerializer, see #setBackend."); } world.inject(format); backend.save(out, format); }
public void save(OutputStream out, SaveFileFormat format) throws SerializationException { if (backend == null) { throw new RuntimeException("Missing ArtemisSerializer, see #setBackend."); } world.inject(format); backend.save(out, format); }
public KryoEntitySerializer (World world, ReferenceTracker referenceTracker) { this.world = world; this.referenceTracker = referenceTracker; defaultValues = new DefaultObjectStore(); factory = new EntityPoolFactory(world); world.inject(this); registeredTags = (tagManager != null) ? tagManager.getRegisteredTags() : Collections.<String>emptyList(); }
public EntitySerializer(World world, ReferenceTracker referenceTracker) { this.world = world; this.referenceTracker = referenceTracker; defaultValues = new DefaultObjectStore(); factory = new EntityPoolFactory(world); world.inject(this); registeredTags = (tagManager != null) ? tagManager.getRegisteredTags() : Collections.<String>emptyList(); }
public EntitySerializer(World world, ReferenceTracker referenceTracker) { this.world = world; this.referenceTracker = referenceTracker; defaultValues = new DefaultObjectStore(); factory = new EntityPoolFactory(world); world.inject(this); registeredTags = (tagManager != null) ? tagManager.getRegisteredTags() : Collections.<String>emptyList(); }
public KryoEntitySerializer (World world, ReferenceTracker referenceTracker) { this.world = world; this.referenceTracker = referenceTracker; defaultValues = new DefaultObjectStore(); factory = new EntityPoolFactory(world); world.inject(this); registeredTags = (tagManager != null) ? tagManager.getRegisteredTags() : Collections.<String>emptyList(); }
public EntitySerializer(World world, ReferenceTracker referenceTracker) { this.world = world; this.emptyEntity = new ArchetypeBuilder().build(world); this.referenceTracker = referenceTracker; defaultValues = new DefaultObjectStore(); factory = new EntityPoolFactory(world); world.inject(this); registeredTags = (tagManager != null) ? tagManager.getRegisteredTags() : Collections.<String>emptyList(); }
protected BasePrefab(World world, PrefabReader<DATA> data) { this.world = world; this.data = data; serializationManager = world.getSystem(WorldSerializationManager.class); if (serializationManager == null) throw new MundaneWireException(WorldSerializationManager.class); world.inject(this); // TODO: #439 - generate .class from .json data.initialize(getPrefabDataPath()); }
protected BasePrefab(World world, PrefabReader<DATA> data) { this.world = world; this.data = data; serializationManager = world.getSystem(WorldSerializationManager.class); if (serializationManager == null) throw new MundaneWireException(WorldSerializationManager.class); world.inject(this); // TODO: #439 - generate .class from .json data.initialize(getPrefabDataPath()); }