mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-24 05:28:16 +01:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commit afbdd1d8442973f5d570c30920d9d865b5acd479. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commit de22ad375d3ee4d5930c550da2fd23a29a86e616. * Attempt to normalize example.yml (and another file I guess) * Try again
60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
/datum/topic_input
|
|
var/href
|
|
var/list/href_list
|
|
|
|
/datum/topic_input/New(thref,list/thref_list)
|
|
href = thref
|
|
href_list = thref_list.Copy()
|
|
return
|
|
|
|
/datum/topic_input/proc/get(i)
|
|
return listgetindex(href_list,i)
|
|
|
|
/datum/topic_input/proc/getAndLocate(i)
|
|
var/t = get(i)
|
|
if(t)
|
|
t = locate(t)
|
|
return t || null
|
|
|
|
/datum/topic_input/proc/getNum(i)
|
|
var/t = get(i)
|
|
if(t)
|
|
t = text2num(t)
|
|
return isnum(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getObj(i)
|
|
var/t = getAndLocate(i)
|
|
return isobj(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getMob(i)
|
|
var/t = getAndLocate(i)
|
|
return ismob(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getTurf(i)
|
|
var/t = getAndLocate(i)
|
|
return isturf(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getAtom(i)
|
|
return getType(i,/atom)
|
|
|
|
/datum/topic_input/proc/getArea(i)
|
|
var/t = getAndLocate(i)
|
|
return isarea(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getStr(i)//params should always be text, but...
|
|
var/t = get(i)
|
|
return istext(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getType(i,type)
|
|
var/t = getAndLocate(i)
|
|
return istype(t,type) ? t : null
|
|
|
|
/datum/topic_input/proc/getPath(i)
|
|
var/t = get(i)
|
|
if(t)
|
|
t = text2path(t)
|
|
return ispath(t) ? t : null
|
|
|
|
/datum/topic_input/proc/getList(i)
|
|
var/t = getAndLocate(i)
|
|
return islist(t) ? t : null |