Class CharacterWeaponAnimationData
Animations and other important data for weapon abilities.
Inherited Members
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Namespace: LobsterFramework.AbilitySystem.WeaponSystem
Assembly: LobsterFramework.dll
Syntax
[CreateAssetMenu(menuName = "Ability/CharacterWeaponAnimationData")]
public class CharacterWeaponAnimationData : ScriptableObject
Methods
| Improve this Doc View SourceGetAbilityClip<T>(WeaponType, int)
Find the animation clip of the weapon ability
Declaration
public AnimationClip GetAbilityClip<T>(WeaponType weaponType, int entry = 0) where T : Ability
Parameters
Type | Name | Description |
---|---|---|
WeaponType | weaponType | The type of the weapon |
int | entry | The index to the array of animation clips |
Returns
Type | Description |
---|---|
AnimationClip | The animation clip of the specified weapon ability with regards to the specified weapon type and array index. |
Type Parameters
Name | Description |
---|---|
T | The type of the ability |
Exceptions
Type | Condition |
---|---|
IndexOutOfRangeException | Thrown when |
GetMoveClip(WeaponType)
Find the animation clip for movement of the weapon
Declaration
public AnimationClip GetMoveClip(WeaponType weaponType)
Parameters
Type | Name | Description |
---|---|---|
WeaponType | weaponType |
Returns
Type | Description |
---|---|
AnimationClip |
GetWeaponAbilitySetting<T, V>(WeaponType)
Declaration
public T GetWeaponAbilitySetting<T, V>(WeaponType weaponType) where T : ScriptableObject where V : Ability
Parameters
Type | Name | Description |
---|---|---|
WeaponType | weaponType |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | |
V |