-
-
Save todorok1/e39ba30af5376b9aedda4816d0fc426c to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第26回 キャラクターの個別のステータス情報を保持するクラス
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
| using System; | |
| using System.Collections.Generic; | |
| namespace SimpleRpg | |
| { | |
| /// <summary> | |
| /// キャラクターの個別のステータス情報を保持するクラスです。 | |
| /// </summary> | |
| [Serializable] | |
| public class CharacterStatus | |
| { | |
| /// <summary> | |
| /// キャラクターのIDです。 | |
| /// </summary> | |
| public int characterId; | |
| /// <summary> | |
| /// キャラクターのレベルです。 | |
| /// </summary> | |
| public int level; | |
| /// <summary> | |
| /// キャラクターの経験値です。 | |
| /// </summary> | |
| public int exp; | |
| /// <summary> | |
| /// 現在のHPです。 | |
| /// </summary> | |
| public int currentHp; | |
| /// <summary> | |
| /// 現在のMPです。 | |
| /// </summary> | |
| public int currentMp; | |
| /// <summary> | |
| /// 装備中の武器のIDです。 | |
| /// </summary> | |
| public int equipWeaponId; | |
| /// <summary> | |
| /// 装備中の防具のIDです。 | |
| /// </summary> | |
| public int equipArmorId; | |
| /// <summary> | |
| /// 覚えた魔法のIDのリストです。 | |
| /// </summary> | |
| public List<int> magicList; | |
| /// <summary> | |
| /// キャラクターが倒されたフラグです。 | |
| /// </summary> | |
| public bool isDefeated; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment