Broke Protocol Game API Reference  1.39
Code reference for server and client scripting
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
BrokeProtocol.API.Command Class Reference

Public Member Functions

 Command (string name, int parameterCount, Delegate method=null, Func< ShPlayer, Command, bool > testMethod=null, string permission=null)
 
override int GetHashCode ()
 
override bool Equals (object obj)
 
bool PlayerHasPermission (ShPlayer player)
 
bool Invoke (ShPlayer player, string[] args, int inputCount)
 
string GetUsage ()
 

Properties

string Name [get]
 
MethodInfo Method [get]
 
Func< ShPlayer, Command, bool > TestMethod [get]
 
string Permission [get]
 
object Target [get]
 
ParameterInfo[] FullParameters [get]
 
ParameterInfo[] PartialParameters [get]
 
int Hash [get]
 
int ParameterCount [get]
 

Constructor & Destructor Documentation

◆ Command()

BrokeProtocol.API.Command.Command ( string name,
int parameterCount,
Delegate method = null,
Func< ShPlayer, Command, bool > testMethod = null,
string permission = null )
inline

Member Function Documentation

◆ Equals()

override bool BrokeProtocol.API.Command.Equals ( object obj)

◆ GetHashCode()

override int BrokeProtocol.API.Command.GetHashCode ( )

◆ GetUsage()

string BrokeProtocol.API.Command.GetUsage ( )
inline

◆ Invoke()

bool BrokeProtocol.API.Command.Invoke ( ShPlayer player,
string[] args,
int inputCount )
inline

◆ PlayerHasPermission()

bool BrokeProtocol.API.Command.PlayerHasPermission ( ShPlayer player)
inline

Property Documentation

◆ FullParameters

ParameterInfo [] BrokeProtocol.API.Command.FullParameters
get

◆ Hash

int BrokeProtocol.API.Command.Hash
get

◆ Method

MethodInfo BrokeProtocol.API.Command.Method
get

◆ Name

string BrokeProtocol.API.Command.Name
get

◆ ParameterCount

int BrokeProtocol.API.Command.ParameterCount
get

◆ PartialParameters

ParameterInfo [] BrokeProtocol.API.Command.PartialParameters
get

◆ Permission

string BrokeProtocol.API.Command.Permission
get

◆ Target

object BrokeProtocol.API.Command.Target
get

◆ TestMethod

Func<ShPlayer, Command, bool> BrokeProtocol.API.Command.TestMethod
get

The documentation for this class was generated from the following file: