Class: Box2D::Counters
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::Counters
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #bodyCount ⇒ Object
- #bodyCount=(v) ⇒ Object
- #byteCount ⇒ Object
- #byteCount=(v) ⇒ Object
- #colorCounts ⇒ Object
- #colorCounts=(v) ⇒ Object
- #contactCount ⇒ Object
- #contactCount=(v) ⇒ Object
- #islandCount ⇒ Object
- #islandCount=(v) ⇒ Object
- #jointCount ⇒ Object
- #jointCount=(v) ⇒ Object
- #shapeCount ⇒ Object
- #shapeCount=(v) ⇒ Object
- #stackUsed ⇒ Object
- #stackUsed=(v) ⇒ Object
- #staticTreeHeight ⇒ Object
- #staticTreeHeight=(v) ⇒ Object
- #taskCount ⇒ Object
- #taskCount=(v) ⇒ Object
- #treeHeight ⇒ Object
- #treeHeight=(v) ⇒ Object
Class Method Details
.create_as(_bodyCount_, _shapeCount_, _contactCount_, _jointCount_, _islandCount_, _stackUsed_, _staticTreeHeight_, _treeHeight_, _byteCount_, _taskCount_, _colorCounts_) ⇒ Object
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 |
# File 'lib/box2d_types.rb', line 687 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
#bodyCount ⇒ Object
665 |
# File 'lib/box2d_types.rb', line 665 def bodyCount = self[:bodyCount] |
#bodyCount=(v) ⇒ Object
666 |
# File 'lib/box2d_types.rb', line 666 def bodyCount=(v) self[:bodyCount] = v end |
#byteCount ⇒ Object
681 |
# File 'lib/box2d_types.rb', line 681 def byteCount = self[:byteCount] |
#byteCount=(v) ⇒ Object
682 |
# File 'lib/box2d_types.rb', line 682 def byteCount=(v) self[:byteCount] = v end |
#colorCounts ⇒ Object
685 |
# File 'lib/box2d_types.rb', line 685 def colorCounts = self[:colorCounts] |
#colorCounts=(v) ⇒ Object
686 |
# File 'lib/box2d_types.rb', line 686 def colorCounts=(v) self[:colorCounts] = v end |
#contactCount ⇒ Object
669 |
# File 'lib/box2d_types.rb', line 669 def contactCount = self[:contactCount] |
#contactCount=(v) ⇒ Object
670 |
# File 'lib/box2d_types.rb', line 670 def contactCount=(v) self[:contactCount] = v end |
#islandCount ⇒ Object
673 |
# File 'lib/box2d_types.rb', line 673 def islandCount = self[:islandCount] |
#islandCount=(v) ⇒ Object
674 |
# File 'lib/box2d_types.rb', line 674 def islandCount=(v) self[:islandCount] = v end |
#jointCount ⇒ Object
671 |
# File 'lib/box2d_types.rb', line 671 def jointCount = self[:jointCount] |
#jointCount=(v) ⇒ Object
672 |
# File 'lib/box2d_types.rb', line 672 def jointCount=(v) self[:jointCount] = v end |
#shapeCount ⇒ Object
667 |
# File 'lib/box2d_types.rb', line 667 def shapeCount = self[:shapeCount] |
#shapeCount=(v) ⇒ Object
668 |
# File 'lib/box2d_types.rb', line 668 def shapeCount=(v) self[:shapeCount] = v end |
#stackUsed ⇒ Object
675 |
# File 'lib/box2d_types.rb', line 675 def stackUsed = self[:stackUsed] |
#stackUsed=(v) ⇒ Object
676 |
# File 'lib/box2d_types.rb', line 676 def stackUsed=(v) self[:stackUsed] = v end |
#staticTreeHeight ⇒ Object
677 |
# File 'lib/box2d_types.rb', line 677 def staticTreeHeight = self[:staticTreeHeight] |
#staticTreeHeight=(v) ⇒ Object
678 |
# File 'lib/box2d_types.rb', line 678 def staticTreeHeight=(v) self[:staticTreeHeight] = v end |
#taskCount ⇒ Object
683 |
# File 'lib/box2d_types.rb', line 683 def taskCount = self[:taskCount] |
#taskCount=(v) ⇒ Object
684 |
# File 'lib/box2d_types.rb', line 684 def taskCount=(v) self[:taskCount] = v end |
#treeHeight ⇒ Object
679 |
# File 'lib/box2d_types.rb', line 679 def treeHeight = self[:treeHeight] |
#treeHeight=(v) ⇒ Object
680 |
# File 'lib/box2d_types.rb', line 680 def treeHeight=(v) self[:treeHeight] = v end |