Page 1 of 1

[Scripting][Lua] Checking custom type of variable.

Posted: Mon Jul 24, 2017 9:09 am
by Lachu
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.

Posted: Mon Jul 24, 2017 5:19 pm
by Lachu
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.

Posted: Thu Aug 10, 2017 6:33 pm
by sveinung
Lachu wrote:How to add a new universal(type in requirement list)?
It isn't formally documented. Have a look at how it was done before.

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.