Implements pkmnlib battle events

This commit is contained in:
Deukhoofd 2022-05-15 13:11:39 +02:00
parent 907e145083
commit 4ce0aa54ea
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
3 changed files with 5 additions and 5 deletions

View File

@ -91,9 +91,9 @@ namespace PkmnLibSharp.Battling.Events
case EventDataKind.ChangeStatBoost:
return new ChangeStatBoostEvent(evtType, ptr);
case EventDataKind.WeatherChange:
break;
case EventDataKind.StatusChange:
break;
return new WeatherChangeEvent(evtType, ptr);
case EventDataKind.AttemptCapture:
return new CaptureAttemptEvent(evtType, ptr);
default:
throw new ArgumentOutOfRangeException();
}

View File

@ -17,6 +17,6 @@ namespace PkmnLibSharp.Battling.Events
ChangeStatBoost = 12,
WeatherChange = 128,
StatusChange = 129,
AttemptCapture = 129,
}
}

View File

@ -17,7 +17,7 @@ namespace Pkmnlib.Generated
internal static extern IntPtr GetPokemon(IntPtr p);
/// <param name="p">CaptureAttemptEvent *</param>
/// <returns>const CaptureResult</returns>
/// <returns>const CaptureResult *</returns>
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_CaptureAttemptEvent_GetResult")]
internal static extern IntPtr GetResult(IntPtr p);