forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |