Template:Nasal Add Setter Getter

From FlightGear wiki
Revision as of 09:06, 21 June 2014 by Johan G (talk | contribs) (+cat: Undocumented templates; <noinclude> tags around categories)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
# declare a method named setFoo
 setFoo: func(value) {
  # do your processing here
  me.value=value; 
 },

# declare a method named getFoo
 getFoo: func() {
  # do your processing here
  return me.value; 
 },