Browse Source

Imported remaining game/gbe modules and fixed syntax bug in node.

master
Bryan Miller 6 years ago
parent
commit
387ca30bcb
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      game/gbe/__init__.py
  2. +1
    -1
      game/gbe/nodes.py

+ 2
- 0
game/gbe/__init__.py View File

from .core import Time from .core import Time
from .core import Display from .core import Display
from . import events
from . import nodes

+ 1
- 1
game/gbe/nodes.py View File

if node.parent is not None: if node.parent is not None:
if node.parent == self: if node.parent == self:
return # Nothing to do. Given node already parented to this node. return # Nothing to do. Given node already parented to this node.
if reparent = False:
if reparent == False:
raise NodeError("Node already parented.") raise NodeError("Node already parented.")
if node.parent.remove_node(node) != node: if node.parent.remove_node(node) != node:
raise NodeError("Failed to remove given node from it's current parent.") raise NodeError("Failed to remove given node from it's current parent.")

Loading…
Cancel
Save