-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUML-namespace.cs
73 lines (66 loc) · 1.54 KB
/
UML-namespace.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
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
using System;
namespace UML
{
public interface IMod
{
void Start();
void Update(float deltaTime);
void FixedUpdate(float fixedDeltaTime);
void OnGUI();
void OnApplicationQuit();
}
[AttributeUsage(AttributeTargets.Class)]
public class ModInfo : Attribute
{
public ModInfo(string _name, string _author, string _version)
{
name = _name;
guid = string.Join(".", _name.Split(new char[]
{
' '
}));
author = _author;
version = _version;
dependencies = Array.Empty<string>();
modType = ModType.Multiplayer;
}
public ModInfo(string _guid, string _name, string _author, string _version)
{
guid = _guid;
name = _name;
author = _author;
version = _version;
dependencies = Array.Empty<string>();
modType = ModType.Multiplayer;
}
public ModInfo(string _guid, string _name, string _author, string _version, string[] _dependencies)
{
guid = _guid;
name = _name;
author = _author;
version = _version;
dependencies = _dependencies;
modType = ModType.Multiplayer;
}
public ModInfo(string _guid, string _name, string _author, string _version, string[] _dependencies, ModType _modType)
{
guid = _guid;
name = _name;
author = _author;
version = _version;
dependencies = _dependencies;
modType = _modType;
}
public readonly string name;
public readonly string author;
public readonly string version;
public readonly string guid;
public readonly string[] dependencies;
public readonly ModType modType;
}
public enum ModType
{
ClientOnly,
Multiplayer,
}
}