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



1225
1226
1227
1228
1229
1230
1231
1232
# File 'lib/box2d_types.rb', line 1225

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



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

def beginCount = self[:beginCount]

#beginCount=(v) ⇒ Object



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

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

#beginEventsObject



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

def beginEvents = self[:beginEvents]

#beginEvents=(v) ⇒ Object



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

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

#endCountObject



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

def endCount = self[:endCount]

#endCount=(v) ⇒ Object



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

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

#endEventsObject



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

def endEvents = self[:endEvents]

#endEvents=(v) ⇒ Object



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

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