How to use the sc2reader.old_data.GameObject function in sc2reader

To help you get started, we’ve selected a few sc2reader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
# Buildings
class Nexus(GameObject, Main, Production, Protoss):
    code = 0x5701
    train = {
        0x022000: 'Probe',
        0x003b00: 'Mothership',
    }
    spells = {
        0x012520: 'Chrono Boost',
    }
    abilities = {
        0x011a10: 'Set rally point',
        0x011a20: 'Set rally target',
    }
class Pylon(GameObject, Building, Protoss):
    code = 0x5801
class Assimilator(GameObject, Building, Protoss):
    code = 0x5901
class Gateway(GameObject, Production, Protoss):
    code = 0x5a01
    train = {
        0x021d00: 'Zealot',
        0x021d01: 'Stalker',
        0x021d03: 'High Templar',
        0x021d04: 'Dark Templar',
        0x021d05: 'Sentry',
    }
    @Mode(0x031500, 0x031600)
    class WarpGate(Production): 
        code = 0xa101
        full_name = "Warp Gate"
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
@Transport(0x030a01, None, 0x030a33, 0x030a20)
class NydusWorm(GameObject, Building, Zerg):
    code = 0xa901

@Transport(0x030412, 0x030422, 0x030433, 0x030404)
class Overlord(GameObject, Unit, Zerg):
    code = 0x8601
    abilities = {
        0x033400: 'Generate Creep',
        0x033401: 'Stop generating Creep',
        0x030401: 'Unload all at',
    }
    @Mode(0x030e00, 0x030e01)
    class OverseerCocoon(object):
        code = 0x9c01
class Overseer(GameObject, Unit, Detector):
    code = 0x9d01
    spells = {
        0x011000: 'Changeling',
        0x040320: 'Contaminate',
    }
class Mutalisk(GameObject, Unit, Army, Zerg):
    code = 0x8801
class Corruptor(GameObject, Unit, Army, Zerg):
    code = 0x8c01
    spells = {
        0x003120: 'Corruption',
    }
    @Mode(0x023300, 0x023301)
    class BroodLordCocoon(object):
        code = 0x8d01
class BroodLord(GameObject, Unit, Army):
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
0x021800: 'Cloaking Field',
        0x021802: 'Caduceus Reactor',
        0x021803: 'Corvid Rector',
        0x021806: 'Seeker Missile',
        0x021807: 'Durable Materials',
    }
    abilities = {
        0x012f00: 'Cancel Research',
        0x012f31: 'Cancel specific Research',
    }
class Reactor(GameObject, Building, Terran):
    code = 0x1f01
class Barracks(GameObject, Building, Terran):
    code = 0x4201
    name = "Reactor (Barracks)"
class Factory(GameObject, Building, Terran):
    code = 0x4401
    name = "Reactor (Factory)"
class Starport(GameObject, Building, Terran):
    code = 0x4601
    name = "Reactor (Starport)"
class FusionCore(GameObject, Building, Terran):
    code = 0x3a01
    research = {
        0x031c00: 'Weapon Refit',
        0x031c01: 'Behemoth Reactor',
    }

#
# Protoss
#
class Probe(GameObject, Worker, Protoss):