Skip to content
Open
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
11 changes: 11 additions & 0 deletions CelesteMod/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"datatype": "bool",
"defaultValue": "true"
},
"GlobalUsings": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "true"
},
"GitHub": {
"type": "parameter",
"datatype": "bool",
Expand Down Expand Up @@ -110,6 +115,12 @@
"Source/CelesteModModuleSaveData.cs"
]
},
{
"condition": "(!GlobalUsings)",
"exclude": [
"Source/GlobalUsings.cs"
]
},
{
"condition": "(!Legacy)",
"include": [
Expand Down
12 changes: 12 additions & 0 deletions CelesteMod/Source/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
global using System;
global using System.Collections;
global using System.Collections.Generic;
global using System.Linq;
global using UnreachableException = System.Diagnostics.UnreachableException;

global using Microsoft.Xna.Framework;
global using Microsoft.Xna.Framework.Graphics;

global using Monocle;

global using Celeste.Mod.Entities;
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Available parameters:
* `--Session` : Includes a blank `EverestModuleSession` class and configures the module to look for it. (Defaults to true)
* `--SaveData` : Includes a blank `EverestModuleSaveData` class and configures the module to look for it. (Defaults to true)
* `--Logging` : Sets logging level to `Info` specifically for release builds instead of the default `Verbose`. (Defaults to true)
* `--GlobalUsings` : Includes a `GlobalUsings.cs` with a set of common usings. (Defaults to true)
* `--GitHub` : Generates a GitHub action for building your mod. (Defaults to false)
* `--Legacy` : Generates a mod for use with legacy Everest. This is only required if you want people to use your mod on versions of Everest older than 4465. (Defaults to false)

Expand Down