本文整理汇总了C#中GameMode.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# GameMode.ToString方法的具体用法?C# GameMode.ToString怎么用?C# GameMode.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameMode
的用法示例。
在下文中一共展示了GameMode.ToString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: startGame
public void startGame(GameMode gmode, string levelName = "TestLevel")
{
_currentGameMode = gmode;
_currentLevel = LevelBuilder.instance.buildLevel("Cafe", "Level1", GameMode.COMPANY);
_isPaused = false;
_isStarted = true;
Logger.message(LogLevel.LOG_INFO, "GameplayManager.startGame(). Current game mode = "+_currentGameMode.ToString());
}
示例2: GetHighScore
public static int GetHighScore( GameMode mode )
{
string str = "HighScore" + mode.ToString();
if( mode == GameMode.Chars )
{
return PlayerPrefs.GetInt( str ,999999999 );
}
else
{
return PlayerPrefs.GetInt( str );
}
}
示例3: GetMatchesForPlayer
public static Uri GetMatchesForPlayer(string gamertag, GameMode gamemode = GameMode.All, int start = 0, int count = 25)
{
var values = new NameValueCollection();
if (gamemode != GameMode.All)
{
values.Add("modes", gamemode.ToString().ToLower());
}
if (start > 0)
{
values.Add("start", start.ToString());
}
if (count > 0 && count < 25 )
{
values.Add("count",count.ToString());
}
string baseUrl = string.Format("{0}/{1}/{2}/players/{3}/matches?",MajorPrefix,MinorPrefix,Title,gamertag);
return values.BuildUri(baseUrl);
}
示例4: getHighScore
public int getHighScore(GameMode gm)
{
return PlayerPrefs.GetInt("HighScore_"+gm.ToString(), 0);
}
示例5:
IGameMatch IQuestHandler.QuestSelected(int leaguesID, int roundsID, Sokoban.Model.GameDesk.IQuest quest, GameMode gameMode)
{
Debug.WriteLine("Selected game mode: " + gameMode.ToString());
Debug.WriteLine(quest.WholeQuestXml);
return null;
}
示例6: GetLeaderboardId
/// <summary>
/// Get the leaderbord name
/// </summary>
/// <returns>The leaderboard identifier.</returns>
/// <param name="mode">Mode.</param>
/// <param name="difficulty">Difficulty.</param>
public virtual string GetLeaderboardId(GameMode mode, GameDifficulty difficulty)
{
return (mode.ToString () + difficulty.ToString ()).ToLower ();
}
示例7: GetMostPlayedChamps
public Task<List<ChampionStatInfo>> GetMostPlayedChamps(int accountId, GameMode mode)
{
return _conn.Call<List<ChampionStatInfo>>("playerStatsService", "retrieveTopPlayedChampions",
accountId, mode.ToString());
}
示例8: GetAggregatedStats
public Task<AggregatedStats> GetAggregatedStats(int accountId, GameMode mode)
{
return _conn.Call<AggregatedStats>("playerStatsService", "getAggregatedStats",
accountId, mode.ToString(), GameAge.CURRENT);
}
示例9: GetMode
public static string GetMode(GameMode value)
{
return Get("mode." + value.ToString().ToLower() + ".title");
}