-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'EverestAPI:dev' into update_menu_rework
- Loading branch information
Showing
5 changed files
with
67 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma warning disable CS0108 // Method hides inherited member | ||
#pragma warning disable CS0626 // Method, operator, or accessor is marked external and has no attributes on it | ||
#pragma warning disable CS0649 // Field is never assigned to, and will always have its default value | ||
|
||
using Microsoft.Xna.Framework; | ||
using MonoMod; | ||
|
||
namespace Celeste { | ||
class patch_Glider : Glider { | ||
public patch_Holdable Hold; // avoids extra cast | ||
|
||
public patch_Glider(Vector2 position, bool bubble, bool tutorial) | ||
: base(position, bubble, tutorial) { | ||
} | ||
|
||
public extern void orig_ctor(Vector2 position, bool bubble, bool tutorial); | ||
|
||
[MonoModConstructor] | ||
public void ctor(Vector2 position, bool bubble, bool tutorial) { | ||
orig_ctor(position, bubble, tutorial); | ||
Hold.SpeedSetter = (speed) => { Speed = speed; }; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma warning disable CS0108 // Method hides inherited member | ||
#pragma warning disable CS0626 // Method, operator, or accessor is marked external and has no attributes on it | ||
#pragma warning disable CS0649 // Field is never assigned to, and will always have its default value | ||
|
||
using Microsoft.Xna.Framework; | ||
using MonoMod; | ||
|
||
namespace Celeste { | ||
class patch_TheoCrystal : TheoCrystal { | ||
public patch_Holdable Hold; // avoids extra cast | ||
|
||
public patch_TheoCrystal(EntityData data, Vector2 offset) | ||
: base(data, offset) { | ||
} | ||
|
||
public extern void orig_ctor(Vector2 position); | ||
|
||
[MonoModConstructor] | ||
public void ctor(Vector2 position) { | ||
orig_ctor(position); | ||
Hold.SpeedSetter = (speed) => { Speed = speed; }; | ||
} | ||
} | ||
} |