blob: 309ce87bef9484b1722f0680333b19a376954a03 (
plain) (
blame)
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Objects
{
public class Hackable
{
public string SystemName { get; set; }
public string FriendlyName { get; set; }
public string Password { get; set; }
public string PasswordHint { get; set; }
public string WelcomeMessage { get; set; }
public int FirewallStrength { get; set; }
public int LootRarity { get; set; }
public int LootAmount { get; set; }
public int ConnectionTimeoutLevel { get; set; }
public SystemType SystemType { get; set; }
public string OnHackCompleteStoryEvent { get; set; }
public string OnHackFailedStoryEvent { get; set; }
public string Dependencies { get; set; }
public string ID
{
get
{
return SystemName.ToLower().Replace(" ", "_");
}
}
}
[Flags]
public enum SystemType
{
FileServer,
SSHServer,
EmailServer,
Database
}
[Serializable]
public class ServerMessage
{
public string Name { get; set; }
public string GUID { get; set; }
public string Contents { get; set; }
}
public class LootInfo
{
public string Filename { get; set; }
public string ResourceId { get; set; }
public int Rarity { get; set; }
}
public class Loot
{
public Loot(LootInfo info, byte[] data)
{
Data = data;
Info = info;
}
public LootInfo Info { get; private set; }
public byte[] Data { get; private set; }
}
}
|