livery_update
=============================================================================
Class for maintaining liveries in MP aircraft. It is used in Nasal code that's
embedded in aircraft animation XML files, and checks in intervals whether the
parent aircraft has changed livery, in which case it changes the livery
in the remote aircraft accordingly. This class is a wrapper for overlay_update.
SYNOPSIS:
livery_update.new(<livery-dir> [, <interval:10> [, <func>]]);
<livery-dir> ... directory with livery files, relative to $FG_ROOT
<interval> ... checking interval in seconds (default: 10)
<func> ... callback function that's called with the ./sim/model/livery/file
contents as argument whenever the livery has changed. This can
be used for post-processing.
EXAMPLE:
<nasal>
<load>
var livery_update = aircraft.livery_update.new(
"Aircraft/R22/Models/Liveries", 30,
func print("R22 livery update"));
</load>
<unload>
livery_update.stop();
</unload>
</nasal>