Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bge.types.PyObjectPlus.rst « bge_types « rst « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c8ddb9bcf5e96533cf0b5592e98686cb84ecdce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PyObjectPlus
============

.. class:: PyObjectPlus

   PyObjectPlus base class of most other types in the Game Engine.

   .. attribute:: invalid

      Test if the object has been freed by the game engine and is no longer valid.
       
      Normally this is not a problem but when storing game engine data in the GameLogic module, 
      KX_Scenes or other KX_GameObjects its possible to hold a reference to invalid data.
      Calling an attribute or method on an invalid object will raise a SystemError.
       
      The invalid attribute allows testing for this case without exception handling.

      :type: boolean