mirror of
https://github.com/SDraw/ml_mods_cvr.git
synced 2026-05-04 17:27:00 +00:00
Minor code improvements
This commit is contained in:
parent
a2f9c1303e
commit
45557943c4
35 changed files with 557 additions and 835 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue