Xarxus
February 14th, 2023, 17:52
This is probably a rookie question, I apologize in advance.
This code comes from CoreRPG, file manager_actions.lua, named ActionsManager in base.xml.
Inside the function performAction there is a call to ActionsManager.performMultiAction, which is
the function below. Why was it qualified? Is it the same calling it without ActionsManager qualifier?
function performAction(draginfo, rActor, rRoll)
if not rRoll then
return;
end
ActionsManager.performMultiAction(draginfo, rActor, rRoll.sType, { rRoll });
end
function performMultiAction(draginfo, rActor, sType, rRolls)
if not rRolls or #rRolls < 1 then
return false;
end
if draginfo then
ActionsManager.encodeActionForDrag(draginfo, rActor, sType, rRolls);
else
ActionsManager.actionDirect(rActor, sType, rRolls);
end
return true;
end
This code comes from CoreRPG, file manager_actions.lua, named ActionsManager in base.xml.
Inside the function performAction there is a call to ActionsManager.performMultiAction, which is
the function below. Why was it qualified? Is it the same calling it without ActionsManager qualifier?
function performAction(draginfo, rActor, rRoll)
if not rRoll then
return;
end
ActionsManager.performMultiAction(draginfo, rActor, rRoll.sType, { rRoll });
end
function performMultiAction(draginfo, rActor, sType, rRolls)
if not rRolls or #rRolls < 1 then
return false;
end
if draginfo then
ActionsManager.encodeActionForDrag(draginfo, rActor, sType, rRolls);
else
ActionsManager.actionDirect(rActor, sType, rRolls);
end
return true;
end