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

◆ OnlyRunnableOnce()

static Action ReLogic.Content.RunOnceAction.OnlyRunnableOnce ( this Action action)
inlinestatic

Definition at line 8 of file RunOnceAction.cs.

9 {
10 return delegate
11 {
12 Interlocked.Exchange(ref action, null)?.Invoke();
13 };
14 }
static int Exchange(ref int location1, int value)

References System.action, and System.Threading.Interlocked.Exchange().