-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMain.cs
More file actions
52 lines (41 loc) · 1.47 KB
/
Copy pathMain.cs
File metadata and controls
52 lines (41 loc) · 1.47 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DOSSystem;
using DOSSample;
namespace CSSample
{
public class SampleMain
{
static uint m_PluginID;
bool InitPlugin(uint PluginID, uint LogChannel, string ConfigDir, string LogDir)
{
m_PluginID = PluginID;
Logger.LogChannel = LogChannel;
{
SpaceArea Obj = new SpaceArea();
DOS_OBJ_REGISTER_INFO RegisterInfo = new DOS_OBJ_REGISTER_INFO();
RegisterInfo.ObjectID.ObjectTypeID = (ushort)OBJECT_TYPES.OBJECT_TYPE_SPACE_AREA;
RegisterInfo.Object = Obj;
RegisterInfo.Weight = 100;
RegisterInfo.ObjectTypeName = "SpaceArea";
DistributedObjectOperator.RegisterObject(m_PluginID, RegisterInfo);
}
{
Shipyard Obj = new Shipyard();
DOS_OBJ_REGISTER_INFO RegisterInfo = new DOS_OBJ_REGISTER_INFO();
RegisterInfo.ObjectID.ObjectTypeID = (ushort)OBJECT_TYPES.OBJECT_TYPE_SHIPYARD;
RegisterInfo.Object = Obj;
RegisterInfo.Weight = 100;
RegisterInfo.ObjectTypeName = "Shipyard";
DistributedObjectOperator.RegisterObject(m_PluginID, RegisterInfo);
}
return true;
}
public bool CheckPluginRelease()
{
return true;
}
};
};