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

◆ AddOpcode()

void System.Diagnostics.Tracing.ManifestBuilder.AddOpcode ( string name,
int value )
inline

Definition at line 109 of file ManifestBuilder.cs.

110 {
111 if ((flags & EventManifestOptions.Strict) != 0)
112 {
113 if (value <= 10 || value >= 239)
114 {
115 ManifestError(SR.Format(SR.EventSource_IllegalOpcodeValue, name, value));
116 }
118 {
119 ManifestError(SR.Format(SR.EventSource_OpcodeCollision, name, value2, value));
120 }
121 }
123 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly EventManifestOptions flags
void ManifestError(string msg, bool runtimeCritical=false)
readonly Dictionary< int, string > opcodeTab

References System.SR.EventSource_IllegalOpcodeValue, System.SR.EventSource_OpcodeCollision, System.Diagnostics.Tracing.ManifestBuilder.flags, System.SR.Format(), System.Diagnostics.Tracing.ManifestBuilder.ManifestError(), System.Diagnostics.Tracing.ManifestBuilder.opcodeTab, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.