Minor code improvements

This commit is contained in:
SDraw 2024-09-25 01:52:36 +03:00
parent a2f9c1303e
commit 45557943c4
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
35 changed files with 557 additions and 835 deletions

View file

@ -8,7 +8,9 @@ namespace ml_amt
{
public enum ParameterType
{
Moving
Moving,
MovementSpeed,
Velocity
}
readonly ParameterType m_type;
@ -44,6 +46,14 @@ namespace ml_amt
case ParameterType.Moving:
SetBoolean(p_tweaker.IsMoving());
break;
case ParameterType.MovementSpeed:
SetFloat(p_tweaker.GetMovementSpeed());
break;
case ParameterType.Velocity:
SetFloat(p_tweaker.GetVelocity());
break;
}
}