docs update and server event for item components

This commit is contained in:
Evil Factory
2021-09-19 13:26:35 -03:00
parent 75c0dd7425
commit 6c1cd3c5d3
5 changed files with 54 additions and 0 deletions

View File

@@ -172,6 +172,11 @@ function TeleportTo(position) end
-- @realm shared
-- @bool IsInFriendlySub
---
-- WorldPosition, Vector2 position of the Character in the world
-- @realm shared
-- @Vector2 WorldPosition
---
-- Position, returns a Vector2.
-- @realm shared

View File

@@ -34,3 +34,18 @@ function Item:SendSignal(signalOrString, connectionOrConnectionName) end
-- Item.ItemList, Table containing all items.
-- @realm shared
-- @Item Item.ItemList
---
-- Prefab, ItemPrefab containing the original prefab of the item.
-- @realm shared
-- @ItemPrefab Prefab
---
-- Name, the name of the item.
-- @realm shared
-- @string Name
---
-- WorldPosition, Vector2 position of the item in the world
-- @realm shared
-- @Vector2 WorldPosition

View File

@@ -29,3 +29,8 @@ function ItemPrefab.AddToSpawnQueue(itemPrefab, inventory, spawned) end
-- @treturn ItemPrefab
-- @realm shared
function ItemPrefab.GetItemPrefab(itemNameOrId) end
---
-- Identifier, the identifier of the prefab.
-- @realm shared
-- @string Identifier