コード例 #1
0
 public Character(long id, string name, string characterClass, Health health, IEnumerable <Skill> skills, IEnumerable <StatusEffect> statusEffects, int ct = 0, CastingInfo casting = null)
 {
     ID             = id;
     Name           = name;
     CharacterClass = characterClass;
     Health         = health;
     Skills         = ImmutableArray.CreateRange(skills ?? Array.Empty <Skill> ());
     StatusEffects  = ImmutableArray.CreateRange(statusEffects ?? Array.Empty <StatusEffect> ());
     CT             = ct;
     Casting        = casting;
 }
コード例 #2
0
 public Character WithCasting(CastingInfo casting)
 {
     return(new Character(ID, Name, CharacterClass, Health, Skills, StatusEffects, CT, casting));
 }