-
Notifications
You must be signed in to change notification settings - Fork 1
/
Template.cs
27 lines (24 loc) · 1.2 KB
/
Template.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
27
using CustomMapUtility;
namespace Template {
public class EnemyTeamStageManager_Template : EnemyTeamStageManager {
CustomMapHandler cmh = CustomMapHandler.GetCMU("TemplateModId");
public override void OnWaveStart() {
// This method must be called somewhere, and only once. StageManager or Passive in the OnWaveStart() method is recommended.
// You MUST have <MapInfo>Template</MapInfo> inside your StageInfo.xml file. (Replace Template with your stage name)
// When you call this method, you supply the stage name and then your map manager.
cmh.InitCustomMap<TemplateMapManager>("Template");
}
public override void OnRoundStart() {
// Calling this will inform the game that the custom map should be the active one. Should be called in OnRoundStart() in a stage manager or passive.
cmh.EnforceMap();
}
}
public class TemplateMapManager : CustomMapManager {
protected override string[] CustomBGMs {
get {
// Put the file name of your BGM here, you don't need the full path.
return new string[] {"MyBGM.ogg"};
}
}
}
}