Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RunOnceAction.cs
Go to the documentation of this file.
1using System;
3
4namespace ReLogic.Content;
5
6public static class RunOnceAction
7{
8 public static Action OnlyRunnableOnce(this Action action)
9 {
10 return delegate
11 {
12 Interlocked.Exchange(ref action, null)?.Invoke();
13 };
14 }
15}
static Action OnlyRunnableOnce(this Action action)
static int Exchange(ref int location1, int value)