This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local ServerStorage = game:GetService("ServerStorage") | |
local CollectionService = game:GetService("CollectionService") | |
local ClassService = require(ServerStorage.Services.Gameplay.ClassService) | |
local Constants = require(ReplicatedStorage.Gameplay.Constants) | |
local NPCSenses = {} | |
function NPCSenses.GetEnvironmentFeatureVector(npc, abilityDebounces) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-- Batched Yield-Safe Signal Implementation -- | |
-- This is a Signal class which has effectively identical behavior to a -- | |
-- normal RBXScriptSignal, with the only difference being a couple extra -- | |
-- stack frames at the bottom of the stack trace when an error is thrown. -- | |
-- This implementation caches runner coroutines, so the ability to yield in -- | |
-- the signal handlers comes at minimal extra cost over a naive signal -- | |
-- implementation that either always or never spawns a thread. -- | |
-- -- | |
-- API: -- |