Ejemplo n.º 1
0
 private void MakeEntityIntoDrowner(EntityConfigurator drowner)
 {
     drowner.WithComponent(new Renders('D', ConsoleColor.DarkYellow))
     .WithComponent(new IsActor(ActorType.Monster))
     .WithComponent(new HasAi(new DrownerAi()))
     .WithComponent(new KilledBy(ActorType.Witcher))
     .WithComponent(new HasName($"Drowner {drowner.Entity.Id}"))
     .WithComponent(new Talks(Logger.AddLog).RandomlySay(Talks.DrownerSpeaks, 0.01));
 }
Ejemplo n.º 2
0
 private void MakeEntityIntoTree(EntityConfigurator tree)
 {
     tree.WithComponent(new IsActor(ActorType.Tree)).WithComponent(new Renders('T', ConsoleColor.DarkGreen));
 }