Skip to content

Commit

Permalink
Merge pull request #7 from martinlindhe/fixes
Browse files Browse the repository at this point in the history
Add FrameLimiter TLO and adjust LineOfSight TLO for query argument
  • Loading branch information
johnfking committed Sep 13, 2022
2 parents cb19885 + bf18b80 commit 031db60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions datatype/_framelimiter.lua
@@ -0,0 +1,11 @@
---@class framelimiter
---@field public BackgroundFPS fun():number Value of the target background fps setting.
---@field public ClearScreen fun():boolean Value of the clear screen when not rendering setting.
---@field public CPU fun():number Current CPU usage as %
---@field public Enabled fun():boolean TRUE if the frame limiter feature is currently active.
---@field public ForegroundFPS fun():number Value of the target foreground fps setting.
---@field public MinSimulationFPS fun():number Value of the minimum simualtion rate setting.
---@field public RenderFPS fun():number Current graphics scene frame rate (visible fps).
---@field public SaveByChar fun():boolean TRUE if settings for the frame limiter are being saved by character.
---@field public SimulationFPS fun():number Current simulation frame rate (game updates per second).
---@field public Status fun():string Either "Foreground" or "Background".
6 changes: 3 additions & 3 deletions mq.lua
Expand Up @@ -85,7 +85,7 @@ function mq.getFilteredSpawns(predicate) end
---@class IMGUI
---@field init fun(name: string, render: fun())

---Register the ImGui Callback. Named function that will be called on every ImGui update,
---Register the ImGui Callback. Named function that will be called on every ImGui update,
---usually bound to one function that renders the ImGui window interface in game.
---@param name string The name of the callback
---@param callback function The callback function
Expand All @@ -112,7 +112,7 @@ function mq.imgui.destory(name) end
---@field Familiar any
---@field Float float
---@field FPS userdata
---@field FrameLimiter userdata
---@field FrameLimiter framelimiter
---@field Friends userdata
---@field GameTime time
---@field Ground ground #References the ground spawn item you have targeted.
Expand All @@ -127,7 +127,7 @@ function mq.imgui.destory(name) end
---@field Irc any
---@field ItemTarget ground #Gives access to the ground item that is previously targeted using /itemtarget.
---@field LastSpawn any
---@field LineOfSight any
---@field LineOfSight fun(query: string):boolean #Query is a string with the syntax of "y,x,z:y2,x2,z2"
---@field Lua Lua
---@field Macro Macro
---@field MacroQuest macroquest
Expand Down

0 comments on commit 031db60

Please sign in to comment.