Package scripts :: Package objects :: Script base :: Class Carryable
[hide private]
[frames] | no frames]

Class Carryable

source code

object --+        
         |        
BaseObject --+    
             |    
 DynamicObject --+
                 |
                Carryable

Allows objects to be stored in containers

Instance Methods [hide private]
 
__init__(self, weight=0.0, bulk=0.0, **kwargs)
Initialise minimalistic set of data
source code
 
getInventoryThumbnail(self)
Returns the inventory thumbnail of the object
source code

Inherited from DynamicObject: __getstate__, __setstate__, getStateForSaving, prepareStateForSaving, restoreState

Inherited from BaseObject: trueAttr

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, weight=0.0, bulk=0.0, **kwargs)
(Constructor)

source code 

Initialise minimalistic set of data

Parameters:
  • name - Object display name
  • name - Filename of image to use in inventory
Overrides: object.__init__
(inherited documentation)