Integrated circuit fixes and code improvements
This commit is contained in:
committed by
CitadelStationBot
parent
065a816183
commit
8a64287249
@@ -24,12 +24,18 @@ D [1]/ ||
|
||||
var/datum/weakref/data // This is a weakref, to reduce typecasts. Note that oftentimes numbers and text may also occupy this.
|
||||
var/list/linked = list()
|
||||
var/io_type = DATA_CHANNEL
|
||||
var/pin_type // IC_INPUT, IC_OUTPUT, IC_ACTIVATOR - used in saving assembly wiring
|
||||
|
||||
|
||||
/datum/integrated_io/New(loc, _name, _data, _pin_type)
|
||||
name = _name
|
||||
if(_data)
|
||||
data = _data
|
||||
if(_pin_type)
|
||||
pin_type = _pin_type
|
||||
|
||||
holder = loc
|
||||
|
||||
/datum/integrated_io/New(newloc, name1, new_data)
|
||||
name = name1
|
||||
if(new_data)
|
||||
data = new_data
|
||||
holder = newloc
|
||||
if(!istype(holder))
|
||||
message_admins("ERROR: An integrated_io ([name]) spawned without a valid holder! This is a bug.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user