C# Class TagTool.Layouts.EnumLayout

A layout for an enum in a tag layout.
Show file Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
Add ( string name ) : EnumValue

Adds a value to the enum which follows the last value added. If no values are in the enum, its value will be 0.

Add ( string name, int val ) : EnumValue

Adds a value to the enum.

Add ( EnumValue val ) : void

Adds a value to the enum.

AddRange ( IEnumerable values ) : void

Adds a range of values to the enum.

EnumLayout ( string name, BasicFieldType underlyingType ) : System

Creates a named enum layout.

Method Details

Add() public method

Adds a value to the enum which follows the last value added. If no values are in the enum, its value will be 0.
public Add ( string name ) : EnumValue
name string The name of the value.
return EnumValue

Add() public method

Adds a value to the enum.
public Add ( string name, int val ) : EnumValue
name string The name of the value.
val int The value.
return EnumValue

Add() public method

Adds a value to the enum.
public Add ( EnumValue val ) : void
val EnumValue The value.
return void

AddRange() public method

Adds a range of values to the enum.
public AddRange ( IEnumerable values ) : void
values IEnumerable The values to add.
return void

EnumLayout() public method

Creates a named enum layout.
public EnumLayout ( string name, BasicFieldType underlyingType ) : System
name string The name of the layout.
underlyingType BasicFieldType The underlying type of the enum. Must be an integer type.
return System