Yogstation 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_storage.dm

COMSIG_CONTAINS_STORAGE() - returns bool.
COMSIG_TRY_STORAGE_INSERT(obj/item/inserting, mob/user, silent, force) - returns bool
COMSIG_TRY_STORAGE_SHOW(mob/show_to, force) - returns bool.
COMSIG_TRY_STORAGE_HIDE_FROM(mob/hide_from) - returns bool
COMSIG_TRY_STORAGE_HIDE_ALLreturns bool
COMSIG_TRY_STORAGE_SET_LOCKSTATE(newstate)
COMSIG_IS_STORAGE_LOCKED() - returns bool. MUST CHECK IF STORAGE IS THERE FIRST!
COMSIG_TRY_STORAGE_TAKE_TYPE(typecache, atom/destination, amount = INFINITY, check_adjacent, force, mob/user, list/inserted) - returns bool - typecache has to be list of types.
COMSIG_TRY_STORAGE_FILL_TYPE(type, amount = INFINITY, force = FALSE) //don't fuck this up. Force will ignore max_items, and amount is normally clamped to max_items.
COMSIG_TRY_STORAGE_TAKE(obj, new_loc, force = FALSE) - returns bool
COMSIG_TRY_STORAGE_QUICK_EMPTY(loc) - returns bool - if loc is null it will dump at parent location.
COMSIG_TRY_STORAGE_RETURN_INVENTORY(list/list_to_inject_results_into, recursively_search_inside_storages = TRUE)
COMSIG_TRY_STORAGE_CAN_INSERT(obj/item/insertion_candidate, mob/user, silent) - returns bool

Define Details

COMSIG_CONTAINS_STORAGE

() - returns bool.

COMSIG_IS_STORAGE_LOCKED

() - returns bool. MUST CHECK IF STORAGE IS THERE FIRST!

COMSIG_TRY_STORAGE_CAN_INSERT

(obj/item/insertion_candidate, mob/user, silent) - returns bool

COMSIG_TRY_STORAGE_FILL_TYPE

(type, amount = INFINITY, force = FALSE) //don't fuck this up. Force will ignore max_items, and amount is normally clamped to max_items.

COMSIG_TRY_STORAGE_HIDE_ALL

returns bool

COMSIG_TRY_STORAGE_HIDE_FROM

(mob/hide_from) - returns bool

COMSIG_TRY_STORAGE_INSERT

(obj/item/inserting, mob/user, silent, force) - returns bool

COMSIG_TRY_STORAGE_QUICK_EMPTY

(loc) - returns bool - if loc is null it will dump at parent location.

COMSIG_TRY_STORAGE_RETURN_INVENTORY

(list/list_to_inject_results_into, recursively_search_inside_storages = TRUE)

COMSIG_TRY_STORAGE_SET_LOCKSTATE

(newstate)

COMSIG_TRY_STORAGE_SHOW

(mob/show_to, force) - returns bool.

COMSIG_TRY_STORAGE_TAKE

(obj, new_loc, force = FALSE) - returns bool

COMSIG_TRY_STORAGE_TAKE_TYPE

(typecache, atom/destination, amount = INFINITY, check_adjacent, force, mob/user, list/inserted) - returns bool - typecache has to be list of types.