Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ this[int index]

CurveKey Microsoft.Xna.Framework.CurveKeyCollection.this[int index]
getset

Definition at line 20 of file CurveKeyCollection.cs.

21 {
22 get
23 {
24 return Keys[index];
25 }
26 set
27 {
28 if (value == null)
29 {
30 throw new ArgumentNullException();
31 }
32 float position = Keys[index].Position;
33 if (position == value.Position)
34 {
35 Keys[index] = value;
36 return;
37 }
38 Keys.RemoveAt(index);
39 Add(value);
40 }
41 }