Exemplo n.º 1
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>();
        }
Exemplo n.º 2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            group = GetEntityQuery(
                ComponentType.ReadWrite <StrongholdSight.Component>(),
                ComponentType.ReadOnly <StrongholdSight.HasAuthority>(),
                ComponentType.ReadWrite <BaseUnitStatus.Component>(),
                ComponentType.ReadOnly <BaseUnitStatus.HasAuthority>(),
                ComponentType.ReadOnly <HexFacility.Component>(),
                ComponentType.ReadOnly <Transform>(),
                ComponentType.ReadOnly <SpatialEntityId>()
                );

            inter             = IntervalCheckerInitializer.InitializedChecker(period);
            action            = Query;
            portalUpdateSytem = World.GetExistingSystem <StrategyHexAccessPortalUpdateSystem>();
        }