Implements pkmnlib battle events
This commit is contained in:
parent
907e145083
commit
4ce0aa54ea
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ namespace PkmnLibSharp.Battling.Events
|
|||
ChangeStatBoost = 12,
|
||||
|
||||
WeatherChange = 128,
|
||||
StatusChange = 129,
|
||||
AttemptCapture = 129,
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue