|
Dictionary< string, object > | dict = new Dictionary<string, object>() |
|
Definition at line 14 of file TagCompound.cs.
◆ Add() [1/2]
void Terraria.ModLoader.IO.TagCompound.Add |
( |
KeyValuePair< string, object > |
entry | ) |
|
◆ Add() [2/2]
void Terraria.ModLoader.IO.TagCompound.Add |
( |
string |
key, |
|
|
object |
value |
|
) |
| |
◆ Clear()
void Terraria.ModLoader.IO.TagCompound.Clear |
( |
| ) |
|
◆ Clone()
object Terraria.ModLoader.IO.TagCompound.Clone |
( |
| ) |
|
Definition at line 99 of file TagCompound.cs.
99 {
100 var copy = new TagCompound();
101 foreach (var entry in this)
102 copy.Set(entry.Key, TagIO.Clone(entry.Value));
103
104 return copy;
105 }
◆ ContainsKey()
bool Terraria.ModLoader.IO.TagCompound.ContainsKey |
( |
string |
key | ) |
|
◆ Get< T >()
T Terraria.ModLoader.IO.TagCompound.Get< T > |
( |
string |
key | ) |
|
◆ GetAsDouble()
double Terraria.ModLoader.IO.TagCompound.GetAsDouble |
( |
string |
key | ) |
|
Definition at line 94 of file TagCompound.cs.
94 {
95 var o = Get<object>(key);
96 return o as double? ?? o as float? ?? 0;
97 }
◆ GetAsInt()
int Terraria.ModLoader.IO.TagCompound.GetAsInt |
( |
string |
key | ) |
|
Definition at line 84 of file TagCompound.cs.
84 {
85 var o = Get<object>(key);
86 return o as int? ?? o as short? ?? o as byte? ?? 0;
87 }
◆ GetAsLong()
long Terraria.ModLoader.IO.TagCompound.GetAsLong |
( |
string |
key | ) |
|
Definition at line 89 of file TagCompound.cs.
89 {
90 var o = Get<object>(key);
91 return o as long? ?? o as int? ?? o as short? ?? o as byte? ?? 0;
92 }
◆ GetAsShort()
short Terraria.ModLoader.IO.TagCompound.GetAsShort |
( |
string |
key | ) |
|
Definition at line 79 of file TagCompound.cs.
79 {
80 var o = Get<object>(key);
81 return o as short? ?? o as byte? ?? 0;
82 }
◆ GetBool()
bool Terraria.ModLoader.IO.TagCompound.GetBool |
( |
string |
key | ) |
|
◆ GetByte()
byte Terraria.ModLoader.IO.TagCompound.GetByte |
( |
string |
key | ) |
|
◆ GetByteArray()
byte[] Terraria.ModLoader.IO.TagCompound.GetByteArray |
( |
string |
key | ) |
|
◆ GetCompound()
TagCompound Terraria.ModLoader.IO.TagCompound.GetCompound |
( |
string |
key | ) |
|
◆ GetDouble()
double Terraria.ModLoader.IO.TagCompound.GetDouble |
( |
string |
key | ) |
|
◆ GetEnumerator() [1/2]
IEnumerator< KeyValuePair< string, object > > Terraria.ModLoader.IO.TagCompound.GetEnumerator |
( |
| ) |
|
◆ GetEnumerator() [2/2]
IEnumerator IEnumerable. Terraria.ModLoader.IO.TagCompound.GetEnumerator |
( |
| ) |
|
|
private |
◆ GetFloat()
float Terraria.ModLoader.IO.TagCompound.GetFloat |
( |
string |
key | ) |
|
◆ GetInt()
int Terraria.ModLoader.IO.TagCompound.GetInt |
( |
string |
key | ) |
|
◆ GetIntArray()
int[] Terraria.ModLoader.IO.TagCompound.GetIntArray |
( |
string |
key | ) |
|
◆ GetList< T >()
IList< T > Terraria.ModLoader.IO.TagCompound.GetList< T > |
( |
string |
key | ) |
|
◆ GetLong()
long Terraria.ModLoader.IO.TagCompound.GetLong |
( |
string |
key | ) |
|
◆ GetShort()
short Terraria.ModLoader.IO.TagCompound.GetShort |
( |
string |
key | ) |
|
◆ GetString()
string Terraria.ModLoader.IO.TagCompound.GetString |
( |
string |
key | ) |
|
◆ GetTag< T >()
T Terraria.ModLoader.IO.TagCompound.GetTag< T > |
( |
string |
key | ) |
|
◆ HasTag()
bool Terraria.ModLoader.IO.TagCompound.HasTag |
( |
string |
key | ) |
|
◆ Remove()
bool Terraria.ModLoader.IO.TagCompound.Remove |
( |
string |
key | ) |
|
◆ RemoveTag()
bool Terraria.ModLoader.IO.TagCompound.RemoveTag |
( |
string |
key | ) |
|
◆ Set() [1/2]
void Terraria.ModLoader.IO.TagCompound.Set |
( |
string |
key, |
|
|
object |
value |
|
) |
| |
◆ Set() [2/2]
void Terraria.ModLoader.IO.TagCompound.Set |
( |
string |
key, |
|
|
object |
value, |
|
|
bool |
replace = false |
|
) |
| |
◆ SetTag()
void Terraria.ModLoader.IO.TagCompound.SetTag |
( |
string |
key, |
|
|
object |
value |
|
) |
| |
◆ ToString()
override string Terraria.ModLoader.IO.TagCompound.ToString |
( |
| ) |
|
◆ dict
Dictionary<string, object> Terraria.ModLoader.IO.TagCompound.dict = new Dictionary<string, object>() |
|
private |
◆ Count
int Terraria.ModLoader.IO.TagCompound.Count |
|
get |
◆ this[string key]
object Terraria.ModLoader.IO.TagCompound.this[string key] |
|
getset |
Definition at line 111 of file TagCompound.cs.
111 {
112 get { return Get<object>(key); }
113 set {
Set(key, value,
true); }
114 }
void Set(string key, object value)