Search Results for

    Show / Hide Table of Contents

    Class CosmosConsoleConfig

    Inheritance
    Object
    CosmosConsoleConfig
    Namespace: Clavusaurus.Cosmos
    Assembly: cs.temp.dll.dll
    Syntax
    public class CosmosConsoleConfig

    Fields

    allowGuestLogin

    Declaration
    public bool allowGuestLogin
    Field Value
    Type Description
    Boolean

    clientConnectionTimeout

    Declaration
    public float clientConnectionTimeout
    Field Value
    Type Description
    Single

    commandCategories

    Declaration
    public List<string> commandCategories
    Field Value
    Type Description
    List<String>

    commandList

    Declaration
    public List<CommandDefinition> commandList
    Field Value
    Type Description
    List<CommandDefinition>

    remoteConsolePort

    Declaration
    public int remoteConsolePort
    Field Value
    Type Description
    Int32

    throttleLoginAttempts

    Declaration
    public bool throttleLoginAttempts
    Field Value
    Type Description
    Boolean

    throttleLoginDelay

    Declaration
    public float throttleLoginDelay
    Field Value
    Type Description
    Single

    throttleMinAttempts

    Declaration
    public int throttleMinAttempts
    Field Value
    Type Description
    Int32

    users

    Max 31 users are supported

    Declaration
    public List<UserDefinition> users
    Field Value
    Type Description
    List<UserDefinition>

    Methods

    Copy()

    Declaration
    public CosmosConsoleConfig Copy()
    Returns
    Type Description
    CosmosConsoleConfig

    DeserializeFrom(Byte[], Boolean)

    Deserialize config from byte array. Specify if it came from a remote server to adjust for correct format.

    Declaration
    public void DeserializeFrom(byte[] bytes, bool fromServer = false)
    Parameters
    Type Name Description
    Byte[] bytes
    Boolean fromServer

    DeserializeParameterValues(Byte[])

    Declaration
    public void DeserializeParameterValues(byte[] bytes)
    Parameters
    Type Name Description
    Byte[] bytes

    GetCombinedHintConfig(CosmosConsoleConfig)

    Combines commands from the current command list with those of the the provided remoteConfig's command list, for hint purposes. Any disabled commands from either list are skipped. Only commands with forceRunLocal checked are added from the local list and only the commands that do NOT have forceRunLocal checked are added from the remoteConfig's list. If a command in the remoteConfig already has an equivalent command (same keyword) in the local command list, the definition from the local list is used and the remoteConfig's one is ignored.

    Declaration
    public CosmosConsoleConfig GetCombinedHintConfig(CosmosConsoleConfig remoteConfig)
    Parameters
    Type Name Description
    CosmosConsoleConfig remoteConfig
    Returns
    Type Description
    CosmosConsoleConfig

    CosmosConsoleConfig with combined command list and command categories list. Other fields are left at default.

    GetCommandById(Int32)

    Declaration
    public CommandDefinition GetCommandById(int id)
    Parameters
    Type Name Description
    Int32 id
    Returns
    Type Description
    CommandDefinition

    GetCommandIdByKeyword(String)

    Declaration
    public int GetCommandIdByKeyword(string keyword)
    Parameters
    Type Name Description
    String keyword
    Returns
    Type Description
    Int32

    GetSerialized(ICommandSender)

    Get serialized version of config in byte array. If sender is specified, serializes a stripped-down version that excludes commands that the sender doesn't have access to, and fields that are not required for remote consoles to know about

    Declaration
    public byte[] GetSerialized(ICommandSender forSender = null)
    Parameters
    Type Name Description
    ICommandSender forSender
    Returns
    Type Description
    Byte[]

    HasAccessToCommand(ICommandSender, CommandDefinition)

    Declaration
    public bool HasAccessToCommand(ICommandSender sender, CommandDefinition cmd)
    Parameters
    Type Name Description
    ICommandSender sender
    CommandDefinition cmd
    Returns
    Type Description
    Boolean

    TryGetCommand(String, out CommandDefinition)

    Declaration
    public bool TryGetCommand(string cmdKeyword, out CommandDefinition cmdDef)
    Parameters
    Type Name Description
    String cmdKeyword
    CommandDefinition cmdDef
    Returns
    Type Description
    Boolean

    TryGetCommandParameter(String, String, out CommandDefinition, out CommandParameterDefinition)

    Declaration
    public bool TryGetCommandParameter(string cmdKeyword, string paramKey, out CommandDefinition cmdDef, out CommandParameterDefinition paramDef)
    Parameters
    Type Name Description
    String cmdKeyword
    String paramKey
    CommandDefinition cmdDef
    CommandParameterDefinition paramDef
    Returns
    Type Description
    Boolean

    TryGetSerializedParameterValues(ICommandSender, String, String, out Byte[])

    Declaration
    public bool TryGetSerializedParameterValues(ICommandSender forSender, string cmdKeyword, string paramKey, out byte[] serializedData)
    Parameters
    Type Name Description
    ICommandSender forSender
    String cmdKeyword
    String paramKey
    Byte[] serializedData
    Returns
    Type Description
    Boolean

    TryGetUser(String, out UserDefinition)

    Declaration
    public bool TryGetUser(string username, out UserDefinition userDef)
    Parameters
    Type Name Description
    String username
    UserDefinition userDef
    Returns
    Type Description
    Boolean
    ☀
    ☾
    In This Article
    Back to top
    © Clavusaurus Game Software
    ☀
    ☾