Falco Engine 3.9.0.1 (beta)
FalcoEngine.LayerMask Class Reference

Public Member Functions

static string LayerToName (int layer)
 Return name of the layer More...
 
static int NameToLayer (string name)
 Return layer by it's name More...
 
void Set (int layer, bool value)
 Enable or disable layer More...
 
bool Get (int layer)
 Get state of the layer More...
 
ulong ToULong ()
 Convert this layer mask to ulong More...
 
void FromULong (ulong value)
 Restore layers from ulong More...
 

Properties

static LayerMask All [get]
 Return layer mask with all layers selected More...
 

Detailed Description

Definition at line 7 of file LayerMask.cs.

Member Function Documentation

◆ FromULong()

void FalcoEngine.LayerMask.FromULong ( ulong  value)

Restore layers from ulong

Parameters
value

Definition at line 74 of file LayerMask.cs.

◆ Get()

bool FalcoEngine.LayerMask.Get ( int  layer)

Get state of the layer

Parameters
layer
Returns

Definition at line 50 of file LayerMask.cs.

◆ LayerToName()

static string FalcoEngine.LayerMask.LayerToName ( int  layer)

Return name of the layer

Parameters
layer
Returns

◆ NameToLayer()

static int FalcoEngine.LayerMask.NameToLayer ( string  name)

Return layer by it's name

Parameters
name
Returns

◆ Set()

void FalcoEngine.LayerMask.Set ( int  layer,
bool  value 
)

Enable or disable layer

Parameters
layer
value

Definition at line 39 of file LayerMask.cs.

◆ ToULong()

ulong FalcoEngine.LayerMask.ToULong ( )

Convert this layer mask to ulong

Returns

Definition at line 62 of file LayerMask.cs.

Property Documentation

◆ All

LayerMask FalcoEngine.LayerMask.All
staticget

Return layer mask with all layers selected

Definition at line 16 of file LayerMask.cs.


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