C# 클래스 RTSObjectTypeExt, ES2015C

Utilities for working with the RTSObjectType enum.
파일 보기 프로젝트 열기: jgirald/ES2015C

공개 메소드들

메소드 설명
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.

메소드 상세

GetObjectName() 공개 정적인 메소드

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

GetObjectTypeFromName() 공개 정적인 메소드

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