/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/game/objects/items/devices/remote/remote.dm
32 строки
988 B
ComicIronic
Moves w_class to defines. (#10051)
15 май 2016, 03:37
15 май 2016, 03:37
24e1c26
Код
Авторство
О чём код?
//Example of implementation of the remote datum //Nothing is special about these remotes - they just show how you can use the controller /obj/item/device/remote name = "remote control" desc = "A remote that uses high-frequency radiation to communicate with connected devices. The label reads \"Do not hold up to face!\"." w_class = W_CLASS_SMALL icon = 'icons/obj/remote.dmi' icon_state = "" var/datum/context_click/remote_control/controller /obj/item/device/remote/examine(mob/user) ..() if(controller) for(var/button_id in controller.buttons) var/obj/item/button = controller.get_button_by_id(button_id) if(button) to_chat(user, "[bicon(button)] It has \a [button] attached.") /obj/item/device/remote/attack_self(mob/user, params) if(controller) if(controller.action(null, user, params)) return 1 return ..() /obj/item/device/remote/attackby(obj/item/I, mob/user, params) if(controller) if(controller.action(I, user, params)) return 1 return ..()