forked from NamelessSCP/LobbySystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cs
More file actions
79 lines (69 loc) · 3.38 KB
/
Config.cs
File metadata and controls
79 lines (69 loc) · 3.38 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using Exiled.API.Enums;
using Exiled.API.Interfaces;
using System.ComponentModel;
using PlayerRoles;
using UnityEngine;
namespace LobbySystem
{
public sealed class Config : IConfig
{
public bool IsEnabled { get; set; } = true;
public bool Debug { get; set; } = false;
public double LobbyTime { get; set; } = 30;
public short MinimumPlayers { get; set; } = 2;
[Description("Edit the text shown")]
public bool UseHints { get; set; } = false;
public string TextShown { get; set; } = "<size=27>│ %status% │ <b>SERVER NAME</b> │ <color=red>%playercount%/%maxplayers%</color> Inmates Waiting │</size>";
public string PausedStatus { get; set; } = @"<color=red>🟥</color> Lobby Paused";
public string WaitingStatus { get; set; } = @"<color=yellow>🟨</color> Waiting for Players";
public string StartingStatus { get; set; } = @"<color=green>🟩</color> Starting in %countdown% Seconds";
[Description("Sets the Spawn Type, Default is RoomsAndCoords, there is also Rooms and Coords")]
public Handler.SpawnEnum SpawnType { get; set; } = Handler.SpawnEnum.RoomsAndCoords;
public List<RoomType> SpawnRooms { get; set; } = new List<RoomType>
{
RoomType.LczArmory,
RoomType.Lcz914,
RoomType.LczClassDSpawn,
RoomType.LczGlassBox,
RoomType.LczToilets,
RoomType.Hcz106,
RoomType.Hcz079,
RoomType.HczHid,
RoomType.EzPcs,
RoomType.EzDownstairsPcs,
RoomType.EzUpstairsPcs,
RoomType.EzGateA,
RoomType.EzGateB
};
public List<Vector3> DefinedSpawnPosition { get; set; } = new()
{
new Vector3(0, 295.6f, -8),
new Vector3(40, 340.080f, -32.600f)
};
[Description("Can players pick up items in lobby?")]
public bool AllowItemPickup { get; set; } = false;
[Description("Can players die from enviromental hazards? (I.E. the death pit in 106s room)")]
public bool PlayersDieFromEnviromentalHazards { get; set; } = false;
[Description("Open some doors for more room to move around before round start")]
public bool OpenDoorsForMoreRoom { get; set; } = true;
[Description("Should the doors lock while waiting for the round to start")]
public bool LockDoorsBeforeRoundStart { get; set; } = true;
[Description("Clean up ragdolls at round start?")]
public bool CleanUpRagdollsAtRoundStart { get; set; } = true;
[Description("Give players Global Intercom before round start?")]
public bool GiveGlobalIntercom { get; set; } = true;
[Description("List of roles players can spawn as before the game starts")]
public List<RoleTypeId> LobbyRoles { get; set; } = new List<RoleTypeId>
{
RoleTypeId.ClassD,
RoleTypeId.Tutorial
};
[Description("What items are given in the lobby?")]
public List<ItemType> LobbyItems { get; set; } = new List<ItemType>
{
ItemType.KeycardChaosInsurgency,
ItemType.Jailbird,
};
public bool AllowDroppingItemsDuringLobby { get; set; } = false;
}
}