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



1177
1178
1179
1180
1181
1182
1183
1184
# File 'lib/box2d_types.rb', line 1177

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



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

def beginCount = self[:beginCount]

#beginCount=(v) ⇒ Object



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

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

#beginEventsObject



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

def beginEvents = self[:beginEvents]

#beginEvents=(v) ⇒ Object



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

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

#endCountObject



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

def endCount = self[:endCount]

#endCount=(v) ⇒ Object



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

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

#endEventsObject



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

def endEvents = self[:endEvents]

#endEvents=(v) ⇒ Object



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

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