mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
*** empty log message ***
This commit is contained in:
parent
8109a44405
commit
a8f2403049
@ -51,16 +51,18 @@ class ClientDistUpdate:
|
|||||||
|
|
||||||
def extractArgs(self, di):
|
def extractArgs(self, di):
|
||||||
args = []
|
args = []
|
||||||
for i in self.types:
|
assert(len(self.types) == len(self.divisors))
|
||||||
args.append(di.getArg(i))
|
numTypes = len(self.types)
|
||||||
|
for i in range(numTypes):
|
||||||
|
args.append(di.getArg(self.types[i], self.divisors[i]))
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def addArgs(self, datagram, args):
|
def addArgs(self, datagram, args):
|
||||||
# Add the args to the datagram
|
# Add the args to the datagram
|
||||||
numElems = len(args)
|
numElems = len(args)
|
||||||
assert (numElems == len(self.types))
|
assert (numElems == len(self.types) == len(self.divisors))
|
||||||
for i in range(0, numElems):
|
for i in range(0, numElems):
|
||||||
datagram.putArg(args[i], self.types[i])
|
datagram.putArg(args[i], self.types[i], self.divisors[i])
|
||||||
|
|
||||||
def sendUpdate(self, cr, do, args):
|
def sendUpdate(self, cr, do, args):
|
||||||
datagram = Datagram.Datagram()
|
datagram = Datagram.Datagram()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user