Class: Box2D::ContactEvents

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_, _hitEvents_, _beginCount_, _endCount_, _hitCount_) ⇒ Object



1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
# File 'lib/box2d_types.rb', line 1331

def self.create_as(_beginEvents_, _endEvents_, _hitEvents_, _beginCount_, _endCount_, _hitCount_)
  instance = ContactEvents.new
  instance[:beginEvents] = _beginEvents_
  instance[:endEvents] = _endEvents_
  instance[:hitEvents] = _hitEvents_
  instance[:beginCount] = _beginCount_
  instance[:endCount] = _endCount_
  instance[:hitCount] = _hitCount_
  instance
end

Instance Method Details

#beginCountObject



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

def beginCount = self[:beginCount]

#beginCount=(v) ⇒ Object



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

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

#beginEventsObject



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

def beginEvents = self[:beginEvents]

#beginEvents=(v) ⇒ Object



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

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

#endCountObject



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

def endCount = self[:endCount]

#endCount=(v) ⇒ Object



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

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

#endEventsObject



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

def endEvents = self[:endEvents]

#endEvents=(v) ⇒ Object



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

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

#hitCountObject



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

def hitCount = self[:hitCount]

#hitCount=(v) ⇒ Object



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

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

#hitEventsObject



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

def hitEvents = self[:hitEvents]

#hitEvents=(v) ⇒ Object



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

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