|
OpenTTD Source 20260711-master-g3fb3006dff
|
Template class to help with list-like types. More...
Static Public Member Functions | |
| static size_t | SlCalcLen (const void *storage, VarType conv, SaveLoadType cmd=SaveLoadType::Variable) |
| Internal templated helper to return the size in bytes of a list-like type. | |
| static void | SlSaveLoadMember (SaveLoadType cmd, Tvar *item, VarType conv) |
| static void | SlSaveLoad (void *storage, VarType conv, SaveLoadType cmd=SaveLoadType::Variable) |
| Internal templated helper to save/load a list-like type. | |
Private Types | |
| typedef Tstorage< Tvar, Tallocator > | SlStorageT |
Template class to help with list-like types.
Definition at line 1430 of file saveload.cpp.
|
private |
Definition at line 1431 of file saveload.cpp.
|
inlinestatic |
Internal templated helper to return the size in bytes of a list-like type.
| storage | The storage to find the size of |
| conv | VarType type of variable that is used for calculating the size |
| cmd | The SaveLoadType ware are saving/loading. |
Definition at line 1440 of file saveload.cpp.
References Reference, SlCalcConvFileLen(), U32, and Variable.
Referenced by SlCalcRefListLen(), SlCalcRefVectorLen(), and SlCalcVectorLen().
|
inlinestatic |
Internal templated helper to save/load a list-like type.
| storage | The storage being manipulated. |
| conv | VarType type of variable that is used for calculating the size. |
| cmd | The SaveLoadType ware are saving/loading. |
Definition at line 1468 of file saveload.cpp.
References _sl, IsSavegameVersionBefore(), Load, LoadCheck, MoreCargoPackets, Null, Ptrs, Reference, Save, SaveloadListLength, String, and Variable.
Referenced by SlRefList(), SlRefVector(), and SlVector().
|
inlinestatic |
Definition at line 1451 of file saveload.cpp.