def __init__(self): # self.id = XElement('id') self.name = XElement('name') self.description = XElement('description') self.XMLMap = XElement('filePath') self.mapItems = XInstance('mapItems', XMLMapItem)
def __init__(self): self.id = XElement('id') self.deviceName = XElement('deviceName') self.MACAddress = XElement('MACAddress') self.name = XElement('name') self.character = XInstance('character', XMLCharacter, True) self.messages = XInstance('messages', XMLMessage)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.targetType = XElement('targetType', ModifierTargetTypes) self.active = XElement('active') self.modifiers = XInstance('modifiers', XMLModifier)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.copper = XElement('copper') self.silver = XElement('silver') self.gold = XElement('gold') # self.amount = XElement('amount') self.effects = XInstance('effects', XMLEffect)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.chance = XAttribElement('chance', 'lang') self.drd_race = XElement('race', Races) self.drd_class = XElement('class', Classes) self.level = XElement('level') self.contexts = XInstance('contexts', XMLAbilityContext)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.mana_cost_initial = XAttribElement('manaInitial', 'lang') self.mana_cost_continual = XAttribElement('manaContinual', 'lang') self.range = XAttribElement('range', 'lang') self.scope = XAttribElement('scope', 'lang') self.cast_time = XElement('castTime') self.duration = XAttribElement('duration', 'lang') self.drd_class = XElement('class', Classes)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.date = XElement('date') self.party = XInstance('party', XMLPartyCharacter) self.locations = XInstance('locations', XMLLocation) self.effects = XInstance('effects', XMLEffect) self.spells = XInstance('spells', XMLSpell) self.abilities = XInstance('abilities', XMLAbility)
def __init__(self): self.id = XElement('id') self.parent_id = XElement('parentId') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.price = XElement('price') self.quality = XElement('quality') self.weightA = XElement('weightA') self.weightB = XElement('weightB') self.weightC = XElement('weightC') self.size = XElement('size', ArmorSize) self.amount = XElement('amount') self.effects = XInstance('effects', XMLEffect)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.monsters = XInstance('monsters', XMLMonster) self.locations = XInstance('locations', XMLLocation) self.maps = XInstance('maps', XMLMap) self.characters = XInstance('scenarioCharacters', XMLCharacter) self.items = XInstance('items', XMLItem) self.armors = XInstance('items', XMLArmor) self.containers = XInstance('items', XMLContainer) self.meleeWeapons = XInstance('items', XMLMeleeWeapon) self.rangedWeapons = XInstance('items', XMLRangeWeapon) self.moneyList = XInstance('items', XMLMoney) self.throwableWeapons = XInstance('items', XMLThrowableWeapon)
def __init__(self): self.id = XElement('id') # self.name = XAttribElement('name', 'lang') # self.description = XAttribElement('description', 'lang') self.targetType = XElement('targetType', ModifierTargetTypes) self.characterTargetAttribute = XElement('characterAttribute', CharacterAttributes) self.itemTargetAttribute = XElement('itemAttribute', ItemsAttributes) self.valueType = XElement('valueType', ModifierValueTypes) self.value = XElement('value')
def __init__(self): self.id = XElement('id') self.parent_id = XElement('parentId') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.price = XElement('price') self.quality = XElement('quality') self.weight = XElement('weight') self.capacity = XElement('capacity') self.amount = XElement('amount') self.effects = XInstance('effects', XMLEffect) self.items = XInstance('items', XMLItem) self.armors = XInstance('items', XMLArmor) self.containers = XInstance('items', XMLContainer) self.meleeWeapons = XInstance('items', XMLMeleeWeapon) self.rangedWeapons = XInstance('items', XMLRangeWeapon) self.moneyList = XInstance('items', XMLMoney) self.throwableWeapons = XInstance('items', XMLThrowableWeapon)
def __init__(self): self.id = XElement('id') self.parent_id = XElement('parentId') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.price = XElement('price') self.weight = XElement('weight') self.initiative = XElement('initiative') self.strength = XElement('strength') self.rampancy = XElement('rampancy') self.rangeLow = XElement('rangeLow') self.rangeMedium = XElement('rangeMedium') self.amount = XElement('amount') self.rangeHigh = XElement('rangeHigh') self.defence = XElement('defence') self.weaponWeight = XElement('weaponWeight', WeaponWeight) self.racial = XElement('racial', Races) self.effects = XInstance('effects', XMLEffect)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.viability = XElement('viability') self.offense = XAttribElement('offense', 'lang') self.defense = XElement('defense') self.endurance = XElement('endurance') self.rampancy = XElement('pugnacity') self.mobility = XElement('mobility') self.perseverance = XElement('perseverance') self.intelligence = XElement('intelligence') self.charisma = XElement('charisma') self.alignment = XElement('alignment', Alignment) self.experience = XElement('experience') self.hp = XElement('HP') self.monsterRace = XElement('race', MonsterRace) self.size = XElement('size', MonsterSize) self.spells = XInstance('spells', XMLSpell) self.abilities = XInstance('abilities', XMLAbility) self.items = XInstance('items', XMLItem) self.armors = XInstance('items', XMLArmor) self.containers = XInstance('items', XMLContainer) self.meleeWeapons = XInstance('items', XMLMeleeWeapon) self.rangedWeapons = XInstance('items', XMLRangeWeapon) self.moneyList = XInstance('items', XMLMoney) self.throwableWeapons = XInstance('items', XMLThrowableWeapon)
def __init__(self): self.id = XElement('id') self.date = XElement('date', valueType='DATETIME') self.text = XElement('text') self.isMine = XElement('isMine')
def __init__(self): # self.id = XElement('id') self.name = XElement('name') self.description = XElement('text') self.number = XElement('number') self.itemType = XElement('mapItemType', MapItemType)
def __init__(self): self.id = XElement('id') self.name = XAttribElement('name', 'lang') self.description = XAttribElement('description', 'lang') self.agility = XElement('agility') self.charisma = XElement('charisma') self.intelligence = XElement('intelligence') self.mobility = XElement('mobility') self.strength = XElement('strength') self.toughness = XElement('toughness') self.age = XElement('age') self.height = XElement('height') self.weight = XElement('weight') self.level = XElement('level') self.xp = XElement('xp') self.maxHealth = XElement('maxHealth') self.maxMana = XElement('maxMana') self.currentHealth = XElement('currentHealth') self.currentMana = XElement('currentMana') self.drdClass = XElement('class', Classes) self.drdRace = XElement('race', Races) self.alignment = XElement('alignment', Alignment) self.spells = XInstance('spells', XMLSpell) self.abilities = XInstance('abilities', XMLAbility) self.effects = XInstance('effects', XMLEffect) # self.items = XInstance('items', XMLItem) # self.armors = XInstance('armors', XMLArmor) # self.containers = XInstance('containers', XMLContainer) # self.meleeWeapons = XInstance('meleeWeapons', XMLMeleeWeapon) # self.rangedWeapons = XInstance('rangedWeapons', XMLRangeWeapon) # self.moneyList = XInstance('moneyList', XMLMoney) # self.throwableWeapons = XInstance('throwableWeapons', XMLThrowableWeapon) self.inventory = XInstance('inventory', XMLContainer, True, 'inventory') self.ground = XInstance('ground', XMLContainer, True, 'ground')