Class: Box2D::Counters

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(_bodyCount_, _shapeCount_, _contactCount_, _jointCount_, _islandCount_, _stackUsed_, _staticTreeHeight_, _treeHeight_, _byteCount_, _taskCount_, _colorCounts_) ⇒ Object



738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# File 'lib/box2d_types.rb', line 738

def self.create_as(_bodyCount_, _shapeCount_, _contactCount_, _jointCount_, _islandCount_, _stackUsed_, _staticTreeHeight_, _treeHeight_, _byteCount_, _taskCount_, _colorCounts_)
  instance = Counters.new
  instance[:bodyCount] = _bodyCount_
  instance[:shapeCount] = _shapeCount_
  instance[:contactCount] = _contactCount_
  instance[:jointCount] = _jointCount_
  instance[:islandCount] = _islandCount_
  instance[:stackUsed] = _stackUsed_
  instance[:staticTreeHeight] = _staticTreeHeight_
  instance[:treeHeight] = _treeHeight_
  instance[:byteCount] = _byteCount_
  instance[:taskCount] = _taskCount_
  instance[:colorCounts] = _colorCounts_
  instance
end

Instance Method Details

#bodyCountObject



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

def bodyCount = self[:bodyCount]

#bodyCount=(v) ⇒ Object



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

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

#byteCountObject



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

def byteCount = self[:byteCount]

#byteCount=(v) ⇒ Object



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

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

#colorCountsObject



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

def colorCounts = self[:colorCounts]

#colorCounts=(v) ⇒ Object



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

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

#contactCountObject



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

def contactCount = self[:contactCount]

#contactCount=(v) ⇒ Object



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

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

#islandCountObject



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

def islandCount = self[:islandCount]

#islandCount=(v) ⇒ Object



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

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

#jointCountObject



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

def jointCount = self[:jointCount]

#jointCount=(v) ⇒ Object



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

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

#shapeCountObject



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

def shapeCount = self[:shapeCount]

#shapeCount=(v) ⇒ Object



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

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

#stackUsedObject



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

def stackUsed = self[:stackUsed]

#stackUsed=(v) ⇒ Object



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

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

#staticTreeHeightObject



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

def staticTreeHeight = self[:staticTreeHeight]

#staticTreeHeight=(v) ⇒ Object



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

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

#taskCountObject



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

def taskCount = self[:taskCount]

#taskCount=(v) ⇒ Object



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

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

#treeHeightObject



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

def treeHeight = self[:treeHeight]

#treeHeight=(v) ⇒ Object



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

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