This file contains 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
export class Promise | |
new: (func) => | |
@func = func | |
start: () => | |
baseCoroutine = coroutine.running! | |
startFunc = () -> | |
resolve = (...) -> | |
coroutine.resume(baseCoroutine, ...) |
This file contains 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
interface Cell { | |
N?: boolean; | |
S?: boolean; | |
E?: boolean; | |
W?: boolean; | |
} | |
class Maze { |
This file contains 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 PANEL = {} | |
function PANEL:Init() | |
self.Icons = {} | |
self.IconMaterials = {} | |
end | |
function PANEL:SetText(value) | |
-- add some space for the icon | |
-- this is really not rigorous |