Fix parameter mismatch errors in lua docs
This commit is contained in:
@@ -33,7 +33,7 @@ function Character.Create(characterInfo, position, seed, id, isRemotePlayer, has
|
|||||||
|
|
||||||
--- Teleports a character to a position.
|
--- Teleports a character to a position.
|
||||||
-- @realm server
|
-- @realm server
|
||||||
-- @tparam Vector2 position
|
-- @tparam Vector2 worldPos
|
||||||
-- @usage
|
-- @usage
|
||||||
-- Character.CharacterList[1].TeleportTo(Vector2(0, 0)) -- teleports first created characters to 0, 0
|
-- Character.CharacterList[1].TeleportTo(Vector2(0, 0)) -- teleports first created characters to 0, 0
|
||||||
function TeleportTo(worldPos) end
|
function TeleportTo(worldPos) end
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ local Hook = {}
|
|||||||
|
|
||||||
|
|
||||||
--- Adds a hook.
|
--- Adds a hook.
|
||||||
-- @tparam string eventname event name
|
-- @tparam string eventName event name
|
||||||
-- @tparam string hookname hook name
|
-- @tparam string hookName hook name
|
||||||
-- @tparam function func callback
|
-- @tparam function func callback
|
||||||
-- @realm shared
|
-- @realm shared
|
||||||
-- @usage
|
-- @usage
|
||||||
@@ -21,15 +21,15 @@ local Hook = {}
|
|||||||
function Hook.Add(eventName, hookName, func) end
|
function Hook.Add(eventName, hookName, func) end
|
||||||
|
|
||||||
--- Removes a hook.
|
--- Removes a hook.
|
||||||
-- @tparam string eventname event name
|
-- @tparam string eventName event name
|
||||||
-- @tparam string hookname hook name
|
-- @tparam string hookName hook name
|
||||||
-- @realm shared
|
-- @realm shared
|
||||||
-- @usage
|
-- @usage
|
||||||
-- Hook.Remove("character.death", "characterDeathExample")
|
-- Hook.Remove("character.death", "characterDeathExample")
|
||||||
function Hook.Remove(eventName, hookName) end
|
function Hook.Remove(eventName, hookName) end
|
||||||
|
|
||||||
--- Calls a hook.
|
--- Calls a hook.
|
||||||
-- @tparam string eventname event name
|
-- @tparam string eventName event name
|
||||||
-- @tparam table parameters parameters to be passed in
|
-- @tparam table parameters parameters to be passed in
|
||||||
-- @realm shared
|
-- @realm shared
|
||||||
-- @usage
|
-- @usage
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ local Steam = {}
|
|||||||
|
|
||||||
|
|
||||||
--- Downloads an item from workshop and places it in a folder.
|
--- Downloads an item from workshop and places it in a folder.
|
||||||
-- @tparam string itemID
|
-- @tparam string id
|
||||||
-- @tparam string destinationFolder
|
-- @tparam string destinationFolder
|
||||||
-- @tparam function callback
|
-- @tparam function callback
|
||||||
-- @realm shared
|
-- @realm shared
|
||||||
@@ -23,13 +23,13 @@ local Steam = {}
|
|||||||
function Steam.DownloadWorkshopItem(id, destinationFolder, callback) end
|
function Steam.DownloadWorkshopItem(id, destinationFolder, callback) end
|
||||||
|
|
||||||
--- Gets information about a workshop item.
|
--- Gets information about a workshop item.
|
||||||
-- @tparam string itemID
|
-- @tparam string id
|
||||||
-- @tparam function callback
|
-- @tparam function callback
|
||||||
-- @realm shared
|
-- @realm shared
|
||||||
function Steam.GetWorkshopItem(id, callback) end
|
function Steam.GetWorkshopItem(id, callback) end
|
||||||
|
|
||||||
--- Callback is called with the list of all workshop items inside the specified collection.
|
--- Callback is called with the list of all workshop items inside the specified collection.
|
||||||
-- @tparam string itemID
|
-- @tparam string id
|
||||||
-- @tparam function callback
|
-- @tparam function callback
|
||||||
-- @realm shared
|
-- @realm shared
|
||||||
function Steam.GetWorkshopCollection(id, callback) end
|
function Steam.GetWorkshopCollection(id, callback) end
|
||||||
|
|||||||
Reference in New Issue
Block a user