Skip to content

Commit 50ed68c

Browse files
committed
Add more Lua Cutscenes-friendly constructor to SidewaysLava
1 parent 324cfa3 commit 50ed68c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Entities/SidewaysLava.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Celeste.Mod.SpringCollab2020.Entities {
1515
/// - speedMultiplier: multiplies the vanilla speed for lava
1616
/// </summary>
1717
[CustomEntity("SpringCollab2020/SidewaysLava")]
18-
class SidewaysLava : Entity {
18+
public class SidewaysLava : Entity {
1919
private static FieldInfo lavaBlockerTriggerEnabled = typeof(LavaBlockerTrigger).GetField("enabled", BindingFlags.NonPublic | BindingFlags.Instance);
2020

2121
private enum LavaMode {
@@ -61,6 +61,12 @@ private enum LavaMode {
6161
Calc.HexToColor("0151d0")
6262
};
6363

64+
public SidewaysLava(bool intro, string lavaMode, float speedMultiplier) : this(new EntityData() {
65+
Values = new Dictionary<string, object>() {
66+
{ "intro", intro }, { "lavaMode", lavaMode }, { "speedMultiplier", speedMultiplier }
67+
}
68+
}, Vector2.Zero) { }
69+
6470
public SidewaysLava(EntityData data, Vector2 offset) {
6571
intro = data.Bool("intro", false);
6672
lavaMode = data.Enum("lavaMode", LavaMode.LeftToRight);

0 commit comments

Comments
 (0)