-
Notifications
You must be signed in to change notification settings - Fork 1
/
CavernInterop.cs
26 lines (23 loc) · 1.12 KB
/
CavernInterop.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Microsoft.Xna.Framework;
using Monocle;
using MonoMod.ModInterop;
using System;
namespace Celeste.Mod.CavernHelper {
[ModExportName("CavernHelper")]
public static class CavernInterop {
internal static void Load() {
typeof(CavernInterop).ModInterop();
}
// Creates and returns a CrystalBombExplosionCollider as a Component.
// Action<Vector2> action: the delegate that will be called when the entity collides with the explosion.
// Collider collider: the collider to use for the check. Defaults to the entity collider.
public static Component GetCrystalBombExplosionCollider(Action<Vector2> action, Collider collider = null) {
return new CrystalBombExplosionCollider(action, collider);
}
// Creates and returns a CrystalBombExploderCollider as a Component.
// Collider collider: the collider to use for the check. Defaults to the entity collider.
public static Component GetCrystalBombExploderCollider(Collider collider = null) {
return new CrystalBombExploderCollider(collider);
}
}
}