Files
fulpstation/code/__DEFINES/procpath.dm
Bilbo367 a6070faf3a TGU - 3/14/2024 (#1154)
* TGU - 3/14/2024

* a

* nanite source fix

* Fixes Cargo

* Fix polling mutating its target's plane and layer

* Fixing cargo 2

---------

Co-authored-by: JohnFulpWillard <53777086+JohnFulpWillard@users.noreply.github.com>
2024-03-20 09:12:21 -07:00

27 lines
1.2 KiB
Plaintext

/// Represents a proc or verb path.
///
/// Despite having no DM-defined static type, proc paths have some variables,
/// listed below. These are not modifiable, but for a given procpath P,
/// `new P(null, "Name", "Desc")` can be used to create a new procpath with the
/// same code but new `name` and `desc` values. The other variables cannot be
/// changed in this way.
///
/// This type exists only to act as an annotation, providing reasonable static
/// typing for procpaths. Previously, types like `/atom/verb` were used, with
/// the `name` and `desc` vars of `/atom` thus being accessible. Proc and verb
/// paths will fail `istype` and `ispath` checks against `/procpath`.
/procpath
// Although these variables are effectively const, if they are marked const
// below, their accesses are optimized away.
/// A text string of the verb's name.
var/name = null as text|null
/// The verb's help text or description.
var/desc = null as text|null
/// The category or tab the verb will appear in.
var/category = null as text|null
/// Only clients/mobs with `see_invisibility` higher can use the verb.
var/invisibility = null as num|null
/// Whether or not the verb appears in statpanel and commandbar when you press space
var/hidden = null as num|null