Implements pkmnlib battle events
This commit is contained in:
parent
907e145083
commit
4ce0aa54ea
|
@ -91,9 +91,9 @@ namespace PkmnLibSharp.Battling.Events
|
||||||
case EventDataKind.ChangeStatBoost:
|
case EventDataKind.ChangeStatBoost:
|
||||||
return new ChangeStatBoostEvent(evtType, ptr);
|
return new ChangeStatBoostEvent(evtType, ptr);
|
||||||
case EventDataKind.WeatherChange:
|
case EventDataKind.WeatherChange:
|
||||||
break;
|
return new WeatherChangeEvent(evtType, ptr);
|
||||||
case EventDataKind.StatusChange:
|
case EventDataKind.AttemptCapture:
|
||||||
break;
|
return new CaptureAttemptEvent(evtType, ptr);
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException();
|
throw new ArgumentOutOfRangeException();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,6 @@ namespace PkmnLibSharp.Battling.Events
|
||||||
ChangeStatBoost = 12,
|
ChangeStatBoost = 12,
|
||||||
|
|
||||||
WeatherChange = 128,
|
WeatherChange = 128,
|
||||||
StatusChange = 129,
|
AttemptCapture = 129,
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -17,7 +17,7 @@ namespace Pkmnlib.Generated
|
||||||
internal static extern IntPtr GetPokemon(IntPtr p);
|
internal static extern IntPtr GetPokemon(IntPtr p);
|
||||||
|
|
||||||
/// <param name="p">CaptureAttemptEvent *</param>
|
/// <param name="p">CaptureAttemptEvent *</param>
|
||||||
/// <returns>const CaptureResult</returns>
|
/// <returns>const CaptureResult *</returns>
|
||||||
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_CaptureAttemptEvent_GetResult")]
|
[DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_CaptureAttemptEvent_GetResult")]
|
||||||
internal static extern IntPtr GetResult(IntPtr p);
|
internal static extern IntPtr GetResult(IntPtr p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue