Module: Api::PointExtension::ClassMethods
- Defined in:
- lib/sc2ai/protocol/extensions/point.rb
Overview
Adds additional functionality to message class Api::Point
Instance Method Summary collapse
-
#[](x, y, z) ⇒ Api::Point
Shorthand for creating an instance for [x, y, z].
Instance Method Details
#[](x, y, z) ⇒ Api::Point
Shorthand for creating an instance for [x, y, z]
30 31 32 |
# File 'lib/sc2ai/protocol/extensions/point.rb', line 30 def [](x, y, z) Api::Point.new(x: x, y: y, z: z) end |