Class: SFRP::Raw::TConst

Inherits:
Struct
  • Object
show all
Defined in:
lib/sfrp/raw/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#native_strObject

Returns the value of attribute native_str

Returns:

  • (Object)

    the current value of native_str



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def native_str
  @native_str
end

#nsObject

Returns the value of attribute ns

Returns:

  • (Object)

    the current value of ns



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def ns
  @ns
end

#pstrsObject

Returns the value of attribute pstrs

Returns:

  • (Object)

    the current value of pstrs



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def pstrs
  @pstrs
end

#rnameObject

Returns the value of attribute rname

Returns:

  • (Object)

    the current value of rname



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def rname
  @rname
end

#spObject

Returns the value of attribute sp

Returns:

  • (Object)

    the current value of sp



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def sp
  @sp
end

#staticObject

Returns the value of attribute static

Returns:

  • (Object)

    the current value of static



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def static
  @static
end

#vconstsObject

Returns the value of attribute vconsts

Returns:

  • (Object)

    the current value of vconsts



23
24
25
# File 'lib/sfrp/raw/elements.rb', line 23

def vconsts
  @vconsts
end

Instance Method Details

#absolute_nameObject



24
25
26
# File 'lib/sfrp/raw/elements.rb', line 24

def absolute_name
  ns.absolute_name(rname)
end

#gen_flat(_src_set, dest_set) ⇒ Object



28
29
30
31
# File 'lib/sfrp/raw/elements.rb', line 28

def gen_flat(_src_set, dest_set)
  vconst_strs = vconsts.map(&:absolute_name)
  dest_set << Flat::TConst.new(absolute_name, pstrs, vconst_strs, native_str, static, sp)
end