Files
CC-Tweaked/projects
Jonathan Coates 9e288d3ccb Remove UpgradeData from the public API
I want to decouple the storage of upgrades (e.g. in data components) from
what people consume in the public API. This removes UpgradeData from
the API, pushing all interactions to go through UpgradeHandle.

 - Split UpgradeHandle into a read-only UpgradeHandle and read/write
   MutableUpgradeHandle. {IPocketAccess,ITurtleAccess}.getUpgrade return
   a mutable version, and turtle modellers consume a read-only version.

 - Remove setUpgrade from the public API. This now lives in the internal
   TurtleAccessInternal (much like PocketComputerInternal did already).
   Finding/looking-up an upgrade has never been exposed to the API, so
   I don't think this is a big loss.

 - Remove all other upgrade getters (either returning the upgrade or
   UpgradeData) from the turtle/pocket access.
2026-10-27 23:18:03 +00:00
..
2026-10-26 23:12:32 +00:00
2026-09-11 12:15:46 +01:00