def _LoadExitPointsToList(self, rows, destList): if rows is None: return True for row in rows: exitPoint = GameWorld.ActionExitPoint(row['pos'], row['rot']) destList.append(exitPoint) return True
def _LoadExitPointsToList(self, rows, destList): """ Loads the exit points in the specified rows and stores them in the specified list. In: rows - The DB rows we're loading from destList - The list we're storing to Out: destList - All exit points are stored here Return: True if successful, False otherwise """ if rows is None: return True for row in rows: exitPoint = GameWorld.ActionExitPoint(row['pos'], row['rot']) destList.append(exitPoint) return True