Summary
Hooks
cw_item entity on the map to the schema data.cw_shipment entity on the map to the schema data.Hooks
cwSaveItems:ClockworkInitPostEntity()
server gamemodes/catwork/plugins/saveitems/plugin/sv_hooks.lua:5Implements hook ClockworkInitPostEntity
Called after Catwork has loaded all of its entities; restores saved shipments and items.
Spawns the item entities saved for the current map.
Recreates each item instance with its saved item ID and data; items that cannot be created are skipped. Items that were frozen when saved are frozen again.
Spawns the shipments saved for the current map.
Shipments of items that no longer exist are skipped. Shipments that were frozen when saved are frozen again.
Implements hook PostSaveData
Called after Catwork saves its data; saves the shipments and items lying on the map.
Saves every cw_item entity on the map to the schema data.
Stores the item, its item ID and data, position, angles, whether it can move, and the key and
uniqueID properties. Entities without an item table are skipped.
Saves every cw_shipment entity on the map to the schema data.
Stores the item, the number of items left, position, angles, whether it can move, and the key and
uniqueID properties. Shipments without an item table or inventory are skipped.