Files
Bubberstation/code/modules/requests/request.dm
SkyratBot 596709b5ef [MIRROR] Add a few networks to fax, which send papers to request manager, and staff can answer on them from fax panel. [MDB IGNORE] (#17623)
* Add a few networks to fax, which send papers to request manager, and staff can answer on them from fax panel.

* merge conflict

Co-authored-by: Yaroslav Nurkov <78199449+AnywayFarus@users.noreply.github.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
2022-11-22 17:21:24 -05:00

38 lines
1.0 KiB
Plaintext

/**
* # Request
*
* A representation of an in-game request, such as a prayer.
*/
/datum/request
/// Unique ID of the request
var/id
/// Atomic ID for increment unique request IDs
var/static/atomic_id = 0
/// The type of request
var/req_type
/// The owner of the request, the player who created it
var/client/owner
/// The ckey of the owner, used for re-binding variables on login
var/owner_ckey
/// The name of the owner, in format <key>/<name>, assigned at time of request creation
var/owner_name
/// The message associated with the request
var/message
/// Just any information, which you can to send with request. For example paper datum.
var/additional_information
/// When the request was created
var/timestamp
/datum/request/New(client/requestee, type, request, additional_info)
if (!requestee)
qdel(src)
return
id = ++atomic_id
owner = requestee
owner_ckey = owner.ckey
req_type = type
message = request
additional_information = additional_info
timestamp = world.time
owner_name = key_name(requestee, FALSE)