Show / Hide Table of Contents

    Class CipGrammar

    Static class that contains common grammar used to parse CipSoft files.

    Inheritance
    System.Object
    CipGrammar
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Parsing.CipFiles
    Assembly: Fibula.Parsing.CipFiles.dll
    Syntax
    public static class CipGrammar
    Remarks

    NOTE: Members of this class must remain public in order for it to work correctly, because Sprache.

    Fields

    | Improve this Doc View Source

    ActionFunction

    Parses action functions.

    Declaration
    public static readonly Parser<ActionFunction> ActionFunction
    Field Value
    Type Description
    Sprache.Parser<ActionFunction>
    | Improve this Doc View Source

    Actions

    Parses a collection of action functions.

    Declaration
    public static readonly Parser<IEnumerable<string>> Actions
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.String>>
    | Improve this Doc View Source

    Argument

    Parses a function arguments that are only text and numbers.

    Declaration
    public static readonly Parser<string> Argument
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    Arguments

    Parses multiple arguments.

    Declaration
    public static readonly Parser<IEnumerable<string>> Arguments
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.String>>
    | Improve this Doc View Source

    Backslash

    The backslash character.

    Declaration
    public static readonly Parser<char> Backslash
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    BracketedTupleArgument

    Parses a bracket tuple argument in the form: [val0, val1, .. valN].

    Declaration
    public static readonly Parser<string> BracketedTupleArgument
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    CloseBracket

    The close bracket character.

    Declaration
    public static readonly Parser<char> CloseBracket
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    CloseCurly

    The close curly brace character.

    Declaration
    public static readonly Parser<char> CloseCurly
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    CloseParenthesis

    The close parenthesis character.

    Declaration
    public static readonly Parser<char> CloseParenthesis
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    Colon

    The colon character.

    Declaration
    public static readonly Parser<char> Colon
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    Comma

    The comma character.

    Declaration
    public static readonly Parser<char> Comma
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    ComparisonFunction

    Parses comparison functions.

    Declaration
    public static readonly Parser<ComparisonFunction> ComparisonFunction
    Field Value
    Type Description
    Sprache.Parser<ComparisonFunction>
    | Improve this Doc View Source

    Conditions

    Parses a collection of condition functions.

    Declaration
    public static readonly Parser<IEnumerable<string>> Conditions
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.String>>
    | Improve this Doc View Source

    ConditionsActionsSeparator

    The separator between a rule's conditions and actions.

    Declaration
    public static readonly Parser<IEnumerable<char>> ConditionsActionsSeparator
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.Char>>
    | Improve this Doc View Source

    CreaturePhrases

    Parses a creature phrases in the form { "phrase0", "phrase1", .. "phraseN" }.

    Declaration
    public static readonly Parser<IEnumerable<string>> CreaturePhrases
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.String>>
    | Improve this Doc View Source

    Dash

    The dash character.

    Declaration
    public static readonly Parser<char> Dash
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    DoubleQuote

    The double quote character.

    Declaration
    public static readonly Parser<char> DoubleQuote
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    EqualSign

    The equals sign character.

    Declaration
    public static readonly Parser<char> EqualSign
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    EqualToComparison

    The 'equals' comparison.

    Declaration
    public static readonly Parser<string> EqualToComparison
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    Escaped

    An escaped character, preceded by '&apos;.

    Declaration
    public static readonly Parser<char> Escaped
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    FunctionOrComparisonString

    Parses a function in the form: Func(arg0, arg1, ..., argN).

    Declaration
    public static readonly Parser<string> FunctionOrComparisonString
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    GreaterThanComparison

    The 'greater than' comparison.

    Declaration
    public static readonly Parser<string> GreaterThanComparison
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    GreaterThanOrEqualToComparison

    The 'greater than or equal' comparison.

    Declaration
    public static readonly Parser<string> GreaterThanOrEqualToComparison
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    KeyValStr

    Parses a Key/Value pair in the form: key=value.

    Declaration
    public static readonly Parser<string> KeyValStr
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    LessThanComparison

    The 'less than' comparison.

    Declaration
    public static readonly Parser<string> LessThanComparison
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    LessThanOrEqualToComparison

    The 'less than or equal' comparison.

    Declaration
    public static readonly Parser<string> LessThanOrEqualToComparison
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    LocationString

    Parses a location string, in the form [x, y, z].

    Declaration
    public static readonly Parser<string> LocationString
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    MonsterInventory

    Parses a monster inventory.

    Declaration
    public static readonly Parser<IEnumerable<(ushort, byte, ushort)>> MonsterInventory
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.ValueTuple<System.UInt16, System.Byte, System.UInt16>>>
    | Improve this Doc View Source

    MonsterInventoryEntry

    Parses monster inventory entries.

    Declaration
    public static readonly Parser<(ushort, byte, ushort)> MonsterInventoryEntry
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.UInt16, System.Byte, System.UInt16>>
    | Improve this Doc View Source

    MonsterOutfit

    Parses a monster outfit.

    Declaration
    public static readonly Parser<(ushort lookTypeId, byte headColor, byte bodyColor, byte legsColor, byte feetColor)> MonsterOutfit
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.UInt16, System.Byte, System.Byte, System.Byte, System.Byte>>
    | Improve this Doc View Source

    MonsterSkillEntry

    Parses monster skill entries, in the form (skillName, currentLevel, minimumLevel, maximumLevel, currentCount, countForNextLevel, addOnLevel).

    Declaration
    public static readonly Parser<(string, int, int, int, uint, uint, byte)> MonsterSkillEntry
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.String, System.Int32, System.Int32, System.Int32, System.UInt32, System.UInt32, System.Byte>>
    | Improve this Doc View Source

    MonsterSkills

    Parses a monster's skills.

    Declaration
    public static readonly Parser<IEnumerable<(string, int, int, int, uint, uint, byte)>> MonsterSkills
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.Int32, System.Int32, System.Int32, System.UInt32, System.UInt32, System.Byte>>>
    | Improve this Doc View Source

    MonsterSpellRule

    Parses monster spells.

    Declaration
    public static readonly Parser<(IEnumerable<string> conditions, IEnumerable<string> effects, string chance)> MonsterSpellRule
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.Collections.Generic.IEnumerable<System.String>, System.Collections.Generic.IEnumerable<System.String>, System.String>>
    | Improve this Doc View Source

    MonsterSpellRules

    Parses monster spells.

    Declaration
    public static readonly Parser<IEnumerable<(IEnumerable<string> conditions, IEnumerable<string> effects, string chance)>> MonsterSpellRules
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.ValueTuple<System.Collections.Generic.IEnumerable<System.String>, System.Collections.Generic.IEnumerable<System.String>, System.String>>>
    | Improve this Doc View Source

    MonsterStrategy

    Parses a monster strategy.

    Declaration
    public static readonly Parser<(byte closest, byte lowestHp, byte mostDamage, byte random)> MonsterStrategy
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.Byte, System.Byte, System.Byte, System.Byte>>
    | Improve this Doc View Source

    OneOrMoreArguments

    Parses a multiple arguments separated by a comma: val0, val1, .. valN.

    Declaration
    public static readonly Parser<IEnumerable<string>> OneOrMoreArguments
    Field Value
    Type Description
    Sprache.Parser<System.Collections.Generic.IEnumerable<System.String>>
    | Improve this Doc View Source

    OpenBracket

    The open bracket character.

    Declaration
    public static readonly Parser<char> OpenBracket
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    OpenCurly

    The open curly brace character.

    Declaration
    public static readonly Parser<char> OpenCurly
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    OpenParenthesis

    The open parenthesis character.

    Declaration
    public static readonly Parser<char> OpenParenthesis
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    Outfit

    The outfit lookType for the normal outfit.

    Declaration
    public static readonly Parser<(ushort lookTypeId, byte headColor, byte bodyColor, byte legsColor, byte feetColor)> Outfit
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.UInt16, System.Byte, System.Byte, System.Byte, System.Byte>>
    | Improve this Doc View Source

    OutfitInvisible

    The outfit lookType for the invisible outfit.

    Declaration
    public static readonly Parser<(ushort lookTypeId, byte headColor, byte bodyColor, byte legsColor, byte feetColor)> OutfitInvisible
    Field Value
    Type Description
    Sprache.Parser<System.ValueTuple<System.UInt16, System.Byte, System.Byte, System.Byte, System.Byte>>
    | Improve this Doc View Source

    ParenthesizedTupleArgument

    Parses a parenthesis tuple argument in the form: (val0, val1, .. valN).

    Declaration
    public static readonly Parser<string> ParenthesizedTupleArgument
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    Quoted

    Any character except for double quotes.

    Declaration
    public static readonly Parser<char> Quoted
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    | Improve this Doc View Source

    QuotedMessage

    A message enclosed in double quotes.

    Declaration
    public static readonly Parser<string> QuotedMessage
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    Text

    Any text, except for special characters.

    Declaration
    public static readonly Parser<string> Text
    Field Value
    Type Description
    Sprache.Parser<System.String>
    | Improve this Doc View Source

    Zero

    The zero character.

    Declaration
    public static readonly Parser<char> Zero
    Field Value
    Type Description
    Sprache.Parser<System.Char>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.