fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.Drawing.BrushManager Class Reference

Indexes available brushes. Provides /Brush command, a way to register new brushes, a way to look up existing brushes by name. More...

Static Public Member Functions

static void RegisterBrush ([NotNull] IBrushFactory factory)
 Registers a new brush.
 
static IBrushFactory GetBrushFactory ([NotNull] string brushName)
 Finds IBrushFactory for given brush name or alias. Case-insensitive. Does not autocomplete names.
 

Properties

static IBrushFactory[] RegisteredFactories [get]
 Provides a list of all registered IBrushFactories.
 

Detailed Description

Indexes available brushes. Provides /Brush command, a way to register new brushes, a way to look up existing brushes by name.

Member Function Documentation

static IBrushFactory fCraft.Drawing.BrushManager.GetBrushFactory ( [NotNull] string  brushName)
static

Finds IBrushFactory for given brush name or alias. Case-insensitive. Does not autocomplete names.

Parameters
brushNameBrush name.
Returns
IBrushFactory if brush was found; otherwise null.
Exceptions
ArgumentNullExceptionbrushName is null.
static void fCraft.Drawing.BrushManager.RegisterBrush ( [NotNull] IBrushFactory  factory)
static

Registers a new brush.

Parameters
factoryIBrushFactory that will be used to create new instances of the brush.
Exceptions
ArgumentNullExceptionfactory is null.
ArgumentExceptionbrush with the same name or alias already exists.

Property Documentation

IBrushFactory [] fCraft.Drawing.BrushManager.RegisteredFactories
staticget

Provides a list of all registered IBrushFactories.


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