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;
        }
Beispiel #2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            newAdvancedGroup = GetEntityQuery(
                ComponentType.ReadOnly <LocalController>(),
                ComponentType.Exclude <Speed>()
                );

            advancedInputGroup = GetEntityQuery(
                ComponentType.ReadWrite <Rigidbody>(),
                ComponentType.ReadWrite <Speed>(),
                ComponentType.ReadOnly <UnitTransform>(),
                ComponentType.ReadOnly <LocalController>(),
                ComponentType.ReadOnly <BaseUnitStatus.Component>()
                );

            action = Query;
        }