コード例 #1
0
 private BattleCharacter Build(BattleSide loyalty, StartingStats stats)
 {
     return(BattleCharacter.Create(loyalty,
                                   _builder.WithName(Guid.NewGuid().ToString().Substring(0, 7))
                                   .WithStats(stats)
                                   .Build()));
 }
コード例 #2
0
 public BattleSide Resolve1V1(CharacterSheet hero, CharacterSheet villain)
 {
     return(Resolve1V1(BattleCharacter.Create(BattleSide.Gamer, hero),
                       BattleCharacter.Create(BattleSide.Enemy, villain)));
 }