Skip to content

Commit

Permalink
RELEASE - 1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuh4 committed Jun 5, 2024
1 parent 99516d2 commit 3071bd2
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions _build/Noir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function Noir.Class(name, parent)
class._IsObject = false

function class:New(...)
-- create Object
-- Create Object
---@type NoirClass
local object = {} ---@diagnostic disable-line
self:_Descend(object, {New = true, Init = true, _Descend = true})
Expand Down Expand Up @@ -204,7 +204,7 @@ function Noir.Class(name, parent)
end

----------------------------------------------
-- // [File] ..\src\Noir\Classes\Init.lua
-- // [File] ..\src\Noir\Classes\init.lua
----------------------------------------------
--------------------------------------------------------
-- [Noir] Classes
Expand Down Expand Up @@ -1025,6 +1025,22 @@ function Noir.Classes.PlayerClass:IsDowned()
return data.dead or data.incapacitated or data.hp <= 0
end

--[[
Returns this player's look direction.
]]
---@return number LookX
---@return number LookY
---@return number LookZ
function Noir.Classes.PlayerClass:GetLook()
local x, y, z, success = server.getPlayerLookDirection(self.ID)

if not success then
return 0, 0, 0
end

return x, y, z
end

-------------------------------
-- // Intellisense
-------------------------------
Expand Down Expand Up @@ -2865,10 +2881,10 @@ end
-------------------------------

--[[
The version of Noir.<br>
The current version of Noir.<br>
Follows [Semantic Versioning.](https://semver.org)
]]
Noir.Version = "1.2.5"
Noir.Version = "1.2.8"

--[[
This event is called when the framework is started.<br>
Expand All @@ -2891,7 +2907,10 @@ Noir.HasStarted = false
Noir.IsStarting = false

--[[
This represents whether or not the addon was: reloaded, started via save creation, or started via save creation.
This represents whether or not the addon was:<br>
- Reloaded<br>
- Started via a save being loaded into<br>
- Started via a save creation
]]
Noir.AddonReason = "AddonReload" ---@type NoirAddonReason

Expand Down

0 comments on commit 3071bd2

Please sign in to comment.