I have an Entity component system using generic parameters. I am trying to get Lua scripting to work using NLua.
However I do not know how to access a generic parameter from the Lua environment.
Something like this?:
if e:HasComponent<Position>() then
print("Found position...")
end
If there is no way to do this then how would I go about making the components accessible via strings?
Code snippets will be given on request as I do not think it is a problem with my code.