def _LoadActionObjectData(self, actionObjectUID): """ Loads ActionObject object-level data with the given UID. In: actionObjectUID - The UID of the action object to load Out: aoData - Appended to self.actionObjectDatas Return: aoData - The action object data just loaded and stored """ aoDbData = self.GetActionObjectRecord(actionObjectUID) if aoDbData is None: self.LogError('Error getting ActionObject record with UID %d.' % actionObjectUID) return aoData = GameWorld.ActionObjectData(actionObjectUID, str(aoDbData['Name'])) if self._LoadExitPoints(aoData) is False: self.LogError( 'Error loading exit points for ActionObject data with UID %d.' % actionObjectUID) return if self._LoadActionStationLocalData(aoData) is False: self.LogError( 'Error loading action stations for ActionObject data with UID %d.' % actionObjectUID) return self.manager.AddActionObjectData(aoData) return aoData
def _LoadActionObjectData(self, actionObjectUID): aoDbData = self.GetActionObjectRecord(actionObjectUID) if aoDbData is None: self.LogError('Error getting ActionObject record with UID %d.' % actionObjectUID) return aoData = GameWorld.ActionObjectData(actionObjectUID, str(aoDbData['Name'])) if self._LoadExitPoints(aoData) is False: self.LogError( 'Error loading exit points for ActionObject data with UID %d.' % actionObjectUID) return if self._LoadActionStationLocalData(aoData) is False: self.LogError( 'Error loading action stations for ActionObject data with UID %d.' % actionObjectUID) return self.manager.AddActionObjectData(aoData) return aoData