C# Class MBC.Shared.Attributes.CapabilitiesAttribute

Provides information about the various GameModes that a Controller has been designed for. Causes a Controller to be loaded only in the given GameModes.
Inheritance: ControllerAttribute
ファイルを表示 Open project: aiclub/Mohawk_Battleship Class Usage Examples

Public Methods

Method Description
CapabilitiesAttribute ( ) : System

Sets the GameModes compatible to the modes provided.

CompatibleWith ( GameMode mode ) : bool

Checks if the Controller is compatible with the mode

Method Details

CapabilitiesAttribute() public method

Sets the GameModes compatible to the modes provided.
public CapabilitiesAttribute ( ) : System
return System

CompatibleWith() public method

Checks if the Controller is compatible with the mode
public CompatibleWith ( GameMode mode ) : bool
mode GameMode The to check.
return bool