Instantly share code, notes, and snippets.

Embed
What would you like to do?
generated python interface
import schema
import util
from sqlite import Persistable
class Attribute(Persistable):
def __init__(self, gameId, identifier = '', attributeId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class DamageClass(Persistable):
def __init__(self, gameId, identifier = '', damageClassId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class ExperienceGroup(Persistable):
def __init__(self, gameId, identifier = '', experienceGroupId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class Game(Persistable):
def __init__(self, identifier = '', gameId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def loadDamageClasses(self):
def addDamageClass(self):
def loadStates(self):
def addState(self):
def loadStats(self):
def addStat(self):
def loadTypes(self):
def addType(self):
def loadMoves(self):
def addMove(self):
def loadAttributes(self):
def addAttribute(self):
def loadExperienceGroups(self):
def addExperienceGroup(self):
def loadSpecies(self):
def addSpecies(self):
def loadTitans(self):
def addTitan(self):
def upsert(self):
@classmethod
def findAll(cls):
class Language(Persistable):
def __init__(self, identifier = '', languageId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def upsert(self):
@classmethod
def findAll(cls):
class Move(Persistable):
def __init__(self, gameId, identifier = '', typeId = None, power = 0, pp = 0, accuracy = 0, priority = 0, target = 0, damageClassId = None, moveId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def loadStates(self):
def addState(self):
def loadEffects(self):
def addEffect(self):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class MoveEffect(Persistable):
def __init__(self, gameId, moveId, statId = None, stageChange = 0, chance = 0, target = 0, when = 0, moveEffectId = None):
def loadAll(self):
def upsert(self):
@classmethod
def findAll(cls, gameId = None, moveId = None):
class MoveState(Persistable):
def __init__(self, gameId, moveId, stateId = None, chance = 0, target = 0, when = 0, moveStateId = None):
def loadAll(self):
def upsert(self):
@classmethod
def findAll(cls, gameId = None, moveId = None):
class Species(Persistable):
def __init__(self, gameId, speciesId = None):
def loadAll(self):
def loadNames(self):
def setName(self, namesLanguageId, val):
def delName(self, namesLanguageId):
def loadGenus(self):
def setGenus(self, genusLanguageId, val):
def delGenus(self, genusLanguageId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class Stat(Persistable):
def __init__(self, gameId, identifier = '', damageClassId = None, isBattleOnly = False, gameIndex = 0, statId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class State(Persistable):
def __init__(self, gameId, identifier = '', stateId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class Titan(Persistable):
def __init__(self, gameId, identifier = '', speciesId = None, baseExperience = 0, order = 0, isDefault = False, experienceGroupId = None, titanId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def loadAttributes(self):
def setAttribute(self, attributesAttributeId, val):
def delAttribute(self, attributesAttributeId):
def loadTypes(self):
def addType(self, typeId):
def delType(self, typeId):
def loadStats(self):
def addStat(self):
def loadMoves(self):
def addMove(self):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
class TitanMove(Persistable):
def __init__(self, gameId, titanId, moveId, level = 0, order = 0):
def loadAll(self):
@classmethod
def findAll(cls, gameId = None, titanId = None):
class TitanStat(Persistable):
def __init__(self, gameId, titanId, statId, baseValue = 0, effortValue = 0):
def loadAll(self):
@classmethod
def findAll(cls, gameId = None, titanId = None):
class Type(Persistable):
def __init__(self, gameId, identifier = '', damageClassId = None, typeId = None):
def loadAll(self):
def loadTranslations(self):
def setTranslation(self, translationsLanguageId, val):
def delTranslation(self, translationsLanguageId):
def loadDamageFactors(self):
def setDamageFactor(self, damageFactorsTypeId, val):
def delDamageFactor(self, damageFactorsTypeId):
def upsert(self):
@classmethod
def findAll(cls, gameId = None):
import store
en = store.Language('en_US')
en.setTranslation(en.languageId, 'English')
en.upsert()
langs = store.Language.findAll()
game = store.Game('test')
game.setTranslation(en.languageId, 'Test game')
game.upsert()
games = store.Game.findAll()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment