mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 07:54:14 +00:00
Several months worth of updates. --------- Co-authored-by: A miscellaneous Fern <80640114+FernandoJ8@users.noreply.github.com> Co-authored-by: Pepsilawn <reisenrui@gmail.com> Co-authored-by: Ray <64306407+OneAsianTortoise@users.noreply.github.com> Co-authored-by: Cure221 <106662180+Cure221@users.noreply.github.com>
10 lines
642 B
Plaintext
10 lines
642 B
Plaintext
/// Checks if the given target is either a client or a mock client
|
|
#define IS_CLIENT_OR_MOCK(target) (istype(target, /client) || istype(target, /datum/client_interface))
|
|
|
|
/// Checks to see if a /client has fully gone through New() as a safeguard against certain operations.
|
|
/// Should return the boolean value of the fully_created var, which should be TRUE if New() has finished running. FALSE otherwise.
|
|
#define VALIDATE_CLIENT_INITIALIZATION(target) (target.fully_created)
|
|
|
|
/// Aghosting AND APPERANTLY STEALTHMINNING sets your ckey/key == "@[old_key]" because it hates me. this detects that
|
|
#define IS_FAKE_KEY(key) (key && key[1] == "@")
|