mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
use OTP barrier instead of toontown
This commit is contained in:
parent
4ceb6ccb17
commit
be64a3bd8a
@ -433,7 +433,7 @@ class DistributedObjectAI(DirectObject):
|
|||||||
# simultaneously on different lists of avatars, although they
|
# simultaneously on different lists of avatars, although they
|
||||||
# should have different names.
|
# should have different names.
|
||||||
|
|
||||||
from toontown.ai import ToonBarrier
|
from otp.ai import Barrier
|
||||||
context = self.__nextBarrierContext
|
context = self.__nextBarrierContext
|
||||||
# We assume the context number is passed as a uint16.
|
# We assume the context number is passed as a uint16.
|
||||||
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
||||||
@ -441,7 +441,7 @@ class DistributedObjectAI(DirectObject):
|
|||||||
assert(self.notify.debug('beginBarrier(%s, %s, %s, %s)' % (context, name, avIds, timeout)))
|
assert(self.notify.debug('beginBarrier(%s, %s, %s, %s)' % (context, name, avIds, timeout)))
|
||||||
|
|
||||||
if avIds:
|
if avIds:
|
||||||
barrier = ToonBarrier.ToonBarrier(
|
barrier = Barrier.Barrier(
|
||||||
name, self.uniqueName(name), avIds, timeout,
|
name, self.uniqueName(name), avIds, timeout,
|
||||||
doneFunc = PythonUtil.Functor(self.__barrierCallback, context, callback))
|
doneFunc = PythonUtil.Functor(self.__barrierCallback, context, callback))
|
||||||
self.__barriers[context] = barrier
|
self.__barriers[context] = barrier
|
||||||
|
@ -428,7 +428,7 @@ class DistributedObjectUD(DirectObject):
|
|||||||
# simultaneously on different lists of avatars, although they
|
# simultaneously on different lists of avatars, although they
|
||||||
# should have different names.
|
# should have different names.
|
||||||
|
|
||||||
from toontown.ai import ToonBarrier
|
from otp.ai import Barrier
|
||||||
context = self.__nextBarrierContext
|
context = self.__nextBarrierContext
|
||||||
# We assume the context number is passed as a uint16.
|
# We assume the context number is passed as a uint16.
|
||||||
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
||||||
@ -436,7 +436,7 @@ class DistributedObjectUD(DirectObject):
|
|||||||
assert(self.notify.debug('beginBarrier(%s, %s, %s, %s)' % (context, name, avIds, timeout)))
|
assert(self.notify.debug('beginBarrier(%s, %s, %s, %s)' % (context, name, avIds, timeout)))
|
||||||
|
|
||||||
if avIds:
|
if avIds:
|
||||||
barrier = ToonBarrier.ToonBarrier(
|
barrier = Barrier.Barrier(
|
||||||
name, self.uniqueName(name), avIds, timeout,
|
name, self.uniqueName(name), avIds, timeout,
|
||||||
doneFunc = PythonUtil.Functor(self.__barrierCallback, context, callback))
|
doneFunc = PythonUtil.Functor(self.__barrierCallback, context, callback))
|
||||||
self.__barriers[context] = barrier
|
self.__barriers[context] = barrier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user