Difference between revisions of "Property Reference"

99 bytes added ,  07:21, 23 June 2015
→‎Auto Read-Only Property: Updated what AutoReadOnly properties really are. Which is not a baked in value that cannot be changed, but-like a constant GlobalVariable, can be modified outside of the game and update without the need for a clean save.
imported>Jbezorg
imported>ThreeTen
(→‎Auto Read-Only Property: Updated what AutoReadOnly properties really are. Which is not a baked in value that cannot be changed, but-like a constant GlobalVariable, can be modified outside of the game and update without the need for a clean save.)
Line 59: Line 59:
  <auto read-only property> ::= <type> 'Property' <identifier> '=' <constant> 'AutoReadOnly' <flags>
  <auto read-only property> ::= <type> 'Property' <identifier> '=' <constant> 'AutoReadOnly' <flags>


An auto read-only property is simply a publicly accessible value that cannot be changed. For obvious reasons, it must be initialized with a value when declared. (There are also some internal optimizations that make this kind of property more efficient to use then the full type if you don't need to)
An auto read-only property is simply a publicly accessible value that cannot be changed in-game. Unlike other property variables, AutoReadOnly Properties do not bake into your savegame.  For obvious reasons, it must be initialized with a value when declared. (There are also some internal optimizations that make this kind of property more efficient to use then the full type if you don't need to)


=== Examples ===
=== Examples ===
Anonymous user