Пример #1
0
 public OpenDocumentSet(ITagContainer diContainer)
 {
     this.diContainer = diContainer;
 }
Пример #2
0
 public PlayerPuppet(ITagContainer diContainer) : base(diContainer.GetTag <DefaultEcs.World>(), CreateEntityContainer, useBuffer: true)
 {
     camera = diContainer.GetTag <Camera>();
 }
Пример #3
0
 public static ITagContainer FallbackTo(this ITagContainer main, ITagContainer fallback) =>
 new FallbackTagContainer(main, fallback);
Пример #4
0
 public Label(ITagContainer diContainer) : base(diContainer.GetTag <DefaultEcs.World>(), CreateEntityContainer, useBuffer: true)
 {
     recorder            = diContainer.GetTag <EntityCommandRecorder>();
     addedSubscription   = World.SubscribeComponentAdded <components.ui.Label>(SetLabelNeedsTiling);
     changedSubscription = World.SubscribeComponentChanged <components.ui.Label>(SetLabelNeedsTiling);
 }
Пример #5
0
 public Actor(ITagContainer diContainer)
 {
     resourcePool = diContainer.GetTag <IResourcePool>();
     Manage(diContainer.GetTag <DefaultEcs.World>());
 }
Пример #6
0
 public FallbackTagContainer(ITagContainer main, ITagContainer fallback)
 {
     this.main     = main;
     this.fallback = fallback;
 }
Пример #7
0
 public DebugLineRenderer(ITagContainer diContainer)
 {
     Material   = new DebugLinesMaterial(diContainer);
     meshBuffer = new DynamicLineMeshBuffer <ColoredVertex>(diContainer.GetTag <ResourceFactory>());
 }
Пример #8
0
 public PuppetActorTarget(ITagContainer diContainer) : base(diContainer.GetTag <DefaultEcs.World>(), CreateEntityContainer, useBuffer: false)
 {
 }
Пример #9
0
 public static ITagContainer ExtendedWith <T1, T2>(this ITagContainer parent, T1 t1, T2 t2)
     where T1 : class
     where T2 : class =>
 new ExtendedTagContainer(parent).AddTag(t1).AddTag(t2);
Пример #10
0
 public static ITagContainer ExtendedWith <T1, T2, T3, T4>(this ITagContainer parent, T1 t1, T2 t2, T3 t3, T4 t4)
     where T1 : class
     where T2 : class
     where T3 : class
     where T4 : class =>
 new ExtendedTagContainer(parent).AddTag(t1).AddTag(t2).AddTag(t3).AddTag(t4);
Пример #11
0
 public ExtendedTagContainer(ITagContainer parent)
 {
     this.parent = parent;
 }
Пример #12
0
 public TextureAssetLoader(ITagContainer diContainer)
 {
     DIContainer  = diContainer;
     resourcePool = diContainer.GetTag <IResourcePool>();
     device       = diContainer.GetTag <GraphicsDevice>();
 }
Пример #13
0
 protected BaseScript(ITagContainer diContainer, Func <object, DefaultEcs.World, DefaultEcs.EntitySet> entitySetCreation)
     : base(diContainer.GetTag <DefaultEcs.World>(), entitySetCreation, useBuffer: true)
 {
 }
Пример #14
0
 public CorrectRenderOrder(ITagContainer diContainer) : base(diContainer.GetTag <DefaultEcs.World>(), CreateEntityContainer, useBuffer: true)
 {
 }
Пример #15
0
        public NPCLookAtPlayer(ITagContainer diContainer) : base(diContainer.GetTag <DefaultEcs.World>(), CreateEntityContainer, useBuffer: true)
        {
            var game = diContainer.GetTag <Game>();

            playerLocationLazy = new Lazy <Location>(() => game.PlayerEntity.Get <Location>());
        }
 public static bool HasTags(this ITagContainer container)
 {
     return(container.TagCount > 0);
 }
Пример #17
0
 public RecordingSequentialSystem(ITagContainer diContainer)
 {
     this.diContainer = diContainer;
     world            = diContainer.GetTag <DefaultEcs.World>();
     diContainer.AddTag(recorder);
 }