当前位置: 首页>>代码示例>>C#>>正文


C# GameMode.ToString方法代码示例

本文整理汇总了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());
    }
开发者ID:DieselPuppet,项目名称:DatingDash,代码行数:11,代码来源:GameplayManager.cs

示例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 );
     }
 }
开发者ID:makitsukasa,项目名称:UhoUho,代码行数:12,代码来源:SaveDataManager.cs

示例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);
            }
开发者ID:Nicholas-S-Scott,项目名称:Halo-API,代码行数:20,代码来源:Endpoints.cs

示例4: getHighScore

 public int getHighScore(GameMode gm)
 {
     return PlayerPrefs.GetInt("HighScore_"+gm.ToString(), 0);
 }
开发者ID:rvinluan,项目名称:munchmonsters,代码行数:4,代码来源:Prefs.cs

示例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;
 }
开发者ID:MartyIX,项目名称:SoTh,代码行数:6,代码来源:MainWindow.xaml.cs

示例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 ();
 }
开发者ID:valryon,项目名称:super-koikoukesse,代码行数:10,代码来源:AuthenticatedPlayer.cs

示例7: GetMostPlayedChamps

 public Task<List<ChampionStatInfo>> GetMostPlayedChamps(int accountId, GameMode mode)
 {
     return _conn.Call<List<ChampionStatInfo>>("playerStatsService", "retrieveTopPlayedChampions",
         accountId, mode.ToString());
 }
开发者ID:Bunk,项目名称:lollipop,代码行数:5,代码来源:StatsService.cs

示例8: GetAggregatedStats

 public Task<AggregatedStats> GetAggregatedStats(int accountId, GameMode mode)
 {
     return _conn.Call<AggregatedStats>("playerStatsService", "getAggregatedStats",
         accountId, mode.ToString(), GameAge.CURRENT);
 }
开发者ID:Bunk,项目名称:lollipop,代码行数:5,代码来源:StatsService.cs

示例9: GetMode

 public static string GetMode(GameMode value)
 {
     return Get("mode." + value.ToString().ToLower() + ".title");
 }
开发者ID:valryon,项目名称:super-koikoukesse,代码行数:4,代码来源:Localization.cs


注:本文中的GameMode.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。