Module: NWN::Gff::Cexolocstr
- Defined in:
- lib/nwn/gff/cexolocstr.rb
Constant Summary collapse
- DEFAULT_STR_REF =
0xffffffff
Instance Method Summary collapse
Instance Method Details
#has_str_ref? ⇒ Boolean
16 17 18 |
# File 'lib/nwn/gff/cexolocstr.rb', line 16 def has_str_ref? str_ref != DEFAULT_STR_REF end |
#str_ref ⇒ Object
10 11 12 |
# File 'lib/nwn/gff/cexolocstr.rb', line 10 def str_ref self['str_ref'] || DEFAULT_STR_REF end |
#str_ref=(s) ⇒ Object
13 14 15 |
# File 'lib/nwn/gff/cexolocstr.rb', line 13 def str_ref= s self['str_ref'] = s.to_i end |