More basic stuff for prosthesis
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
local CommonMethods = {}
|
||||
|
||||
---Returns the side for a certain limb
|
||||
---@param limbName string
|
||||
---Returns the side for a certain limb or prosthesis
|
||||
---@param name string
|
||||
---@return string "L" or "R"
|
||||
function CommonMethods.GetSide(limbName)
|
||||
if string.find(limbName, "_L") then return "L" else return "R" end
|
||||
function CommonMethods.GetSide(name)
|
||||
if string.find(name, "_L") then return "L" else return "R" end
|
||||
end
|
||||
|
||||
return CommonMethods
|
||||
Reference in New Issue
Block a user