Show / Hide Table of Contents

Class CommandParser

Parse a command from LoliScript code.

Inheritance
System.Object
CommandParser
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.LS
Assembly: RuriLib.dll
Syntax
public class CommandParser

Methods

| Improve this Doc View Source

IsCommand(String)

Tests if a line is parsable as a command.

Declaration
public static bool IsCommand(string line)
Parameters
Type Name Description
System.String line

The data line to test

Returns
Type Description
System.Boolean

Whether the line contains a command or not

| Improve this Doc View Source

Parse(String, BotData)

Gets a command Action from a command line.

Declaration
public static Action Parse(string line, BotData data)
Parameters
Type Name Description
System.String line

The command line

BotData data

The BotData needed for variable replacement

Returns
Type Description
System.Action

The Action that needs to be executed

  • Improve this Doc
  • View Source
Back to top Generated by DocFX