Trees | Indices | Help |
|
---|
|
PyObjectPlus --+ | CValue --+ | CPropValue --+ | CListValue
CListValue
This is a list like object used in the game engine internally that behaves similar to a python list in most ways.
As well as the normal index lookup. val= clist[i]
CListValue supports string lookups. val=
scene.objects["OBCube"]
len(clist), list(clist),
clist[0:10]
are also supported.
|
|||
|
|||
integer |
|
||
integer |
|
||
|
|||
|
|||
boolean |
|
||
|
|||
Deprecated | |||
---|---|---|---|
Inherited from CValue | |||
string |
|
||
Inherited from PyObjectPlus | |||
bool |
|
|
|||
Inherited from CValue | |||
---|---|---|---|
string |
name The name of this CValue derived object (read-only). |
||
Inherited from PyObjectPlus | |||
bool |
invalid Test if the object has been freed by the game engine and is no longer valid. |
|
Add an item to the list (like pythons append) Warning: Appending values to the list can cause crashes when the list is used internally by the game engine. |
|
|
|
|
This is a funtion especially for the game engine to return a value with a spesific id. Since object names are not always unique, the id of an object can be used to get an object from the CValueList. Example.
Where myObID is an int or long from the id function. This has the advantage that you can store the id in places you could not store a gameObject. Warning: the id is derived from a memory location and will be different each time the game engine starts. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 26 12:07:39 2009 | http://epydoc.sourceforge.net |