Exemplo n.º 1
0
 public void ProcessMainThreadActions()
 {
     game.EnqueueMainThreadTask(() => ProcessActions(MainThreadActions), "");
 }
 /// <summary>
 ///     Thread-Safe.
 ///     Shows a client side only chat message in the current chat channel. Does not execute client commands.
 /// </summary>
 /// <param name="game">The core game API this method was called from.</param>
 /// <param name="message">The message to show to the player.</param>
 public static void EnqueueShowChatMessage(this ClientMain game, string message)
 {
     game?.EnqueueMainThreadTask(() => game.ShowChatMessage(message), "");
 }