Port sound player and sound tokens from Bay (#15554)

This commit is contained in:
Fluffy
2023-01-21 13:26:46 +01:00
committed by GitHub
parent 4236c43404
commit b2f0e691f8
9 changed files with 440 additions and 64 deletions
-23
View File
@@ -1,23 +0,0 @@
/stack
var/list
contents=new
proc
Push(value)
contents+=value
Pop()
if(!contents.len) return null
. = contents[contents.len]
contents.len--
Top() //returns the item on the top of the stack without removing it
if(!contents.len) return null
return contents[contents.len]
Copy()
var/stack/S=new()
S.contents=src.contents.Copy()
return S
Clear()
contents.Cut()