Exemplo n.º 1
0
 //private List<INpcFacade> _npcFacades = new List<INpcFacade>();
 public NpcSpawner(
     NpcCollectionFactory factory,
     INpcRegistry registry
     )
 {
     _factory  = factory;
     _registry = registry;
 }
Exemplo n.º 2
0
 void Inject(
     INpcAiUseCase aiUseCase,
     INpcMoveUseCase moveUseCase,
     INpcParamUseCase paramUseCase,
     INpcRegistry registry,
     List <INpcActionUseCase> actions
     )
 {
     _aiUseCase      = aiUseCase;
     _moveUseCase    = moveUseCase;
     _paramUseCase   = paramUseCase;
     _registry       = registry;
     _actionUseCases = actions.ToDictionary(a => a.TargetPattern);
 }
Exemplo n.º 3
0
 public NpcAiUseCase(
     INpcRegistry registry
     )
 {
     _registry = registry;
 }