protected override void OnCreate() { base.OnCreate(); querySet = new EntityQuerySet(GetEntityQuery( ComponentType.ReadOnly <SleepComponent.Component>(), ComponentType.ReadWrite <BaseUnitStatus.Component>(),  ComponentType.ReadOnly <BaseUnitStatus.HasAuthority>()), 4); action = Query; }
protected override void OnCreate() { base.OnCreate(); group = GetEntityQuery( ComponentType.ReadWrite <WorldTimer.Component>(), ComponentType.ReadOnly <SpatialEntityId>() ); action = Query; }
protected override void OnCreate() { base.OnCreate(); hexpowerQuerySet = new EntityQuerySet(GetEntityQuery( ComponentType.ReadWrite <HexPower.Component>(), ComponentType.ReadOnly <HexPower.HasAuthority>(), ComponentType.ReadOnly <HexBase.Component>(), ComponentType.ReadOnly <SpatialEntityId>() ), frequencyPower, Time.ElapsedTime); resourceQuerySet = new EntityQuerySet(GetEntityQuery( ComponentType.ReadOnly <HexPowerResource.Component>(), ComponentType.ReadOnly <Position.Component>() ), frequencyResource, Time.ElapsedTime); powerAction = PowerQuery; resourceAction = ResourceQuery; }
protected override void OnCreate() { base.OnCreate(); unitQuerySet = new EntityQuerySet(GetEntityQuery( ComponentType.ReadWrite <BaseUnitStatus.Component>(), ComponentType.ReadOnly <BaseUnitStatus.HasAuthority>(), ComponentType.ReadOnly <Position.Component>(), ComponentType.ReadOnly <Rigidbody>() ), frequency); unitAction = UnitQuery; portalQuerySet = new EntityQuerySet(GetEntityQuery( ComponentType.ReadOnly <StrategyHexAccessPortal.Component>() ), frequency); portalAction = PortalQuery; }
protected override void OnCreate() { base.OnCreate(); m_GraphSystem = World.GetOrCreateSystem <TAnimationGraph>(); m_GraphSystem.AddRef(); m_GraphSystem.Set.RendererModel = NodeSet.RenderExecutionModel.Islands; m_CreateLambda = (Entity e, ref Rig rig, ref TSampleSetup setup) => { var data = CreateGraph(e, ref rig, m_GraphSystem, ref setup); PostUpdateCommands.AddComponent(e, data); }; m_DestroyLambda = (Entity e, ref TSampleData data) => { DestroyGraph(e, m_GraphSystem, ref data); PostUpdateCommands.RemoveComponent <TSampleData>(e); }; }
protected override void OnCreate() { base.OnCreate(); rootObject = new GameObject("TowerObjects"); groupTower = GetEntityQuery( ComponentType.ReadOnly <SymbolicTower.Component>(), ComponentType.ReadOnly <Position.Component>() ); groupPlayer = GetEntityQuery( ComponentType.ReadOnly <PlayerInfo.Component>(), ComponentType.ReadOnly <Transform>() ); towerAction = TowerQuery; playerAction = PlayerQuery; }
protected override void OnCreate() { bulletQuery = GetEntityQuery( ComponentType.ReadWrite <Transform>(), ComponentType.ReadOnly <LongRangeBulletComponent.Component>()); missileQuery = GetEntityQuery( ComponentType.ReadWrite <LongRangeBulletComponent.Component>(), ComponentType.ReadOnly <GuidComponent.Component>()); gravityQuery = GetEntityQuery( ComponentType.ReadWrite <LongRangeBulletComponent.Component>(), ComponentType.Exclude <GuidComponent.Component>()); bulletAction = BulletQuery; missileAction = MissileQuery; gravityAction = GravityQuery; deltaTime = 0.0f; }