Method: SGS::Waypoint#parse

Defined in:
lib/sgs/waypoint.rb

#parse(data) ⇒ Object

 Parse the waypoint data and save it



58
59
60
61
62
63
64
65
# File 'lib/sgs/waypoint.rb', line 58

def parse(data)
  @@count += 1
  @name = data["name"] || "Waypoint ##{@@count}"
  @location = Location.new
  @location.parse_hash(data)
  @normal = data["normal"] || 0.0
  @range = data["range"] || 0.1
end