mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
Telecomms Refactor & CodeMirror
This commit does the following:
- A lot of shit I am really too tired to fucking write about
- Absolute pathed telecomms scripting
- Browser Datum traffic control
- Absolutely lovely replacement for the fucking skin TCS window, using
codemirror
- CodeMirror integration for nanoUI
- Sorta, I didn't work on this as much as I wanted to, because IT TOOK
11 FUCKING HOURS TO GET THE BROWSER DATUM TO WORK
This commit is contained in:
@@ -1,23 +1,26 @@
|
||||
/stack
|
||||
var/list
|
||||
contents=new
|
||||
proc
|
||||
Push(value)
|
||||
contents+=value
|
||||
/datum/stack
|
||||
var/list/contents = list()
|
||||
|
||||
Pop()
|
||||
if(!contents.len) return null
|
||||
. = contents[contents.len]
|
||||
contents.len--
|
||||
/datum/stack/proc/Push(value)
|
||||
contents += value
|
||||
|
||||
Top() //returns the item on the top of the stack without removing it
|
||||
if(!contents.len) return null
|
||||
return contents[contents.len]
|
||||
/datum/stack/proc/Pop()
|
||||
if(!contents.len)
|
||||
return null
|
||||
|
||||
Copy()
|
||||
var/stack/S=new()
|
||||
S.contents=src.contents.Copy()
|
||||
return S
|
||||
. = contents[contents.len]
|
||||
contents.len--
|
||||
|
||||
Clear()
|
||||
contents.Cut()
|
||||
/datum/stack/proc/Top() //returns the item on the top of the stack without removing it
|
||||
if(!contents.len)
|
||||
return null
|
||||
|
||||
return contents[contents.len]
|
||||
|
||||
/datum/stack/proc/Copy()
|
||||
var/datum/stack/S = new()
|
||||
S.contents = src.contents.Copy()
|
||||
return S
|
||||
|
||||
/datum/stack/proc/Clear()
|
||||
contents.Cut()
|
||||
Reference in New Issue
Block a user