Persistence code refactoring (#22044)

# Summary

This PR refactores code and structure of the current persistence
subsystem, in preparation for Persistency: Circles, Squares and
Triangles.

This should not contain any user facing changes.

~~This PR is based of branch #21925 and **needs** to be merged in order.
The files changed display will be meaningless until then.~~ *Done.*

## Changes

- Split subsystem in partial files.
- Refactored proc names, added "persistentObject" format for current
code.
- Renamed SQL table.
- Refactored logging and call hiearachy.
- Fix CI labeler adding DB label on non-SQL files.
This commit is contained in:
FabianK3
2026-03-24 19:53:37 +01:00
committed by GitHub
parent fd1c4ead05
commit aff736cda2
20 changed files with 425 additions and 353 deletions
+2 -2
View File
@@ -293,7 +293,7 @@
icon_state = "folded_wall-torn"
persistency_considered_trash = TRUE
/obj/item/inflatable/torn/persistence_apply_content(content, x, y, z)
/obj/item/inflatable/torn/persistent_objects_apply_content(content, x, y, z)
src.x = x
src.y = y
src.z = z
@@ -308,7 +308,7 @@
icon_state = "folded_door-torn"
persistency_considered_trash = TRUE
/obj/item/inflatable/door/torn/persistence_apply_content(content, x, y, z)
/obj/item/inflatable/door/torn/persistent_objects_apply_content(content, x, y, z)
src.x = x
src.y = y
src.z = z
+2 -2
View File
@@ -36,7 +36,7 @@
user.drop_from_inventory(attacking_item, src)
notices++
update_icon()
SSpersistence.register_track(attacking_item, ckey(usr.key)) // Add paper to persistent tracker
SSpersistence.objectsRegisterTrack(attacking_item, ckey(usr.key)) // Add paper to persistent tracker
to_chat(user, SPAN_NOTICE("You pin the paper to the noticeboard."))
else
to_chat(user, SPAN_NOTICE("\The [src] is already full of papers and can not fit another."))
@@ -71,7 +71,7 @@
add_fingerprint(usr)
notices--
update_icon()
SSpersistence.deregister_track(P) // Remove paper from persistent tracker
SSpersistence.objectsDeregisterTrack(P) // Remove paper from persistent tracker
if(href_list["write"])
if((usr.stat || usr.restrained())) //For when a player is handcuffed while they have the notice window open
return