How to use the sc2reader.old_data.Unit 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
}

class DarkTemplar(GameObject, Unit, Army, Protoss):
    code = 0x6801
    @Upgrade(0x033c00, 0x0) # TODO: cancel code?
    class Archon(GameObject, Unit, Army, Protoss):
        code = 0xa801
class Immortal(GameObject, Unit, Army, Protoss):
    code = 0x6f01
class Colossus(GameObject, Unit, Army, Protoss):
    code = 0x1d01
class Observer(GameObject, Unit, Detector, Protoss):
    code = 0x6e01

@Transport(0x021c12, 0x021c22, 0x021c33, 0x021c20)
class WarpPrism(GameObject, Unit, Army, Protoss):
    code = 0x6d01
    @Mode(0x031a00, 0x031b00)
    class Phasing(object):
        code = 0xa401
class Phoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a01
    abilities = {
        0x010c01: 'Cancel Graviton Beam',
    }
    spells = {
        0x010c20: 'Graviton Beam',
    }
class VoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c01
class Carrier(GameObject, Unit, Army, Protoss):
    code = 0x6b01
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
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):
    code = 0x8e01
# Buildings
class SpineCrawler(GameObject, Building, Zerg):
    code = 0x7e01
    @Mode(0x033600, 0x033810, 0x033801)
    class Uprooted(object):
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
train = {
        0x022400: 'Interceptor',
    }
class Mothership(GameObject, Unit, Army, Protoss):
    code = 0x2401
    spells = {
        0x032310: 'Vortex',
        0x003d10: 'Mass Recall',
    }
class HallucinatedImmortal(GameObject, Unit, Army, Protoss):
    code = 0x6f02
class HallucinatedColossus(GameObject, Unit, Army, Protoss):
    code = 0x1d02
class HallucinatedPhoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a02
class HallucinatedVoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c02

# 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',
    }
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
0x010c20: 'Graviton Beam',
    }
class VoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c01
class Carrier(GameObject, Unit, Army, Protoss):
    code = 0x6b01
    train = {
        0x022400: 'Interceptor',
    }
class Mothership(GameObject, Unit, Army, Protoss):
    code = 0x2401
    spells = {
        0x032310: 'Vortex',
        0x003d10: 'Mass Recall',
    }
class HallucinatedImmortal(GameObject, Unit, Army, Protoss):
    code = 0x6f02
class HallucinatedColossus(GameObject, Unit, Army, Protoss):
    code = 0x1d02
class HallucinatedPhoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a02
class HallucinatedVoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c02

# Buildings
class Nexus(GameObject, Main, Production, Protoss):
    code = 0x5701
    train = {
        0x022000: 'Probe',
        0x003b00: 'Mothership',
    }
    spells = {
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
class Phoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a01
    abilities = {
        0x010c01: 'Cancel Graviton Beam',
    }
    spells = {
        0x010c20: 'Graviton Beam',
    }
class VoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c01
class Carrier(GameObject, Unit, Army, Protoss):
    code = 0x6b01
    train = {
        0x022400: 'Interceptor',
    }
class Mothership(GameObject, Unit, Army, Protoss):
    code = 0x2401
    spells = {
        0x032310: 'Vortex',
        0x003d10: 'Mass Recall',
    }
class HallucinatedImmortal(GameObject, Unit, Army, Protoss):
    code = 0x6f02
class HallucinatedColossus(GameObject, Unit, Army, Protoss):
    code = 0x1d02
class HallucinatedPhoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a02
class HallucinatedVoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c02

# Buildings
class Nexus(GameObject, Main, Production, Protoss):
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
    @Upgrade(0x003a00, 0x012b00)
    class BanelingCocoon(object):
        code = 0x2201
    @Mode(0x023c00, 0x023d00)
    class Burrowed(object):
        code = 0x9301
class Baneling(GameObject, Unit, Army):
    code = 0x2301
    abilities = {
        0x003500: 'Explode',
        0x011D20: 'Attack Structure'
    }
    @Mode(0x023400, 0x023500)
    class Burrowed(object):
        code = 0x8f01
class Roach(GameObject, Unit, Army, Zerg):
    code = 0x8a01
    @Mode(0x023a00, 0x023b00)
    class Burrowed(Moveable):
        code = 0x9201
        move = {
            0x033200: 'Stop', # XXX what else?
        }
class Hydralisk(GameObject, Unit, Army, Zerg):
    code = 0x8701
    @Mode(0x023800, 0x023900)
    class Burrowed(object):
        code = 0x9101
class Infestor(GameObject, Unit, Army, Zerg):
    code = 0x8b01
    spells = {
        0x003710: 'Fungal Growth',
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
class Carrier(GameObject, Unit, Army, Protoss):
    code = 0x6b01
    train = {
        0x022400: 'Interceptor',
    }
class Mothership(GameObject, Unit, Army, Protoss):
    code = 0x2401
    spells = {
        0x032310: 'Vortex',
        0x003d10: 'Mass Recall',
    }
class HallucinatedImmortal(GameObject, Unit, Army, Protoss):
    code = 0x6f02
class HallucinatedColossus(GameObject, Unit, Army, Protoss):
    code = 0x1d02
class HallucinatedPhoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a02
class HallucinatedVoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c02

# Buildings
class Nexus(GameObject, Main, Production, Protoss):
    code = 0x5701
    train = {
        0x022000: 'Probe',
        0x003b00: 'Mothership',
    }
    spells = {
        0x012520: 'Chrono Boost',
    }
    abilities = {
        0x011a10: 'Set rally point',