C# Class GameModeManager, GameProject

Inheritance: MonoBehaviour
显示文件 Open project: EECS390IndieTeam/GameProject Class Usage Examples

Public Properties

Property Type Description
GameModeNames string[]
GameModes IGameMode[]

Public Methods

Method Description
GetGameModeFromClassName ( string gameModeClassName ) : IGameMode

returns the IGameMode instance that has the given class name

GetHumanReadableNameForMap ( string mapClassName ) : string

returns the human-readable alias for the given map. if no alias has been defined, it just returns the map class name

GetSupportedGameModesForMap ( string mapClassName ) : IEnumerable

returns a list of the IGameMode instances that support the given map

GetSupportedMapsForGameMode ( IGameMode gameMode ) : IEnumerable

returns a list of the class names of all maps that support the given game mode

GetSupportedMapsForGameMode ( string gameModeClassName ) : IEnumerable

returns a list of the class names of all maps that support the given game mode

Private Methods

Method Description
BuildMapNameMap ( ) : void

Builds the mapNameMap with the values and stuff...

GameModeManager ( ) : System

Method Details

GetGameModeFromClassName() public static method

returns the IGameMode instance that has the given class name
public static GetGameModeFromClassName ( string gameModeClassName ) : IGameMode
gameModeClassName string
return IGameMode

GetHumanReadableNameForMap() public static method

returns the human-readable alias for the given map. if no alias has been defined, it just returns the map class name
public static GetHumanReadableNameForMap ( string mapClassName ) : string
mapClassName string
return string

GetSupportedGameModesForMap() public static method

returns a list of the IGameMode instances that support the given map
public static GetSupportedGameModesForMap ( string mapClassName ) : IEnumerable
mapClassName string
return IEnumerable

GetSupportedMapsForGameMode() public static method

returns a list of the class names of all maps that support the given game mode
public static GetSupportedMapsForGameMode ( IGameMode gameMode ) : IEnumerable
gameMode IGameMode
return IEnumerable

GetSupportedMapsForGameMode() public static method

returns a list of the class names of all maps that support the given game mode
public static GetSupportedMapsForGameMode ( string gameModeClassName ) : IEnumerable
gameModeClassName string
return IEnumerable

Property Details

GameModeNames public_oe static_oe property

public static string[] GameModeNames
return string[]

GameModes public_oe static_oe property

public static IGameMode[] GameModes
return IGameMode[]