Skip to content

Commit

Permalink
Annotate Engine CollisionBeamEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Apr 25, 2024
1 parent 9f9a555 commit 84281f7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions engine/Sim/CollisionBeamEntity.lua
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
---@meta

---@class BeamEntitySpec
---@field Weapon
---@field BeamBone
---@field OtherBone
---@field CollisionCheckInterval

---@class moho.CollisionBeamEntity : moho.entity_methods
local CCollisionBeamEntity = {}

---
-- CollisionBeamEntity:Enable()
--- Toggles whether the beam is enabled or disabled
function CCollisionBeamEntity:Enable()
end

---
-- CCollisionBeamEntity:GetLauncher()
--- Returns the Weapon object that the beam belongs to
function CCollisionBeamEntity:GetLauncher()
end

---
-- bool = CCollisionBeamEntity:IsEnabled()
---@return boolean Enabled
function CCollisionBeamEntity:IsEnabled()
end

---
-- CCollisionBeamEntity:SetBeamFx(beamEmitter, checkCollision) -- set an emitter to be controlled by this beam. Its length parameter will be set from the beam entity's collision distance.
--- Set an emitter whose length parameter will be controlled by the beam entity's collision distance
---@param beamEmitter moho.IEffect
---@param checkCollision boolean
function CCollisionBeamEntity:SetBeamFx(beamEmitter, checkCollision)
end

---
-- beam = CreateCollisionBeam(spec)spec is a table with the following fields defined:
function CCollisionBeamEntity:__init()
---@param ... BeamEntitySpec
function CCollisionBeamEntity:__init(...)
end

return CCollisionBeamEntity

0 comments on commit 84281f7

Please sign in to comment.