Reorganizing
This commit is contained in:
10
media/lua/client/TOC/CommonMethods.lua
Normal file
10
media/lua/client/TOC/CommonMethods.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local CommonMethods = {}
|
||||
|
||||
---Returns the side for a certain limb or prosthesis
|
||||
---@param name string
|
||||
---@return string "L" or "R"
|
||||
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