forked from whztt07/UnityGameplayAbilitySystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntityQueryDescContainerBasic.cs
More file actions
29 lines (23 loc) · 1.28 KB
/
Copy pathEntityQueryDescContainerBasic.cs
File metadata and controls
29 lines (23 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Unity.Entities;
public struct EntityQueryDescContainerBasic<T0> : IEntityQueryDescContainer {
public EntityQueryDesc BeginAbilityCastJobQueryDesc => new EntityQueryDesc
{
All = new[] { ComponentType.ReadOnly<AbilityStateComponent>(), ComponentType.ReadOnly<AbilitySourceTargetComponent>(), ComponentType.ReadOnly<T0>() },
};
public EntityQueryDesc UpdateCooldownsJobQueryDesc => new EntityQueryDesc
{
All = new[] { ComponentType.ReadOnly<GrantedAbilityComponent>(), ComponentType.ReadWrite<GrantedAbilityCooldownComponent>(), ComponentType.ReadOnly<T0>() },
};
public EntityQueryDesc CheckAbilityAvailableJobQueryDesc_UpdateAvailability => new EntityQueryDesc
{
All = new[] { ComponentType.ReadWrite<AbilityStateComponent>(), ComponentType.ReadOnly<AbilitySourceTargetComponent>(), ComponentType.ReadOnly<T0>() },
};
public EntityQueryDesc CheckAbilityAvailableJobQueryDesc_CheckResources => new EntityQueryDesc
{
All = new[] { ComponentType.ReadWrite<AbilityStateComponent>(), ComponentType.ReadOnly<AbilitySourceTargetComponent>(), ComponentType.ReadOnly<T0>() },
};
public EntityQueryDesc CheckAbilityGrantedJobQueryDesc => new EntityQueryDesc
{
All = new[] { ComponentType.ReadOnly<T0>() },
};
}