UID Class

Many objects in ForestVillage such as building or workers has own unique identifier or UID. A lot of functions in core API expect object uid as one of their arguments instead of object itself. In most cases you can get it by «uid» field of object.


 * UID is a integer number
 * To specify "no object" pass nil instead of uid
 * To check is some variable contain real uid just compare it with nil ( if uid then )