gpt4 book ai didi

com.artemis.WorldConfigurationBuilder.dependsOn()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 23:17:05 27 4
gpt4 key购买 nike

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

WorldConfigurationBuilder.dependsOn介绍

[英]Specify dependency on systems/plugins.
[中]指定对系统/插件的依赖关系。

代码示例

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

public void setup(WorldConfigurationBuilder b) {
    b.dependsOn(WorldConfigurationBuilder.Priority.HIGH, SuperMapper.class);
  }
}

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

@Override
  public void setup(WorldConfigurationBuilder b) {
    b.dependsOn(ExtendedComponentMapperPlugin.class);
    b.dependsOn(WorldConfigurationBuilder.Priority.OPERATIONS, SchedulerSystem.class);
  }
}

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

@Override
  public void setup(WorldConfigurationBuilder b) {
    b.dependsOn(ExtendedComponentMapperPlugin.class);
    b.dependsOn(WorldConfigurationBuilder.Priority.OPERATIONS, SchedulerSystem.class);
  }
}

代码示例来源:origin: DaanVanYperen/libgdx-artemis-quickstart

public void setup(WorldConfigurationBuilder b) {
    b.dependsOn(WorldConfigurationBuilder.Priority.HIGH, SuperMapper.class);
  }
}

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

/**
 * Specify dependency on systems/plugins.
 * <p/>
 * Managers track priority separate from system priority, and are always added before systems.
 * <p>
 * Artemis will consider abstract plugin dependencies fulfilled when a concrete subclass has been registered
 * beforehand.
 *
 * @param types required systems.
 * @return this
 */
public final WorldConfigurationBuilder dependsOn(Class... types) {
  return dependsOn(Priority.NORMAL, types);
}

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

/**
 * Specify dependency on systems/plugins.
 * <p/>
 * Managers track priority separate from system priority, and are always added before systems.
 * <p>
 * Artemis will consider abstract plugin dependencies fulfilled when a concrete subclass has been registered
 * beforehand.
 *
 * @param types required systems.
 * @return this
 */
public final WorldConfigurationBuilder dependsOn(Class... types) {
  return dependsOn(Priority.NORMAL, types);
}

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

@Override
  public void setup(WorldConfigurationBuilder b) {
    b.register(new ProfilerInvocationStrategy());
    b.dependsOn(WorldConfigurationBuilder.Priority.LOWEST + 1000,ProfilerSystem.class);
  }
}

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

@Override
  public void setup(WorldConfigurationBuilder b) {
    b.register(new ExtendedComponentMapperFieldResolver());
    b.dependsOn(ExtendedComponentMapperManager.class);
  }
}

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

@Override
  public void setup(WorldConfigurationBuilder b) {
    b.register(new ExtendedComponentMapperFieldResolver());
    b.dependsOn(ExtendedComponentMapperManager.class);
  }
}

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

@Override
  public void setup(WorldConfigurationBuilder b) {
    b.register(new ProfilerInvocationStrategy());
    b.dependsOn(WorldConfigurationBuilder.Priority.LOWEST + 1000,ProfilerSystem.class);
  }
}

代码示例来源:origin: DaanVanYperen/libgdx-artemis-quickstart

protected World createWorld() {
  return new World(new WorldConfigurationBuilder()
      // keeps components available until all listeners have been called.
      // Use this if your systems need to access components to clean up after removal.
      .alwaysDelayComponentRemoval(true)
      // Describes dependencies on plugins. You can find more example plugins commented out in build.gradle.
      .dependsOn(
          //EntityLinkManager.class,
          //OperationsPlugin.class,
          ProfilerPlugin.class,
          FluidEntityPlugin.class)
      .with(
          // put your own systems here! With the default InvocationStrategy they are called in order each frame.
          new ExampleSystem()
      ).build());
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com