mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 03:21:30 +00:00
Singletons + refactor of /datum/observ (#15487)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/datum/submap
|
||||
var/name
|
||||
var/pref_name
|
||||
var/decl/submap_archetype/archetype
|
||||
var/singleton/submap_archetype/archetype
|
||||
var/associated_z
|
||||
|
||||
/datum/submap/New(var/existing_z)
|
||||
@@ -12,7 +12,7 @@
|
||||
SSmapping.submaps -= src
|
||||
. = ..()
|
||||
|
||||
/datum/submap/proc/setup_submap(var/decl/submap_archetype/_archetype)
|
||||
/datum/submap/proc/setup_submap(var/singleton/submap_archetype/_archetype)
|
||||
|
||||
if(!istype(_archetype))
|
||||
log_game( "Submap error - [name] - null or invalid archetype supplied ([_archetype]).")
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
/decl/submap_archetype
|
||||
/singleton/submap_archetype
|
||||
var/map
|
||||
var/descriptor = "generic ship archetype"
|
||||
|
||||
/decl/submap_archetype/Destroy()
|
||||
/singleton/submap_archetype/Destroy()
|
||||
if(SSmapping.submap_archetypes[descriptor] == src)
|
||||
SSmapping.submap_archetypes -= descriptor
|
||||
. = ..()
|
||||
|
||||
// Generic ships to populate the list.
|
||||
/decl/submap_archetype/derelict
|
||||
/singleton/submap_archetype/derelict
|
||||
descriptor = "drifting wreck"
|
||||
|
||||
/decl/submap_archetype/abandoned_ship
|
||||
/singleton/submap_archetype/abandoned_ship
|
||||
descriptor = "abandoned ship"
|
||||
|
||||
Reference in New Issue
Block a user