mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-20 06:07:01 +01:00
28 lines
658 B
Plaintext
28 lines
658 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2023 Citadel Station developers. *//
|
|
|
|
/datum/prototype/guidebook_section
|
|
abstract_type = /datum/prototype/guidebook_section
|
|
|
|
/// section title
|
|
var/title = "Unknown"
|
|
/// tgui guidebook module to load
|
|
var/tgui_module
|
|
|
|
/**
|
|
* data to be sent to module - static
|
|
*
|
|
* this is the only one, for now
|
|
*
|
|
* todo: add dynamic data support???
|
|
*/
|
|
/datum/prototype/guidebook_section/proc/section_data()
|
|
. = list()
|
|
|
|
/datum/prototype/guidebook_section/proc/interface_data()
|
|
return list(
|
|
"$tgui" = tgui_module,
|
|
"$src" = REF(src),
|
|
"title" = title,
|
|
) | section_data()
|