Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HybridObjectCache.cs
Go to the documentation of this file.
2
4
5internal sealed class HybridObjectCache
6{
8
10
12 {
13 }
14
27
28 internal void Remove(string id)
29 {
30 if (_objectDictionary != null)
31 {
33 }
34 }
35
36 internal object GetObject(string id)
37 {
39 {
42 }
43 else
44 {
46 }
47 if (_objectDictionary != null)
48 {
50 return value;
51 }
52 return null;
53 }
54
55 internal bool IsObjectReferenced(string id)
56 {
58 {
60 }
61 return false;
62 }
63}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
bool TryAdd(TKey key, TValue value)
void Add(TKey key, TValue value)
Dictionary< string, object > _referencedObjectDictionary
static SerializationException CreateSerializationException(string errorMessage)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string MultipleIdDefinition
Definition SR.cs:210
Definition SR.cs:7