C# Class RTSObjectTypeExt, ES2015C

Utilities for working with the RTSObjectType enum.
Afficher le fichier Open project: jgirald/ES2015C

Méthodes publiques

Méthode 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 méthode

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

GetObjectTypeFromName() public static méthode

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