first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using OTG.Lab06.Characters;
|
||||
using UnityEngine;
|
||||
|
||||
namespace OTG.Lab06.Abilities
|
||||
{
|
||||
public readonly struct AbilityCastContext
|
||||
{
|
||||
public AbilityCastContext(AbilityData ability, Transform caster, PlayerStats playerStats, Vector3 origin, Vector3 forward)
|
||||
{
|
||||
Ability = ability;
|
||||
Caster = caster;
|
||||
PlayerStats = playerStats;
|
||||
Origin = origin;
|
||||
Forward = forward.sqrMagnitude <= 0.0001f ? Vector3.forward : forward.normalized;
|
||||
}
|
||||
|
||||
public AbilityData Ability { get; }
|
||||
public Transform Caster { get; }
|
||||
public PlayerStats PlayerStats { get; }
|
||||
public Vector3 Origin { get; }
|
||||
public Vector3 Forward { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user