diff --git a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaDocs.cs b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaDocs.cs index 8b23ac3ec..50bd3953d 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaDocs.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaDocs.cs @@ -81,6 +81,9 @@ namespace Barotrauma GenerateDocs(typeof(NetLobbyScreen), "NetLobbyScreen.lua", "Game.NetLobbyScreen"); GenerateDocs(typeof(GameScreen), "GameScreen.lua", "Game.GameScreen"); GenerateDocs(typeof(FarseerPhysics.Dynamics.World), "World.lua", "Game.World"); + GenerateDocs(typeof(Inventory), "Inventory.lua", "Inventory"); + GenerateDocs(typeof(ItemInventory), "ItemInventory.lua", "ItemInventory"); + GenerateDocs(typeof(CharacterInventory), "CharacterInventory.lua", "CharacterInventory"); } public static void GenerateDocs(Type type, string name, string? categoryName = null) diff --git a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs index 9177bfd87..5a57e7930 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs @@ -401,7 +401,7 @@ namespace Barotrauma lua.Globals["SERVER"] = isServer; lua.Globals["CLIENT"] = !isServer; - LuaDocs.GenerateDocsAll(); + // LuaDocs.GenerateDocsAll(); if (File.Exists("Lua/LuaSetup.lua")) // try the default loader DoFile("Lua/LuaSetup.lua"); diff --git a/docs/baseluadocs/CharacterInventory.lua b/docs/baseluadocs/CharacterInventory.lua new file mode 100644 index 000000000..26adcfb42 --- /dev/null +++ b/docs/baseluadocs/CharacterInventory.lua @@ -0,0 +1,8 @@ +-- luacheck: ignore 111 + +--[[-- +Barotrauma.CharacterInventory +]] +-- @code CharacterInventory +-- @pragma nostrip +local CharacterInventory = {} \ No newline at end of file diff --git a/docs/baseluadocs/Inventory.lua b/docs/baseluadocs/Inventory.lua new file mode 100644 index 000000000..561b99494 --- /dev/null +++ b/docs/baseluadocs/Inventory.lua @@ -0,0 +1,8 @@ +-- luacheck: ignore 111 + +--[[-- +Barotrauma.Inventory +]] +-- @code Inventory +-- @pragma nostrip +local Inventory = {} \ No newline at end of file diff --git a/docs/baseluadocs/ItemInventory.lua b/docs/baseluadocs/ItemInventory.lua new file mode 100644 index 000000000..bd82e6578 --- /dev/null +++ b/docs/baseluadocs/ItemInventory.lua @@ -0,0 +1,8 @@ +-- luacheck: ignore 111 + +--[[-- +Barotrauma.ItemInventory +]] +-- @code ItemInventory +-- @pragma nostrip +local ItemInventory = {} \ No newline at end of file diff --git a/docs/lua/generated/CharacterInventory.lua b/docs/lua/generated/CharacterInventory.lua new file mode 100644 index 000000000..a343c02aa --- /dev/null +++ b/docs/lua/generated/CharacterInventory.lua @@ -0,0 +1,328 @@ +-- luacheck: ignore 111 + +--[[-- +Barotrauma.CharacterInventory +]] +-- @code CharacterInventory +-- @pragma nostrip +local CharacterInventory = {} + +--- FindLimbSlot +-- @realm shared +-- @tparam InvSlotType limbSlot +-- @treturn number +function FindLimbSlot(limbSlot) end + +--- GetItemInLimbSlot +-- @realm shared +-- @tparam InvSlotType limbSlot +-- @treturn Item +function GetItemInLimbSlot(limbSlot) end + +--- IsInLimbSlot +-- @realm shared +-- @tparam Item item +-- @tparam InvSlotType limbSlot +-- @treturn bool +function IsInLimbSlot(item, limbSlot) end + +--- CanBePutInSlot +-- @realm shared +-- @tparam Item item +-- @tparam number i +-- @tparam bool ignoreCondition +-- @treturn bool +function CanBePutInSlot(item, i, ignoreCondition) end + +--- CanBePutInSlot +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam number i +-- @tparam Nullable`1 condition +-- @tparam Nullable`1 quality +-- @treturn bool +function CanBePutInSlot(itemPrefab, i, condition, quality) end + +--- CanBeAutoMovedToCorrectSlots +-- @realm shared +-- @tparam Item item +-- @treturn bool +function CanBeAutoMovedToCorrectSlots(item) end + +--- RemoveItem +-- @realm shared +-- @tparam Item item +function RemoveItem(item) end + +--- RemoveItem +-- @realm shared +-- @tparam Item item +-- @tparam bool tryEquipFromSameStack +function RemoveItem(item, tryEquipFromSameStack) end + +--- TryPutItemWithAutoEquipCheck +-- @realm shared +-- @tparam Item item +-- @tparam Character user +-- @tparam IEnumerable`1 allowedSlots +-- @tparam bool createNetworkEvent +-- @treturn bool +function TryPutItemWithAutoEquipCheck(item, user, allowedSlots, createNetworkEvent) end + +--- TryPutItem +-- @realm shared +-- @tparam Item item +-- @tparam Character user +-- @tparam IEnumerable`1 allowedSlots +-- @tparam bool createNetworkEvent +-- @tparam bool ignoreCondition +-- @treturn bool +function TryPutItem(item, user, allowedSlots, createNetworkEvent, ignoreCondition) end + +--- CheckIfAnySlotAvailable +-- @realm shared +-- @tparam Item item +-- @tparam bool inWrongSlot +-- @treturn number +function CheckIfAnySlotAvailable(item, inWrongSlot) end + +--- TryPutItem +-- @realm shared +-- @tparam Item item +-- @tparam number index +-- @tparam bool allowSwapping +-- @tparam bool allowCombine +-- @tparam Character user +-- @tparam bool createNetworkEvent +-- @tparam bool ignoreCondition +-- @treturn bool +function TryPutItem(item, index, allowSwapping, allowCombine, user, createNetworkEvent, ignoreCondition) end + +--- ServerRead +-- @realm shared +-- @tparam ClientNetObject type +-- @tparam IReadMessage msg +-- @tparam Client c +function ServerRead(type, msg, c) end + +--- ServerWrite +-- @realm shared +-- @tparam IWriteMessage msg +-- @tparam Client c +-- @tparam Object[] extraData +function ServerWrite(msg, c, extraData) end + +--- Contains +-- @realm shared +-- @tparam Item item +-- @treturn bool +function Contains(item) end + +--- FirstOrDefault +-- @realm shared +-- @treturn Item +function FirstOrDefault() end + +--- LastOrDefault +-- @realm shared +-- @treturn Item +function LastOrDefault() end + +--- GetItemAt +-- @realm shared +-- @tparam number index +-- @treturn Item +function GetItemAt(index) end + +--- GetItemsAt +-- @realm shared +-- @tparam number index +-- @treturn IEnumerable`1 +function GetItemsAt(index) end + +--- FindIndex +-- @realm shared +-- @tparam Item item +-- @treturn number +function FindIndex(item) end + +--- FindIndices +-- @realm shared +-- @tparam Item item +-- @treturn table +function FindIndices(item) end + +--- ItemOwnsSelf +-- @realm shared +-- @tparam Item item +-- @treturn bool +function ItemOwnsSelf(item) end + +--- FindAllowedSlot +-- @realm shared +-- @tparam Item item +-- @tparam bool ignoreCondition +-- @treturn number +function FindAllowedSlot(item, ignoreCondition) end + +--- CanBePut +-- @realm shared +-- @tparam Item item +-- @treturn bool +function CanBePut(item) end + +--- CanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam Nullable`1 condition +-- @tparam Nullable`1 quality +-- @treturn bool +function CanBePut(itemPrefab, condition, quality) end + +--- HowManyCanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam Nullable`1 condition +-- @treturn number +function HowManyCanBePut(itemPrefab, condition) end + +--- HowManyCanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam number i +-- @tparam Nullable`1 condition +-- @treturn number +function HowManyCanBePut(itemPrefab, i, condition) end + +--- IsEmpty +-- @realm shared +-- @treturn bool +function IsEmpty() end + +--- IsFull +-- @realm shared +-- @tparam bool takeStacksIntoAccount +-- @treturn bool +function IsFull(takeStacksIntoAccount) end + +--- CreateNetworkEvent +-- @realm shared +function CreateNetworkEvent() end + +--- FindItem +-- @realm shared +-- @tparam function predicate +-- @tparam bool recursive +-- @treturn Item +function FindItem(predicate, recursive) end + +--- FindAllItems +-- @realm shared +-- @tparam function predicate +-- @tparam bool recursive +-- @tparam table list +-- @treturn table +function FindAllItems(predicate, recursive, list) end + +--- FindItemByTag +-- @realm shared +-- @tparam string tag +-- @tparam bool recursive +-- @treturn Item +function FindItemByTag(tag, recursive) end + +--- FindItemByIdentifier +-- @realm shared +-- @tparam string identifier +-- @tparam bool recursive +-- @treturn Item +function FindItemByIdentifier(identifier, recursive) end + +--- ForceToSlot +-- @realm shared +-- @tparam Item item +-- @tparam number index +function ForceToSlot(item, index) end + +--- ForceRemoveFromSlot +-- @realm shared +-- @tparam Item item +-- @tparam number index +function ForceRemoveFromSlot(item, index) end + +--- SharedWrite +-- @realm shared +-- @tparam IWriteMessage msg +-- @tparam Object[] extraData +function SharedWrite(msg, extraData) end + +--- DeleteAllItems +-- @realm shared +function DeleteAllItems() end + +--- GetType +-- @realm shared +-- @treturn Type +function GetType() end + +--- ToString +-- @realm shared +-- @treturn string +function ToString() end + +--- Equals +-- @realm shared +-- @tparam Object obj +-- @treturn bool +function Equals(obj) end + +--- GetHashCode +-- @realm shared +-- @treturn number +function GetHashCode() end + +--- +-- SlotTypes, Field of type InvSlotType[] +-- @realm shared +-- @InvSlotType[] SlotTypes + +--- +-- AccessibleWhenAlive, Field of type bool +-- @realm shared +-- @bool AccessibleWhenAlive + +--- +-- AllItems, Field of type IEnumerable`1 +-- @realm shared +-- @IEnumerable`1 AllItems + +--- +-- AllItemsMod, Field of type IEnumerable`1 +-- @realm shared +-- @IEnumerable`1 AllItemsMod + +--- +-- Capacity, Field of type number +-- @realm shared +-- @number Capacity + +--- +-- CharacterInventory.anySlot, Field of type table +-- @realm shared +-- @table CharacterInventory.anySlot + +--- +-- Owner, Field of type Entity +-- @realm shared +-- @Entity Owner + +--- +-- Locked, Field of type bool +-- @realm shared +-- @bool Locked + +--- +-- AllowSwappingContainedItems, Field of type bool +-- @realm shared +-- @bool AllowSwappingContainedItems + diff --git a/docs/lua/generated/Inventory.lua b/docs/lua/generated/Inventory.lua new file mode 100644 index 000000000..261515d86 --- /dev/null +++ b/docs/lua/generated/Inventory.lua @@ -0,0 +1,271 @@ +-- luacheck: ignore 111 + +--[[-- +Barotrauma.Inventory +]] +-- @code Inventory +-- @pragma nostrip +local Inventory = {} + +--- ServerRead +-- @realm shared +-- @tparam ClientNetObject type +-- @tparam IReadMessage msg +-- @tparam Client c +function ServerRead(type, msg, c) end + +--- ServerWrite +-- @realm shared +-- @tparam IWriteMessage msg +-- @tparam Client c +-- @tparam Object[] extraData +function ServerWrite(msg, c, extraData) end + +--- Contains +-- @realm shared +-- @tparam Item item +-- @treturn bool +function Contains(item) end + +--- FirstOrDefault +-- @realm shared +-- @treturn Item +function FirstOrDefault() end + +--- LastOrDefault +-- @realm shared +-- @treturn Item +function LastOrDefault() end + +--- GetItemAt +-- @realm shared +-- @tparam number index +-- @treturn Item +function GetItemAt(index) end + +--- GetItemsAt +-- @realm shared +-- @tparam number index +-- @treturn IEnumerable`1 +function GetItemsAt(index) end + +--- FindIndex +-- @realm shared +-- @tparam Item item +-- @treturn number +function FindIndex(item) end + +--- FindIndices +-- @realm shared +-- @tparam Item item +-- @treturn table +function FindIndices(item) end + +--- ItemOwnsSelf +-- @realm shared +-- @tparam Item item +-- @treturn bool +function ItemOwnsSelf(item) end + +--- FindAllowedSlot +-- @realm shared +-- @tparam Item item +-- @tparam bool ignoreCondition +-- @treturn number +function FindAllowedSlot(item, ignoreCondition) end + +--- CanBePut +-- @realm shared +-- @tparam Item item +-- @treturn bool +function CanBePut(item) end + +--- CanBePutInSlot +-- @realm shared +-- @tparam Item item +-- @tparam number i +-- @tparam bool ignoreCondition +-- @treturn bool +function CanBePutInSlot(item, i, ignoreCondition) end + +--- CanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam Nullable`1 condition +-- @tparam Nullable`1 quality +-- @treturn bool +function CanBePut(itemPrefab, condition, quality) end + +--- CanBePutInSlot +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam number i +-- @tparam Nullable`1 condition +-- @tparam Nullable`1 quality +-- @treturn bool +function CanBePutInSlot(itemPrefab, i, condition, quality) end + +--- HowManyCanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam Nullable`1 condition +-- @treturn number +function HowManyCanBePut(itemPrefab, condition) end + +--- HowManyCanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam number i +-- @tparam Nullable`1 condition +-- @treturn number +function HowManyCanBePut(itemPrefab, i, condition) end + +--- TryPutItem +-- @realm shared +-- @tparam Item item +-- @tparam Character user +-- @tparam IEnumerable`1 allowedSlots +-- @tparam bool createNetworkEvent +-- @tparam bool ignoreCondition +-- @treturn bool +function TryPutItem(item, user, allowedSlots, createNetworkEvent, ignoreCondition) end + +--- TryPutItem +-- @realm shared +-- @tparam Item item +-- @tparam number i +-- @tparam bool allowSwapping +-- @tparam bool allowCombine +-- @tparam Character user +-- @tparam bool createNetworkEvent +-- @tparam bool ignoreCondition +-- @treturn bool +function TryPutItem(item, i, allowSwapping, allowCombine, user, createNetworkEvent, ignoreCondition) end + +--- IsEmpty +-- @realm shared +-- @treturn bool +function IsEmpty() end + +--- IsFull +-- @realm shared +-- @tparam bool takeStacksIntoAccount +-- @treturn bool +function IsFull(takeStacksIntoAccount) end + +--- CreateNetworkEvent +-- @realm shared +function CreateNetworkEvent() end + +--- FindItem +-- @realm shared +-- @tparam function predicate +-- @tparam bool recursive +-- @treturn Item +function FindItem(predicate, recursive) end + +--- FindAllItems +-- @realm shared +-- @tparam function predicate +-- @tparam bool recursive +-- @tparam table list +-- @treturn table +function FindAllItems(predicate, recursive, list) end + +--- FindItemByTag +-- @realm shared +-- @tparam string tag +-- @tparam bool recursive +-- @treturn Item +function FindItemByTag(tag, recursive) end + +--- FindItemByIdentifier +-- @realm shared +-- @tparam string identifier +-- @tparam bool recursive +-- @treturn Item +function FindItemByIdentifier(identifier, recursive) end + +--- RemoveItem +-- @realm shared +-- @tparam Item item +function RemoveItem(item) end + +--- ForceToSlot +-- @realm shared +-- @tparam Item item +-- @tparam number index +function ForceToSlot(item, index) end + +--- ForceRemoveFromSlot +-- @realm shared +-- @tparam Item item +-- @tparam number index +function ForceRemoveFromSlot(item, index) end + +--- SharedWrite +-- @realm shared +-- @tparam IWriteMessage msg +-- @tparam Object[] extraData +function SharedWrite(msg, extraData) end + +--- DeleteAllItems +-- @realm shared +function DeleteAllItems() end + +--- GetType +-- @realm shared +-- @treturn Type +function GetType() end + +--- ToString +-- @realm shared +-- @treturn string +function ToString() end + +--- Equals +-- @realm shared +-- @tparam Object obj +-- @treturn bool +function Equals(obj) end + +--- GetHashCode +-- @realm shared +-- @treturn number +function GetHashCode() end + +--- +-- AllItems, Field of type IEnumerable`1 +-- @realm shared +-- @IEnumerable`1 AllItems + +--- +-- AllItemsMod, Field of type IEnumerable`1 +-- @realm shared +-- @IEnumerable`1 AllItemsMod + +--- +-- Capacity, Field of type number +-- @realm shared +-- @number Capacity + +--- +-- Owner, Field of type Entity +-- @realm shared +-- @Entity Owner + +--- +-- Locked, Field of type bool +-- @realm shared +-- @bool Locked + +--- +-- AllowSwappingContainedItems, Field of type bool +-- @realm shared +-- @bool AllowSwappingContainedItems + +--- +-- Inventory.MaxStackSize, Field of type number +-- @realm shared +-- @number Inventory.MaxStackSize + diff --git a/docs/lua/generated/ItemInventory.lua b/docs/lua/generated/ItemInventory.lua new file mode 100644 index 000000000..2eec050f0 --- /dev/null +++ b/docs/lua/generated/ItemInventory.lua @@ -0,0 +1,271 @@ +-- luacheck: ignore 111 + +--[[-- +Barotrauma.ItemInventory +]] +-- @code ItemInventory +-- @pragma nostrip +local ItemInventory = {} + +--- FindAllowedSlot +-- @realm shared +-- @tparam Item item +-- @tparam bool ignoreCondition +-- @treturn number +function FindAllowedSlot(item, ignoreCondition) end + +--- CanBePutInSlot +-- @realm shared +-- @tparam Item item +-- @tparam number i +-- @tparam bool ignoreCondition +-- @treturn bool +function CanBePutInSlot(item, i, ignoreCondition) end + +--- CanBePutInSlot +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam number i +-- @tparam Nullable`1 condition +-- @tparam Nullable`1 quality +-- @treturn bool +function CanBePutInSlot(itemPrefab, i, condition, quality) end + +--- HowManyCanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam number i +-- @tparam Nullable`1 condition +-- @treturn number +function HowManyCanBePut(itemPrefab, i, condition) end + +--- IsFull +-- @realm shared +-- @tparam bool takeStacksIntoAccount +-- @treturn bool +function IsFull(takeStacksIntoAccount) end + +--- TryPutItem +-- @realm shared +-- @tparam Item item +-- @tparam Character user +-- @tparam IEnumerable`1 allowedSlots +-- @tparam bool createNetworkEvent +-- @tparam bool ignoreCondition +-- @treturn bool +function TryPutItem(item, user, allowedSlots, createNetworkEvent, ignoreCondition) end + +--- TryPutItem +-- @realm shared +-- @tparam Item item +-- @tparam number i +-- @tparam bool allowSwapping +-- @tparam bool allowCombine +-- @tparam Character user +-- @tparam bool createNetworkEvent +-- @tparam bool ignoreCondition +-- @treturn bool +function TryPutItem(item, i, allowSwapping, allowCombine, user, createNetworkEvent, ignoreCondition) end + +--- CreateNetworkEvent +-- @realm shared +function CreateNetworkEvent() end + +--- RemoveItem +-- @realm shared +-- @tparam Item item +function RemoveItem(item) end + +--- ServerRead +-- @realm shared +-- @tparam ClientNetObject type +-- @tparam IReadMessage msg +-- @tparam Client c +function ServerRead(type, msg, c) end + +--- ServerWrite +-- @realm shared +-- @tparam IWriteMessage msg +-- @tparam Client c +-- @tparam Object[] extraData +function ServerWrite(msg, c, extraData) end + +--- Contains +-- @realm shared +-- @tparam Item item +-- @treturn bool +function Contains(item) end + +--- FirstOrDefault +-- @realm shared +-- @treturn Item +function FirstOrDefault() end + +--- LastOrDefault +-- @realm shared +-- @treturn Item +function LastOrDefault() end + +--- GetItemAt +-- @realm shared +-- @tparam number index +-- @treturn Item +function GetItemAt(index) end + +--- GetItemsAt +-- @realm shared +-- @tparam number index +-- @treturn IEnumerable`1 +function GetItemsAt(index) end + +--- FindIndex +-- @realm shared +-- @tparam Item item +-- @treturn number +function FindIndex(item) end + +--- FindIndices +-- @realm shared +-- @tparam Item item +-- @treturn table +function FindIndices(item) end + +--- ItemOwnsSelf +-- @realm shared +-- @tparam Item item +-- @treturn bool +function ItemOwnsSelf(item) end + +--- CanBePut +-- @realm shared +-- @tparam Item item +-- @treturn bool +function CanBePut(item) end + +--- CanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam Nullable`1 condition +-- @tparam Nullable`1 quality +-- @treturn bool +function CanBePut(itemPrefab, condition, quality) end + +--- HowManyCanBePut +-- @realm shared +-- @tparam ItemPrefab itemPrefab +-- @tparam Nullable`1 condition +-- @treturn number +function HowManyCanBePut(itemPrefab, condition) end + +--- IsEmpty +-- @realm shared +-- @treturn bool +function IsEmpty() end + +--- FindItem +-- @realm shared +-- @tparam function predicate +-- @tparam bool recursive +-- @treturn Item +function FindItem(predicate, recursive) end + +--- FindAllItems +-- @realm shared +-- @tparam function predicate +-- @tparam bool recursive +-- @tparam table list +-- @treturn table +function FindAllItems(predicate, recursive, list) end + +--- FindItemByTag +-- @realm shared +-- @tparam string tag +-- @tparam bool recursive +-- @treturn Item +function FindItemByTag(tag, recursive) end + +--- FindItemByIdentifier +-- @realm shared +-- @tparam string identifier +-- @tparam bool recursive +-- @treturn Item +function FindItemByIdentifier(identifier, recursive) end + +--- ForceToSlot +-- @realm shared +-- @tparam Item item +-- @tparam number index +function ForceToSlot(item, index) end + +--- ForceRemoveFromSlot +-- @realm shared +-- @tparam Item item +-- @tparam number index +function ForceRemoveFromSlot(item, index) end + +--- SharedWrite +-- @realm shared +-- @tparam IWriteMessage msg +-- @tparam Object[] extraData +function SharedWrite(msg, extraData) end + +--- DeleteAllItems +-- @realm shared +function DeleteAllItems() end + +--- GetType +-- @realm shared +-- @treturn Type +function GetType() end + +--- ToString +-- @realm shared +-- @treturn string +function ToString() end + +--- Equals +-- @realm shared +-- @tparam Object obj +-- @treturn bool +function Equals(obj) end + +--- GetHashCode +-- @realm shared +-- @treturn number +function GetHashCode() end + +--- +-- Container, Field of type ItemContainer +-- @realm shared +-- @ItemContainer Container + +--- +-- AllItems, Field of type IEnumerable`1 +-- @realm shared +-- @IEnumerable`1 AllItems + +--- +-- AllItemsMod, Field of type IEnumerable`1 +-- @realm shared +-- @IEnumerable`1 AllItemsMod + +--- +-- Capacity, Field of type number +-- @realm shared +-- @number Capacity + +--- +-- Owner, Field of type Entity +-- @realm shared +-- @Entity Owner + +--- +-- Locked, Field of type bool +-- @realm shared +-- @bool Locked + +--- +-- AllowSwappingContainedItems, Field of type bool +-- @realm shared +-- @bool AllowSwappingContainedItems +