Table of Contents

Struct CommandAlias

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

Represents an alias for a command. An alias allows a command to be invoked using a different name (shorthand), ignoring command groups. For example, "/pm" as an alias for "/message send".

public readonly struct CommandAlias : IEquatable<CommandAlias>
Implements
Inherited Members

Constructors

CommandAlias(string)

Initializes a new instance with an alias name.

public CommandAlias(string name)

Parameters

name string

Properties

Name

The alias name (without leading slash).

public string Name { get; }

Property Value

string

Methods

Equals(CommandAlias)

public bool Equals(CommandAlias other)

Parameters

other CommandAlias

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CommandAlias, CommandAlias)

Implementation of the equality operator.

public static bool operator ==(CommandAlias left, CommandAlias right)

Parameters

left CommandAlias
right CommandAlias

Returns

bool

operator !=(CommandAlias, CommandAlias)

Implementation of the inequality operator.

public static bool operator !=(CommandAlias left, CommandAlias right)

Parameters

left CommandAlias
right CommandAlias

Returns

bool