mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Make it a list of servers in call
This commit is contained in:
parent
e21f1eae8b
commit
9894b03b1c
@ -113,11 +113,14 @@ class ClusterClient(DirectObject.DirectObject):
|
||||
def loadModel(self, nodePath):
|
||||
pass
|
||||
|
||||
def __call__(self, commandString, fLocally = 1, serverNum = None):
|
||||
def __call__(self, commandString, fLocally = 1, serverList = []):
|
||||
# Execute remotely
|
||||
if serverNum is not None:
|
||||
self.serverList[serverNum].sendCommandString(commandString)
|
||||
if serverList:
|
||||
# Passed in list of servers
|
||||
for serverNum in serverList:
|
||||
self.serverList[serverNum].sendCommandString(commandString)
|
||||
else:
|
||||
# All servers
|
||||
for server in self.serverList:
|
||||
server.sendCommandString(commandString)
|
||||
if fLocally:
|
||||
|
Loading…
x
Reference in New Issue
Block a user