-
Notifications
You must be signed in to change notification settings - Fork 2
/
RegionTag.cs
51 lines (43 loc) · 1.36 KB
/
RegionTag.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;
namespace Region_Editor
{
public struct RegionTag
{
private Region _Parent;
public Region Parent { get { return _Parent; } set { _Parent = value; } }
private int _Index;
public int Index { get { return _Index; } set { _Index = value; } }
private string _Reference;
public string Reference { get { return _Reference; } set { _Reference = value; } }
private Region _OwnRegion;
public Region OwnRegion { get { return _OwnRegion; } set { _OwnRegion = value; } }
public RegionTag(Region parent)
{
_Parent = parent;
_Index = -1;
_Reference = "";
_OwnRegion = parent;
}
public RegionTag(Region parent, string reference)
{
_Parent = parent;
_Index = -1;
_Reference = reference;
_OwnRegion = parent;
}
public RegionTag(Region parent, string reference, int index)
{
_Parent = parent;
_Index = index;
_Reference = reference;
_OwnRegion = parent;
}
public RegionTag(Region parent, string reference, int index, Region ownregion)
{
_Parent = parent;
_Index = index;
_Reference = reference;
_OwnRegion = ownregion;
}
}
}