Module: Api::Point2DExtension::ClassMethods
- Included in:
- Api::Point2D
- Defined in:
- lib/sc2ai/protocol/extensions/point_2_d.rb
Overview
Adds additional functionality to message class Api::Point2D
Instance Method Summary collapse
-
#[](x, y) ⇒ Api::Point2D
Shorthand for creating an instance for [x, y].
Instance Method Details
#[](x, y) ⇒ Api::Point2D
Shorthand for creating an instance for [x, y]
34 35 36 |
# File 'lib/sc2ai/protocol/extensions/point_2_d.rb', line 34 def [](x, y) Api::Point2D.new(x: x, y: y) end |