コード例 #1
0
 public Race(IRacePartFactory racePartFactory)
 {
     Head    = racePartFactory.CreateHead();
     Skin    = racePartFactory.CreateSkin();
     Stature = racePartFactory.CreateStature();
 }
コード例 #2
0
 public Race(IRacePartsFactory raceFactory)
 {
     this.Head    = raceFactory.CreateHead();
     this.Stature = raceFactory.CreateStature();
     this.Skin    = raceFactory.CreateSkin();
 }