Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
this[int index]
T
ReLogic.Utilities.SlotVector
< T >.
this
[int index]
get
set
Definition at line
69
of file
SlotVector.cs
.
70
{
71
get
72
{
73
if
(
index < 0 || index >
=
_array
.Length)
74
{
75
throw
new
ArgumentOutOfRangeException
();
76
}
77
if
(!
_array
[
index
].
Id
.IsActive)
78
{
79
throw
new
KeyNotFoundException
();
80
}
81
return
_array
[
index
].
Value
;
82
}
83
set
84
{
85
if
(
index < 0 || index >
=
_array
.Length)
86
{
87
throw
new
ArgumentOutOfRangeException
();
88
}
89
if
(!
_array
[
index
].
Id
.IsActive)
90
{
91
throw
new
KeyNotFoundException
();
92
}
93
_array
[
index
] =
new
ItemPair(
value
,
_array
[
index
].Id);
94
}
95
}
ReLogic.Utilities.SlotVector._array
readonly ItemPair[] _array
Definition
SlotVector.cs:63
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.KeyNotFoundException
Definition
KeyNotFoundException.cs:9
System.Xml.Schema.XmlTypeCode.Id
@ Id
System.ExceptionArgument.value
@ value
System.ExceptionArgument.index
@ index
ReLogic.Utilities.SlotVector.ItemPair.Value
readonly T Value
Definition
SlotVector.cs:50
ReLogic
Utilities
SlotVector
Generated by
1.10.0