コード例 #1
0
 public PlayerData(
     string pId,
     string name,
     uint exp,
     ushort statLev,
     ushort statStr,
     ushort statDex,
     ushort statInt,
     ushort statCon,
     ushort statAgi,
     ushort statWis,
     ushort statMov,
     List <SkillId> skills,
     List <ItemCode> items,
     List <ItemCode> equipments,
     BattleStyle battleStyle
     )
 {
     this.pId   = pId;
     this.name  = name;
     this.exp   = exp;
     this.stats = new ushort[8];
     this.stats[(int)StatType.Lev] = statLev;
     this.stats[(int)StatType.Str] = statStr;
     this.stats[(int)StatType.Dex] = statDex;
     this.stats[(int)StatType.Int] = statInt;
     this.stats[(int)StatType.Con] = statCon;
     this.stats[(int)StatType.Agi] = statAgi;
     this.stats[(int)StatType.Wis] = statWis;
     this.stats[(int)StatType.Mov] = statMov;
     this.skills      = skills;
     this.consumables = items;
     this.equipments  = equipments;
     this.battleStyle = battleStyle;
 }
コード例 #2
0
 public void UpdateFromPlayer(Player player)
 {
     this.exp         = player.exp;
     this.stats       = player.baseStats;
     this.skills      = player.skills;
     this.consumables = player.items;
     this.equipments  = player.equipments;
     this.battleStyle = player.battleStyle;
 }
コード例 #3
0
 /// <summary>
 /// Combines a sound mode flag, a battle style flag and a battle scene flag into a single byte (for an Options block).
 /// </summary>
 public static byte CombineSoundModeBattleStyleBattleScene(SoundMode soundMode, BattleStyle battleStyle, BattleScene battleScene)
 {
     return(CombineOptions((byte)soundMode, (byte)battleStyle, (byte)battleScene));
 }