-
Notifications
You must be signed in to change notification settings - Fork 0
/
MissionHubServer.cs
38 lines (36 loc) · 1.33 KB
/
MissionHubServer.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
28
29
30
31
32
33
34
35
36
37
38
using System;
namespace hacknet_viewer {
/*
* Mission server designed like CSEC
*/
public class MissionHubServer:Daemon {
public string GroupName { get; set; }
public string ServiceName { get; set; }
public string MissionFolderPath { get; set; }
public string ThemeColor { get; set; }
public string LineColor { get; set; }
public string BackgroundColor { get; set; }
public bool AllowAbandon { get; set; }
public MissionHubServer(string groupName, string serviceName, string missionFolderPath,
string themeColor, string lineColor, string backgroundColor,
bool allowAbandon) {
this.GroupName = groupName;
this.ServiceName = serviceName;
this.MissionFolderPath = missionFolderPath;
this.ThemeColor = themeColor;
this.LineColor = lineColor;
this.BackgroundColor = backgroundColor;
this.AllowAbandon = allowAbandon;
}
public override string ToString() {
return "<" + this.ServiceName + " (mission hub server)" +
"\ngroup name: " + this.GroupName +
"\nmission folder path: " + this.MissionFolderPath +
"\ntheme color: " + this.ThemeColor +
"\nline color: " + this.LineColor +
"\nbackground color: " + this.BackgroundColor +
"\nallow abandon: " + this.AllowAbandon +
">";
}
}
}