public async Task <List <EnvListItem> > Handle(EnvQuery request, CancellationToken cancellationToken) { var envs = await _solutionEnvRepository.GetBySolutionId(request.SolutionId); return(envs.Select(x => new EnvListItem() { Id = x.Id.ToString(), EnvName = x.EnvName }).ToList()); }
internal static unsafe AITask_RunEQS Invoke(AIController Controller, EnvQuery QueryTemplate) { long *p = stackalloc long[] { 0L, 0L, 0L, 0L }; byte *b = (byte *)p; *((IntPtr *)(b + 0)) = Controller; *((IntPtr *)(b + 8)) = QueryTemplate; Main.GetProcessEvent(AITask_RunEQS.DefaultObject, RunEQS_ptr, new IntPtr(p));; return(*((IntPtr *)(b + 16))); } }
void Start() { agent = GetComponent <NavMeshAgent>(); query = GetComponent <EnvQuery>(); animator = GetComponent <Animator>(); audioSourceFootStep = GetComponent <AudioSource>(); audioSourceVoice = VoiceObject.GetComponent <AudioSource>(); agent.updatePosition = false; agent.updateRotation = true; NPCStateStep.SetNext(NPCState.Wait); }
internal static unsafe EnvQueryInstanceBlueprintWrapper Invoke(UObject WorldContextObject, EnvQuery QueryTemplate, UObject Querier, byte RunMode, SubclassOf <EnvQueryInstanceBlueprintWrapper> WrapperClass) { long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L }; byte *b = (byte *)p; *((IntPtr *)(b + 0)) = WorldContextObject; *((IntPtr *)(b + 8)) = QueryTemplate; *((IntPtr *)(b + 16)) = Querier; *(b + 24) = RunMode; *((IntPtr *)(b + 32)) = WrapperClass; Main.GetProcessEvent(EnvQueryManager.DefaultObject, RunEQSQuery_ptr, new IntPtr(p));; return(*((IntPtr *)(b + 40))); } }
void Start() { agent = GetComponent <NavMeshAgent>(); query = GetComponent <EnvQuery>(); }