C# Class RTSObjectTypeExt, ES2015C

Utilities for working with the RTSObjectType enum.
Exibir arquivo Open project: jgirald/ES2015C

Public Methods

Method Description
GetObjectName ( RTSObjectType objectType ) : string

Get a human-readable name for the given RTS object type.

GetObjectTypeFromName ( string objectName ) : RTSObjectType

Get the corresponding RTSObjectType from its human-readable name.

Method Details

GetObjectName() public static method

Get a human-readable name for the given RTS object type.
public static GetObjectName ( RTSObjectType objectType ) : string
objectType RTSObjectType The type of the object.
return string

GetObjectTypeFromName() public static method

Get the corresponding RTSObjectType from its human-readable name.
public static GetObjectTypeFromName ( string objectName ) : RTSObjectType
objectName string The human-readable name of the object.
return RTSObjectType