Class TerminalUser
- Namespace
- Uncreated.Warfare.Interaction.Commands
- Assembly
- Uncreated.Warfare.dll
[CannotApplyEqualityOperator]
public class TerminalUser : ICommandUser
- Inheritance
-
TerminalUser
- Implements
- Inherited Members
Constructors
TerminalUser(ILogger)
public TerminalUser(ILogger logger)
Parameters
loggerILogger
Properties
IMGUI
If SendMessage(string) should use IMGUI (Unity rich text) for coloring.
public bool IMGUI { get; }
Property Value
Instance
public static TerminalUser Instance { get; }
Property Value
IsDisconnected
If this user is disconnected from the server.
public bool IsDisconnected { get; }
Property Value
Remarks
Return false if not supported.
IsSuperUser
If permissions shouldn't even be considered for this actor (the console).
public bool IsSuperUser { get; }
Property Value
IsTerminal
If SendMessage(string) outputs to a terminal.
public bool IsTerminal { get; }
Property Value
Steam64
Steam ID of this actor where applicable, or zero.
public CSteamID Steam64 { get; }
Property Value
- CSteamID
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetModerationActor()
Create an IModerationActor for this command actor.
public IModerationActor GetModerationActor()
Returns
Exceptions
SendMessage(string)
Send a raw string as feedback to this actor.
public void SendMessage(string message)
Parameters
messagestring
Exceptions
- GameThreadException
Not on main thread.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.