Move OnInitialize to interface
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "recoil")]
|
||||
public class Recoil : Script
|
||||
public class Recoil : Script, IScriptOnInitialize
|
||||
{
|
||||
private float _recoilPercentage;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnInitialize(IReadOnlyDictionary<StringKey, object?>? parameters)
|
||||
public void OnInitialize(IReadOnlyDictionary<StringKey, object?>? parameters)
|
||||
{
|
||||
if (parameters == null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user