Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Parameter.cs
Go to the documentation of this file.
2
3public readonly struct Parameter
4{
5 private readonly MetadataReader _reader;
6
7 private readonly int _rowId;
8
10
12
13 public int SequenceNumber => _reader.ParamTable.GetSequence(Handle);
14
16
18 {
19 _reader = reader;
20 _rowId = handle.RowId;
21 }
22
24 {
25 return _reader.ConstantTable.FindConstant(Handle);
26 }
27
29 {
30 int num = _reader.FieldMarshalTable.FindFieldMarshalRowId(Handle);
31 if (num == 0)
32 {
33 return default(BlobHandle);
34 }
35 return _reader.FieldMarshalTable.GetNativeType(num);
36 }
37
42}
static ParameterHandle FromRowId(int rowId)
CustomAttributeHandleCollection GetCustomAttributes()
Definition Parameter.cs:38
readonly MetadataReader _reader
Definition Parameter.cs:5
Parameter(MetadataReader reader, ParameterHandle handle)
Definition Parameter.cs:17