mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added destroy()
This commit is contained in:
parent
e6f847c64b
commit
350c151f87
@ -51,7 +51,7 @@ class DistributedInteractiveEntity(DistributedEntity.DistributedEntity):
|
||||
"""
|
||||
assert(self.debugPrint("generate()"))
|
||||
DistributedEntity.DistributedEntity.generate(self)
|
||||
|
||||
|
||||
def disable(self):
|
||||
assert(self.debugPrint("disable()"))
|
||||
# Go to the off state when the object is put in the cache
|
||||
|
@ -90,6 +90,15 @@ class LogicGateAI(Entity.Entity, PandaObject.PandaObject):
|
||||
self.setLogicType(self.logicType)
|
||||
self.setInput_input1_bool(self.input_input1_bool)
|
||||
self.setInput_input2_bool(self.input_input2_bool)
|
||||
|
||||
def destroy(self):
|
||||
assert(self.debugPrint("destroy()"))
|
||||
self.ignore(self.input1)
|
||||
self.input1 = None
|
||||
self.ignore(self.input2)
|
||||
self.input2 = None
|
||||
Entity.Entity.destroy(self)
|
||||
PandaObject.PandaObject.destroy(self)
|
||||
|
||||
def setLogicType(self, logicType):
|
||||
assert(self.debugPrint("setLogicType(logicType=%s)"%(logicType,)))
|
||||
@ -128,5 +137,5 @@ class LogicGateAI(Entity.Entity, PandaObject.PandaObject):
|
||||
self.accept(self.input2, self.setIsInput2)
|
||||
|
||||
def getName(self):
|
||||
#return "orLoEntity-%s"%(self.entId,)
|
||||
#return "logicGate-%s"%(self.entId,)
|
||||
return "switch-%s"%(self.entId,)
|
||||
|
Loading…
x
Reference in New Issue
Block a user