Пример #1
0
 public Actor Construct(ActorBuilder builder)
 {
     builder.BuildType();
     if (builder.IsGood())
     {
         builder.BuildName();
     }
     return(builder.CreateActor());
 }
Пример #2
0
 public Actor GetActor(ActorBuilder actorBuilder)
 {
     actorBuilder.BuildCostume();
     actorBuilder.BuildFace();
     actorBuilder.BuildHairstyle();
     actorBuilder.BuildSex();
     actorBuilder.BuildType();
     return(actorBuilder.GetActor());
 }