com.artemis.Entity.edit()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(173)

本文整理了Java中com.artemis.Entity.edit()方法的一些代码示例,展示了Entity.edit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.edit()方法的具体详情如下:
包路径:com.artemis.Entity
类名称:Entity
方法名:edit

Entity.edit介绍

[英]Get entity editor.
[中]获取实体编辑器。

代码示例

代码示例来源:origin: DaanVanYperen/artemis-odb-contrib

@SuppressWarnings("unchecked")
protected T editEntity(Entity entity) {
  this.entity = entity;
  this.edit = entity.edit();
  return (T) this;
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-jam

@SuppressWarnings("unchecked")
protected T editEntity(Entity entity) {
  this.entity = entity;
  this.edit = entity.edit();
  return (T) this;
}

代码示例来源:origin: junkdog/artemis-odb

/** Begin building new entity.*/
public EntityBuilder(World world) {
  this.world = world;
  edit = world.createEntity().edit();
}

代码示例来源:origin: junkdog/artemis-odb

/** Begin building new entity based on archetype.*/
public EntityBuilder(World world, Archetype archetype) {
  this.world = world;
  edit = world.createEntity(archetype).edit();
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-components-libgdx

@Override
public boolean act(float delta, Entity e) {
  e.edit().add(component);
  return true;
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations

@Override
public void process(Entity e) {
  e.edit().add(component);
}

代码示例来源:origin: net.onedaybeard.artemis/artemis-odb

/** Begin building new entity.*/
public EntityBuilder(World world) {
  this.world = world;
  edit = world.createEntity().edit();
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-components-libgdx

@Override
public boolean act(float delta, Entity e) {
  e.edit().remove(componentClass);
  return true;
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations

@Override
public void process(Entity e) {
  e.edit().create(componentClass);
}

代码示例来源:origin: net.onedaybeard.artemis/artemis-odb

/** Begin building new entity based on archetype.*/
public EntityBuilder(World world, Archetype archetype) {
  this.world = world;
  edit = world.createEntity(archetype).edit();
}

代码示例来源:origin: DaanVanYperen/artemis-odb-contrib

@Override
public void process(Entity e) {
  e.edit().remove(componentClass);
}

代码示例来源:origin: DaanVanYperen/artemis-odb-contrib

@Override
public void process(Entity e) {
  e.edit().add(component);
}

代码示例来源:origin: DaanVanYperen/artemis-odb-contrib

@Override
public void process(Entity e) {
  e.edit().create(componentClass);
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations

/**
 * Add operation to entity.
 * @param e Apply script to passed entity.
 * @see net.mostlyoriginal.api.operation.flow.ParallelOperation
 * @see net.mostlyoriginal.api.operation.flow.SequenceOperation
 */
public void on(Entity e) {
  e.edit().create(Schedule.class).add(this);
}

代码示例来源:origin: DaanVanYperen/artemis-odb-contrib

/**
 * Add operation to entity.
 * @param e Apply script to passed entity.
 * @see net.mostlyoriginal.api.operation.flow.ParallelOperation
 * @see net.mostlyoriginal.api.operation.flow.SequenceOperation
 */
public void on(Entity e) {
  e.edit().create(Schedule.class).add(this);
}

代码示例来源:origin: DaanVanYperen/artemis-odb-contrib

/**
 * Add operation to empty entity in world.
 * @param world
 */
public void on(World world) {
  world.createEntity().edit().create(Schedule.class).add(this);
}

代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations

/**
 * Add operation to empty entity in world.
 * @param world
 */
public void on(World world) {
  world.createEntity().edit().create(Schedule.class).add(this);
}

代码示例来源:origin: junkdog/artemis-odb

private void readComponentsEdit(Json json, Entity e, JsonValue component) {
  SaveFileFormat.ComponentIdentifiers identifiers = serializationState.componentIdentifiers;
  EntityEdit edit = e.edit();
  while (component != null) {
    assert (component.name() != null);
    Class<? extends Component> componentType = identifiers.getType(component.name);
    readComponent(json, component, edit.create(componentType));
    component = component.next;
  }
}

代码示例来源:origin: net.onedaybeard.artemis/artemis-odb-serializer-json

private void readComponentsEdit(Json json, Entity e, JsonValue component) {
  SaveFileFormat.ComponentIdentifiers identifiers = serializationState.componentIdentifiers;
  EntityEdit edit = e.edit();
  while (component != null) {
    assert (component.name() != null);
    Class<? extends Component> componentType = identifiers.getType(component.name);
    readComponent(json, component, edit.create(componentType));
    component = component.next;
  }
}

代码示例来源:origin: junkdog/artemis-odb

private void readComponentsEdit(Json json, Entity e, JsonValue component) {
  SaveFileFormat.ComponentIdentifiers identifiers = serializationState.componentIdentifiers;
  EntityEdit edit = e.edit();
  while (component != null) {
    assert (component.name() != null);
    Class<? extends Component> componentType = identifiers.getType(component.name);
    readComponent(json, component, edit.create(componentType));
    component = component.next;
  }
}

相关文章