-
Notifications
You must be signed in to change notification settings - Fork 0
/
Object.cs
60 lines (51 loc) · 2.25 KB
/
Object.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
namespace abstractions;
public abstract class OBJECT {
/// <summary>
/// A short description of the object.
/// </summary>
public string? DESCRIPTION { private get; init; }
/// <summary>
/// The type of the object.
/// </summary>
public string TYPE { private get; init; }
/// <summary>
/// Adds/overwrites a handler for the given signal.
/// </summary>
/// <param name="signal_name">The (parametrized) name of the signal.</param>
/// <param name="code">A handler (code block or a BEHAVIOUR name).</param>
public void ADDBEHAVIOUR(string signal_name, string code) { throw new NotImplementedException(); }
/// <summary>
/// Sets the clone count for the object. If it is greater than current clone count, new clones are created.
/// </summary>
/// <param name="count">Desired clone count.</param>
public void CLONE(int count = 1) { throw new NotImplementedException(); }
/// <summary>
/// Returns the clone index of the object.
/// </summary>
/// <returns>0 if the object is the original, unique sequential 1-based index otherwise.</returns>
public int GETCLONEINDEX() { throw new NotImplementedException(); }
/// <summary>
/// Retrieves the name of the object.
/// </summary>
/// <returns>The object name.</returns>
public string GETNAME() { throw new NotImplementedException(); }
/// <summary>
/// Displays a message box with the given contents.
/// </summary>
/// <remarks>
/// Does nothing in the release build of the original engine.
/// </remarks>
/// <param name="message">A message to be displayed.</param>
public void MSGBOX(string message) { throw new NotImplementedException(); }
/// <summary>
/// Removes the handler for the given signal (if it exists).
/// </summary>
/// <param name="signal_name">The (parametrized) name of the signal.</param>
// TODO: does it remove handlers set when declaring the object and not added using ADDBEHAVIOUR?
public void REMOVEBEHAVIOUR(string signal_name) { throw new NotImplementedException(); }
/// <summary>
/// Resets the clone count.
/// </summary>
// TODO: are the clones removed?
public void RESETCLONES() { throw new NotImplementedException(); }
}