-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathsignals_storage.dm
18 lines (17 loc) · 1.73 KB
/
signals_storage.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Format:
// When the signal is called: (signal arguments)
// All signals send the source datum of the signal as the first argument
// /datum/component/storage signals
#define COMSIG_CONTAINS_STORAGE "is_storage" //! () - returns bool.
#define COMSIG_TRY_STORAGE_INSERT "storage_try_insert" //! (obj/item/inserting, mob/user, silent, force) - returns bool
#define COMSIG_TRY_STORAGE_SHOW "storage_show_to" //! (mob/show_to, force) - returns bool.
#define COMSIG_TRY_STORAGE_HIDE_FROM "storage_hide_from" //! (mob/hide_from) - returns bool
#define COMSIG_TRY_STORAGE_HIDE_ALL "storage_hide_all" //! returns bool
#define COMSIG_TRY_STORAGE_SET_LOCKSTATE "storage_lock_set_state" //! (newstate)
#define COMSIG_IS_STORAGE_LOCKED "storage_get_lockstate" //! () - returns bool. MUST CHECK IF STORAGE IS THERE FIRST!
#define COMSIG_TRY_STORAGE_TAKE_TYPE "storage_take_type" //! (typecache, atom/destination, amount = INFINITY, check_adjacent, force, mob/user, list/inserted) - returns bool - typecache has to be list of types.
#define COMSIG_TRY_STORAGE_FILL_TYPE "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.
#define COMSIG_TRY_STORAGE_TAKE "storage_take_obj" //! (obj, new_loc, force = FALSE) - returns bool
#define COMSIG_TRY_STORAGE_QUICK_EMPTY "storage_quick_empty" //! (loc) - returns bool - if loc is null it will dump at parent location.
#define COMSIG_TRY_STORAGE_RETURN_INVENTORY "storage_return_inventory" //! (list/list_to_inject_results_into, recursively_search_inside_storages = TRUE)
#define COMSIG_TRY_STORAGE_CAN_INSERT "storage_can_equip" //! (obj/item/insertion_candidate, mob/user, silent) - returns bool