Class GameActionManager
Handles applying all the various things that might adjust or prevent actions, and outputs display of them.
Inheritance
System.Object
GameActionManager
Assembly: Eco.Gameplay.dll
Syntax
public static class GameActionManager : Object
Fields
GameActionLockers
Saves locks for combination of game action type and action subject (defined by ISyncedAction). It means that it will prevent running at same time same action with same subject, like two action of pick up same world object.
Declaration
public static ConcurrentDictionary<object, GameActionPack> GameActionLockers
Field Value
Type |
Description |
System.Collections.Concurrent.ConcurrentDictionary<System.Object, GameActionPack> |
|
GlobalDebugDisplay
Declaration
public static HashSet<User> GlobalDebugDisplay
Field Value
Type |
Description |
System.Collections.Generic.HashSet<User> |
|
UserOnlyDebugDisplay
Declaration
public static HashSet<User> UserOnlyDebugDisplay
Field Value
Type |
Description |
System.Collections.Generic.HashSet<User> |
|
Methods
CollectDebug(GameAction)
Declaration
public static bool CollectDebug(GameAction action)
Parameters
Returns
Type |
Description |
System.Boolean |
|
DebugShowIfNeeded(User, GameActionPack, Result)
Declaration
public static void DebugShowIfNeeded(User user, GameActionPack pack, Result result)
Parameters
DebugShowIfNeeded(User, Func<String>, Result)
Declaration
public static void DebugShowIfNeeded(User user, Func<string> desc, Result result)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Func<System.String> |
desc |
|
Result |
result |
|
Declaration
public static Result TryPerform(this GameAction action, User userToNotify)
Parameters
Returns
Declaration
public static Result TryPerform(this GameActionPack pack, User userToNotify)
Parameters
Returns
Passes the actions of specified pack through Laws and Auth Manager, and retrieves a failed/successful result.
Declaration
public static Result TryPerformActions(User userToNotify, GameActionPack pack)
Parameters
Returns