forked from ImaMapleTree/SampleAUAddon
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSampleRoleAddon.cs
More file actions
36 lines (27 loc) · 1.03 KB
/
SampleRoleAddon.cs
File metadata and controls
36 lines (27 loc) · 1.03 KB
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
28
29
30
31
32
33
34
using Lotus.Addons;
using Lotus.GameModes.Standard;
using SampleRoleAddon.Version;
using Lotus.Roles;
using System.Collections.Generic;
using SampleRoleAddon.Roles.Standard;
using SampleRoleAddon.Gamemodes.BombTag;
using SampleRoleAddon.Gamemodes.BombTag.Options;
using Lotus.GameModes;
namespace SampleRoleAddon;
public class SampleRoleAddon: LotusAddon
{
public override void Initialize()
{
// Create instances first
List<CustomRole> allRoles = new List<CustomRole>() { new CrewCrew() };
// Add your role to the gamemmode of your choice (Standard in this case.)
allRoles.ForEach(StandardRoles.AddRole);
// Register roles
ExportCustomRoles(allRoles, typeof(StandardGameMode));
// Export gamemode
ExportGameModes(new List<IGameMode>() { new BombTagGamemode() });
_ = new BombTagOptionHolder();
}
public override string Name { get; } = "Sample Role Addon";
public override VentLib.Version.Version Version { get; } = new SampleLotusAddonVersion();
}