mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-17 20:30:46 +01:00
dcdd46fb17
* Fixes these signals * unscrungles remote view
26 lines
935 B
Plaintext
26 lines
935 B
Plaintext
/*
|
|
/atom/movable/proc/recursive_move(var/atom/movable/am, var/old_loc, var/new_loc)
|
|
SEND_SIGNAL(src, COMSIG_MOVABLE_ATTEMPTED_MOVE, old_loc, new_loc)
|
|
*/
|
|
/atom/movable/proc/move_to_destination(var/atom/movable/am, var/old_loc, var/new_loc)
|
|
var/turf/T = get_turf(new_loc)
|
|
if(T && T != loc)
|
|
forceMove(T)
|
|
|
|
/atom/proc/recursive_dir_set(var/atom/a, var/old_dir, var/new_dir)
|
|
set_dir(new_dir)
|
|
|
|
/datum/proc/qdel_self()
|
|
SIGNAL_HANDLER
|
|
qdel(src)
|
|
|
|
/*
|
|
/proc/register_all_movement(var/event_source, var/datum/listener)
|
|
listener.RegisterSignal(event_source, COMSIG_MOVABLE_ATTEMPTED_MOVE, /atom/movable/proc/recursive_move)
|
|
//GLOB.dir_set_event.register(event_source, listener, /atom/proc/recursive_dir_set)
|
|
|
|
/proc/unregister_all_movement(var/event_source, var/datum/listener)
|
|
listener.UnregisterSignal(event_source, COMSIG_MOVABLE_ATTEMPTED_MOVE)
|
|
//GLOB.dir_set_event.unregister(event_source, listener, /atom/proc/recursive_dir_set)
|
|
*/
|