Module: Api::PowerSourceExtension::ClassMethods
- Included in:
- Api::PowerSource
- Defined in:
- lib/sc2ai/protocol/extensions/power_source.rb
Overview
Adds additional functionality to message class Api::PowerSource
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]
12 13 14 |
# File 'lib/sc2ai/protocol/extensions/power_source.rb', line 12 def [](x, y, z) Api::Point.new(x: x, y: y, z: z) end |