mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-07-27 01:40:43 +01:00
4ab234f10c
tl;dr level collections that can easily be logically restructured/moved as necessary will eventually be used for radio and overmaps location resolution. this is the last part of https://github.com/Citadel-Station-13/Citadel-Station-13-RP/pull/4841 that has not yet been integrated. this will be a draft for a while. --------- Co-authored-by: LetterN <24603524+LetterN@users.noreply.github.com>
25 lines
554 B
Plaintext
25 lines
554 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2024 Citadel Station Developers *//
|
|
|
|
/**
|
|
* Attributes must either be text or numbers.
|
|
*/
|
|
/datum/map_level_attribute
|
|
/// our enum
|
|
var/id
|
|
/// description
|
|
var/desc = "Some kind of attribute."
|
|
/// allow admin editing
|
|
var/allow_edit = FALSE
|
|
/// numeric?
|
|
var/numeric = FALSE
|
|
|
|
/datum/map_level_attribute/proc/ui_serialize()
|
|
return list(
|
|
"id" = initial(id),
|
|
"desc" = initial(desc),
|
|
"allowEdit" = initial(allow_edit),
|
|
"numeric" = initial(numeric),
|
|
)
|
|
|