Class: Box2D::SensorEvents

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_beginEvents_, _endEvents_, _beginCount_, _endCount_) ⇒ Object



1274
1275
1276
1277
1278
1279
1280
1281
# File 'lib/box2d_types.rb', line 1274

def self.create_as(_beginEvents_, _endEvents_, _beginCount_, _endCount_)
  instance = SensorEvents.new
  instance[:beginEvents] = _beginEvents_
  instance[:endEvents] = _endEvents_
  instance[:beginCount] = _beginCount_
  instance[:endCount] = _endCount_
  instance
end

Instance Method Details

#beginCountObject



1270
# File 'lib/box2d_types.rb', line 1270

def beginCount = self[:beginCount]

#beginCount=(v) ⇒ Object



1271
# File 'lib/box2d_types.rb', line 1271

def beginCount=(v) self[:beginCount] = v end

#beginEventsObject



1266
# File 'lib/box2d_types.rb', line 1266

def beginEvents = self[:beginEvents]

#beginEvents=(v) ⇒ Object



1267
# File 'lib/box2d_types.rb', line 1267

def beginEvents=(v) self[:beginEvents] = v end

#endCountObject



1272
# File 'lib/box2d_types.rb', line 1272

def endCount = self[:endCount]

#endCount=(v) ⇒ Object



1273
# File 'lib/box2d_types.rb', line 1273

def endCount=(v) self[:endCount] = v end

#endEventsObject



1268
# File 'lib/box2d_types.rb', line 1268

def endEvents = self[:endEvents]

#endEvents=(v) ⇒ Object



1269
# File 'lib/box2d_types.rb', line 1269

def endEvents=(v) self[:endEvents] = v end