forked from whztt07/UnityGameplayAbilitySystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbilityEvents.cs
More file actions
33 lines (25 loc) · 805 Bytes
/
Copy pathAbilityEvents.cs
File metadata and controls
33 lines (25 loc) · 805 Bytes
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
30
31
32
33
using System;
using GameplayAbilitySystem.Interfaces;
using UnityEngine.Events;
using UnityEngine;
using System.Collections.Generic;
namespace GameplayAbilitySystem.Events {
[Serializable]
public class GenericAbilityEvent : UnityEvent<IGameplayAbility> {
}
[Serializable]
public class GameplayEvent : UnityEvent<GameplayTag, GameplayEventData> {
}
[Serializable]
public struct GameplayEventData {
public GameplayTag EventTag;
public AbilitySystemComponent Instigator;
public AbilitySystemComponent Target;
public object OptionalObject;
// Gameplay Effect handle?
public List<GameplayTag> InstigatorTags;
public List<GameplayTag> TargetTags;
public float EventMagnitude;
// Target Data?
}
}