protected override void OnCreate()
        {
            base.OnCreate();

            targettingQuerySet = new EntityQuerySet(GetEntityQuery(
                                                        ComponentType.ReadWrite <CommanderStatus.Component>(),
                                                        ComponentType.ReadOnly <CommanderStatus.HasAuthority>(),
                                                        ComponentType.ReadWrite <CommanderTeam.Component>(),
                                                        ComponentType.ReadOnly <CommanderTeam.HasAuthority>(),
                                                        ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                                        ComponentType.ReadOnly <UnitActionData>(),
                                                        ComponentType.ReadOnly <Transform>(),
                                                        ComponentType.ReadOnly <SpatialEntityId>()
                                                        ), period);
            targetAction = TargetQuery;

            teamingQuerySet = new EntityQuerySet(GetEntityQuery(
                                                     ComponentType.ReadWrite <CommanderTeam.Component>(),
                                                     ComponentType.ReadOnly <CommanderTeam.HasAuthority>(),
                                                     ComponentType.ReadOnly <CommanderSight.Component>(),
                                                     ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                                     ComponentType.ReadOnly <Transform>(),
                                                     ComponentType.ReadOnly <SpatialEntityId>()
                                                     ), teaminTime);
            teamAction = TeamQuery;
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            querySet = new EntityQuerySet(GetEntityQuery(
                                              ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                              ComponentType.ReadOnly <Transform>(),
                                              ComponentType.ReadOnly <BattleCameraInfo>()), frequency);
        }
Example #3
0
        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;
        }
Example #4
0
        protected override void OnCreate()
        {
            base.OnCreate();

            playerQuerySet = new EntityQuerySet(GetEntityQuery(
                                                    ComponentType.ReadOnly <PlayerInfo.Component>(),
                                                    ComponentType.ReadOnly <Position.Component>(),
                                                    ComponentType.ReadOnly <SpatialEntityId>())
                                                , frequency);
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            querySet = new EntityQuerySet(GetEntityQuery(
                                              ComponentType.ReadWrite <BoneAnimation.Component>(),
                                              ComponentType.ReadOnly <BoneAnimation.HasAuthority>(),
                                              ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                              ComponentType.ReadOnly <PostureBoneContainer>()), 3);
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            portalQuerySet = new EntityQuerySet(GetEntityQuery(
                                                    ComponentType.ReadOnly <StrategyHexAccessPortal.Component>()
                                                    ), frequency);

            portalAction    = PortalQuery;
            this.hexIndexes = new Dictionary <uint, HexIndexPower>();
            this.frontHexes = new Dictionary <UnitSide, FrontHexInfo>();
        }
Example #7
0
        protected override void OnCreate()
        {
            base.OnCreate();

            querySet = new EntityQuerySet(GetEntityQuery(
                                              ComponentType.ReadWrite <PostureRoot.Component>(),
                                              ComponentType.ReadOnly <PostureRoot.HasAuthority>(),
                                              ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                              ComponentType.ReadOnly <Rigidbody>(),
                                              ComponentType.ReadOnly <MovementData>()), 5);
            action = Query;
        }
Example #8
0
        protected override void OnCreate()
        {
            base.OnCreate();

            hubQuerySet = new EntityQuerySet(GetEntityQuery(
                                                 ComponentType.ReadWrite <TurretHub.Component>(),
                                                 ComponentType.ReadOnly <TurretHub.HasAuthority>(),
                                                 ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                                 ComponentType.ReadOnly <HexFacility.Component>(),
                                                 ComponentType.ReadOnly <Transform>()
                                                 ), period);
            action = Query;
        }
Example #9
0
        protected override void OnCreate()
        {
            base.OnCreate();

            hexEntityQuerySet = new EntityQuerySet(GetEntityQuery(
                                                       ComponentType.ReadOnly <HexBase.Component>(),
                                                       ComponentType.ReadOnly <HexPower.Component>(),
                                                       ComponentType.ReadOnly <Position.Component>(),
                                                       ComponentType.ReadOnly <SpatialEntityId>()
                                                       ), updateInter);

            action = Query;
        }
Example #10
0
        protected override void OnCreate()
        {
            base.OnCreate();

            deviceGroup = new EntityQuerySet(GetEntityQuery(
                                                 ComponentType.ReadWrite <DominationStamina.Component>(),
                                                 ComponentType.ReadOnly <DominationStamina.HasAuthority>(),
                                                 ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                                 ComponentType.ReadOnly <Transform>(),
                                                 ComponentType.ReadOnly <SpatialEntityId>()
                                                 ), 1.0f);
            deviceAction      = DeviceQuery;
            portalUpdateSytem = World.GetExistingSystem <StrategyHexAccessPortalUpdateSystem>();
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            querySet = new EntityQuerySet(GetEntityQuery(
                                              ComponentType.ReadWrite <CoalStocks.Component>(),
                                              ComponentType.ReadOnly <CoalStocks.HasAuthority>(),
                                              ComponentType.ReadOnly <Transform>(),
                                              ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                              ComponentType.ReadOnly <SpatialEntityId>()
                                              ), frequency);

            action = Query;
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            querySet = new EntityQuerySet(GetEntityQuery(
                                              ComponentType.ReadWrite <BaseUnitReviveTimer.Component>(),
                                              ComponentType.ReadOnly <BaseUnitReviveTimer.HasAuthority>(),
                                              ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                              ComponentType.ReadOnly <SpatialEntityId>()
                                              ), period);

            deltaTime = Time.ElapsedTime;

            action = Query;
        }
Example #13
0
        protected override void OnCreate()
        {
            base.OnCreate();

            querySet = new EntityQuerySet(GetEntityQuery(
                                              ComponentType.ReadOnly <UnitActionData>(),
                                              ComponentType.ReadWrite <GunComponent.Component>(),
                                              ComponentType.ReadOnly <GunComponent.HasAuthority>(),
                                              ComponentType.ReadWrite <PostureAnimation.Component>(),
                                              ComponentType.ReadOnly <PostureAnimation.HasAuthority>(),
                                              ComponentType.ReadOnly <BaseUnitTarget.Component>(),
                                              ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                              ComponentType.ReadOnly <PostureBoneContainer>(),
                                              ComponentType.ReadOnly <SpatialEntityId>()), frequency);

            action = Query;
        }
Example #14
0
        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();

            commanderQuerySet = new EntityQuerySet(GetEntityQuery(
                                                       ComponentType.ReadWrite <VirtualArmy.Component>(),
                                                       ComponentType.ReadOnly <VirtualArmy.HasAuthority>(),
                                                       ComponentType.ReadOnly <CommanderTeam.Component>(),
                                                       ComponentType.ReadOnly <BaseUnitStatus.Component>()), 1);

            turretQuerySet = new EntityQuerySet(GetEntityQuery(
                                                    ComponentType.ReadWrite <VirtualArmy.Component>(),
                                                    ComponentType.ReadOnly <VirtualArmy.HasAuthority>(),
                                                    ComponentType.ReadOnly <TurretHub.Component>(),
                                                    ComponentType.ReadOnly <BaseUnitStatus.Component>()), 1);

            commanderAction = CommanderQuery;
            turretAction    = TurretQuery;
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            group = GetEntityQuery(
                ComponentType.ReadOnly <UnitTransform>(),
                ComponentType.ReadOnly <MovementData>(),
                ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                ComponentType.ReadOnly <Rigidbody>()
                );

            movementAction = MovementQuery;

            syncQuerySet = new EntityQuerySet(GetEntityQuery(
                                                  ComponentType.ReadOnly <MovementData>(),
                                                  ComponentType.ReadWrite <BaseUnitMovement.Component>(),
                                                  ComponentType.ReadOnly <BaseUnitMovement.HasAuthority>(),
                                                  ComponentType.ReadOnly <BaseUnitStatus.Component>()), syncInterval);

            syncAction = SyncQuery;
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            orderQuerySet = new EntityQuerySet(GetEntityQuery(
                                                   ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                                   ComponentType.ReadOnly <StrongholdSight.Component>(),
                                                   ComponentType.ReadOnly <HexFacility.Component>(),
                                                   ComponentType.ReadOnly <Transform>()
                                                   ), 1);

            factoryQuerySet = new EntityQuerySet(GetEntityQuery(
                                                     ComponentType.ReadWrite <UnitFactory.Component>(),
                                                     ComponentType.ReadOnly <UnitFactory.HasAuthority>(),
                                                     ComponentType.ReadOnly <BaseUnitStatus.Component>(),
                                                     ComponentType.ReadOnly <StrongholdSight.Component>(),
                                                     ComponentType.ReadOnly <HexFacility.Component>(),
                                                     ComponentType.ReadOnly <Transform>()
                                                     ), 1);

            orderAction   = OrderQuery;
            factoryAction = FactoryQuery;
        }