-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGreyOSProgramManager.cs
51 lines (46 loc) · 1.56 KB
/
GreyOSProgramManager.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Object = UnityEngine.Object;
namespace GHPluginCoreLib
{
/// <summary>
/// The GreyOSProgramManager class is responsible for registering custom programs
/// with GreyOS, the operating system that a player's in-game computer runs on.
/// Programs registered with this class can be used through the in-game
/// computer.
/// </summary>
public class GreyOSProgramManager
{
/// <summary>
/// Contains a list of all the programs registered with the GreyOSProgramManager
/// so far.
/// </summary>
public readonly List<GreyOSProgram> registeredGreyOSPrograms = new List<GreyOSProgram>();
/// <summary>
/// Default constructor for the GreyOSProgramManager class.
/// </summary>
public GreyOSProgramManager()
{
}
/// <summary>
/// Registers a program with the GreyOSProgramManager.
/// </summary>
/// <param name="greyOSProgram"></param>
public void RegisterProgram(GreyOSProgram greyOSProgram)
{
this.registeredGreyOSPrograms.Add(greyOSProgram);
}
/// <summary>
/// Unregisters a program from the GreyOSProgramManager.
/// </summary>
/// <param name="greyOSProgram"></param>
public void UnregisterProgram(GreyOSProgram greyOSProgram)
{
this.registeredGreyOSPrograms.Remove(greyOSProgram);
}
}
}