[Scripting][Lua] Checking custom type of variable.
[Scripting][Lua] Checking custom type of variable.
Is there possibility to check type of lua variable in lua or C code? Type in this case means City, Tech, Player, etc.
Re: [Scripting][Lua] Checking custom type of variable.
Ok. I found solution for my problem, but never problem occurs. How to add a new universal(type in requirement list)?
Re: [Scripting][Lua] Checking custom type of variable.
It isn't formally documented. Have a look at how it was done before.Lachu wrote:How to add a new universal(type in requirement list)?
Looking at Freeciv's history will reveal the answer to many questions of this type. To be on the safe side have a look at following commits to see if something was forgotten and later added as a bug fix.