Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Group.cs
Go to the documentation of this file.
2
3public class Group : Capture
4{
5 internal static readonly Group s_emptyGroup = new Group(string.Empty, Array.Empty<int>(), 0, string.Empty);
6
7 internal readonly int[] _caps;
8
9 internal int _capcount;
10
12
13 public bool Success => _capcount != 0;
14
15 public string Name { get; }
16
18
19 internal Group(string text, int[] caps, int capcount, string name)
20 : base(text, (capcount != 0) ? caps[(capcount - 1) * 2] : 0, (capcount != 0) ? caps[capcount * 2 - 1] : 0)
21 {
22 _caps = caps;
23 _capcount = capcount;
24 Name = name;
25 }
26
28 {
29 if (inner == null)
30 {
32 }
33 CaptureCollection captures = inner.Captures;
34 if (inner.Success)
35 {
36 captures.ForceInitialized();
37 }
38 return inner;
39 }
40}
static readonly Group s_emptyGroup
Definition Group.cs:5
static Group Synchronized(Group inner)
Definition Group.cs:27
Group(string text, int[] caps, int capcount, string name)
Definition Group.cs:19
static void ThrowArgumentNullException(ExceptionArgument arg)