def _LoadActionEntries(self, asGlobalData): actionMappingRows = self.GetActionStationActions(asGlobalData.UID) for action in actionMappingRows: tagList = '' entry = None for potentialMatch in asGlobalData.actionEntries: if potentialMatch.MatchEntTags(tagList): entry = potentialMatch break if entry is None: entry = GameWorld.ActionEntry(tagList) asGlobalData.actionEntries.append(entry) entry.AddAction(action) return True
def _LoadActionEntries(self, asGlobalData): """ Load the ActionEntried for the ActionStation specified. In: asGlobalData - The "global data" for the ActionStation we're loading. Out: The ActionEntry list within the ActionStation global data. Return: True if successful, False otherwise. """ actionMappingRows = self.GetActionStationActions(asGlobalData.UID) for action in actionMappingRows: tagList = '' entry = None for potentialMatch in asGlobalData.actionEntries: if potentialMatch.MatchEntTags(tagList): entry = potentialMatch break if entry is None: entry = GameWorld.ActionEntry(tagList) asGlobalData.actionEntries.append(entry) entry.AddAction(action) return True