Local variable

From X-Wiki

Jump to: navigation, search

A local variable is a variable that is attached to an object, such as a ship or station. The X2/3 Scripting Engine enforces a concept known as encapsulation (sometimes referred to as "data-hiding"), which for our purposes is roughly equivalent to the idea that only processes belonging to an object should have access to or be able to alter that object's data. In practical terms, a local variable can only be accessed or changed from a script that is attached to the same object, and never from any other object's scripts (or unattached scripts for that matter). This is in contrast to a global variable, which can be accessed from any script. Local variables are also briefly discussed in the MSCI Programmers Handbook.

essays term papers

Personal tools
sections