Exemple #1
0
 /// <summary>Initializes a new instance of the TestEntity class</summary>
 public TestEntity(
     IResourceLibrary library,
     IAvatarFactory avatarFactory,
     IControllerFactory[] controllerFactories,
     ControllerConfig[] controllers,
     Vector3D position,
     Vector3D direction,
     Vector3D velocity)
     : this(library.GetResource <EntityDefinition>(GameDataHelper.DeepCreateTestEntityDefinition(library)), library, avatarFactory, controllerFactories, controllers, position, direction, velocity)
 {
 }
Exemple #2
0
 /// <summary>Initializes a new instance of the TestEntity class</summary>
 public TestWorld(
     IResourceLibrary resources,
     IControllerManager controllerManager,
     IControllerFactory[] controllerFactories,
     IEntityFactory entityFactory,
     int numEntities = DefaultNumEntities)
     : this(
         resources.GetResource <LevelDefinition>(GameDataHelper.DeepCreateTestLevelDefinition(resources, numEntities)),
         resources,
         controllerManager,
         controllerFactories,
         entityFactory)
 {
 }