-
-
Save todorok1/39325f62a9579e182ad5a84290cf4d4e to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第115回 ゲーム内のマップ情報の定義データを管理するクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// マップIDからマップ名を取得します。 | |
| /// </summary> | |
| /// <param name="mapId">マップID</param> | |
| public static string GetMapName(int mapId) | |
| { | |
| string mapName = string.Empty; | |
| var mapDataRecord = GetMapDataRecordById(mapId); | |
| if (mapDataRecord != null) | |
| { | |
| mapName = mapDataRecord.name; | |
| } | |
| return mapName; | |
| } | |
| /// <summary> | |
| /// マップIDからマップのBGM名を取得します。 | |
| /// </summary> | |
| /// <param name="mapId">マップID</param> | |
| public static string GetMapBgmName(int mapId) | |
| { | |
| string bgmName = string.Empty; | |
| var mapDataRecord = GetMapDataRecordById(mapId); | |
| if (mapDataRecord != null) | |
| { | |
| bgmName = mapDataRecord.bgmName; | |
| } | |
| return bgmName; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment