mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-17 14:26:43 +01:00
24 lines
585 B
Plaintext
24 lines
585 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2023 Citadel Station Developers *//
|
|
|
|
/**
|
|
* just the base type of object systems
|
|
*
|
|
* components are just terrible API, inefficient, and obnoxious sometimes
|
|
* /obj systems are the replacement for stuff like storage, cell slots, etc
|
|
*
|
|
* they are singletons on /obj level.
|
|
*/
|
|
/datum/object_system
|
|
abstract_type = /datum/object_system
|
|
|
|
/// owning object
|
|
var/obj/parent
|
|
|
|
/datum/object_system/New(obj/parent)
|
|
src.parent = parent
|
|
|
|
/datum/object_system/Destroy()
|
|
parent = null
|
|
return ..()
|