Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Download Everest stripped lib
uses: robinraju/release-downloader@v1.4
with:
repository: EverestAPI/Everest
latest: true
fileName: lib-stripped.zip

- name: Extract lib-stripped.zip
run: unzip lib-stripped.zip

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
Expand All @@ -30,8 +20,6 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
env:
CelestePrefix: ${{ github.workspace }}/lib-stripped

- name: Unzip again (jank)
run: |
Expand Down
10 changes: 10 additions & 0 deletions Loenn/entities/awakeOrderMeasurer.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
return {
name = "TestMod/AwakeOrderMeasurer",
placements = {
name = "awake order measurer",
data = {
awakePriority = 0,
message = "hello"
}
}
}
Binary file added Maps/TestMod/testmap.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/TestMod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<LangVersion>latest</LangVersion>
<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('..\..\..\Celeste.dll')">..\..\..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == ''">lib-stripped</CelestePrefix>
<ZippedFiles>..\everest.yaml;..\bin\**\*.*;..\Audio\**\*.*;..\Dialog\**\*.*;..\Graphics\**\*.*;..\Ahorn\**\*.*;..\Loenn\**\*.*</ZippedFiles>
<ZippedFiles>..\everest.yaml;..\bin\**\*.*;..\Audio\**\*.*;..\Dialog\**\*.*;..\Graphics\**\*.*;..\Ahorn\**\*.*;..\Loenn\**\*.*;..\Maps\**\*.*</ZippedFiles>
</PropertyGroup>

<!--Disable "Copy Local" for all references-->
Expand Down
21 changes: 21 additions & 0 deletions Source/TestModModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
using Celeste.Mod.Entities;
using Microsoft.Xna.Framework;
using Monocle;

namespace Celeste.Mod.TestMod;

Expand Down Expand Up @@ -33,3 +36,21 @@ public override void Unload() {
// TODO: unapply any hooks applied in Load()
}
}

[CustomEntity("TestMod/AwakeOrderMeasurer")]
public class AwakeOrderMeasurer : Entity {
public string Message;
public int Priority;

public override int AwakePriority => Priority;

public AwakeOrderMeasurer(EntityData data, Vector2 offset) {
Priority = data.Int("awakePriority", 0);
Message = data.Attr("message", Priority.ToString());
}

public override void Awake(Scene scene) {
base.Awake(scene);
Logger.Info(nameof(TestMod), Message);
}
}
Binary file added Source/lib-stripped/Celeste.dll
Binary file not shown.
Binary file added Source/lib-stripped/FNA.dll
Binary file not shown.
Binary file added Source/lib-stripped/MMHOOK_Celeste.dll
Binary file not shown.
Loading