Skip to content

Commit

Permalink
add Noir:GetVersion(). returns major, minor, patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuh4 committed Jun 22, 2024
1 parent e485369 commit 9967253
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Noir/Noir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
]]
Noir.Version = "1.8.4"

--[[
Returns the MAJOR, MINOR, and PATCH of the current Noir version.
major, minor, patch = Noir:GetVersion()
]]
function Noir:GetVersion()
return table.unpack(Noir.Libraries.String:Split(self.Version, "."))
end

--[[
This event is called when the framework is started.<br>
Use this event to safely run your code.
Expand Down

0 comments on commit 9967253

Please sign in to comment.