[REF] Unit Types

Discussion in 'Mod Discussions' started by stuart98, June 11, 2014.

  1. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Unit types are 64 bit. They are not mutually exclusive. Eventually we might create the mapping from a JSON file, but until then it is hard coded in C++.

    Here is the list of currently used values:
    UNITTYPE_Commander,
    UNITTYPE_Fabber,
    UNITTYPE_Debug,
    UNITTYPE_Tank,
    UNITTYPE_Bot,
    UNITTYPE_Bomber,
    UNITTYPE_Fighter,
    UNITTYPE_Gunship,
    UNITTYPE_Transport,
    UNITTYPE_Teleporter,
    UNITTYPE_Scout,
    UNITTYPE_Structure,
    UNITTYPE_Mobile,
    UNITTYPE_Wall,
    UNITTYPE_Sub,
    UNITTYPE_Nuke,
    UNITTYPE_NukeDefense,
    UNITTYPE_Heavy,
    UNITTYPE_Artillery,
    UNITTYPE_Tactical,
    UNITTYPE_LaserPlatform,
    UNITTYPE_AirDefense,
    UNITTYPE_SurfaceDefense,
    UNITTYPE_OrbitalDefense,

    UNITTYPE_MetalProduction,
    UNITTYPE_EnergyProduction,
    UNITTYPE_Construction,

    UNITTYPE_Land,
    UNITTYPE_Naval,
    UNITTYPE_Air,
    UNITTYPE_Orbital,

    UNITTYPE_Basic,
    UNITTYPE_Advanced,
    UNITTYPE_CmdBuild,
    UNITTYPE_FabBuild,
    UNITTYPE_FabAdvBuild,
    UNITTYPE_FabOrbBuild,
    UNITTYPE_FactoryBuild,
    UNITTYPE_CombatFabBuild,
    UNITTYPE_CombatFabAdvBuild,

    UNITTYPE_Economy,
    UNITTYPE_Factory,
    UNITTYPE_Defense,
    UNITTYPE_Offense,
    UNITTYPE_Recon,
    UNITTYPE_NoBuild,
    Last edited: June 11, 2014
  2. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
  3. Dementiurge

    Dementiurge Post Master General

    Messages:
    1,094
    Likes Received:
    693
  4. Shalkka

    Shalkka Active Member

    Messages:
    166
    Likes Received:
    51
    I think this means there is no way for a modder to create custom unittypes?
  5. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Correct. By using a combination of unit types on a unit that make no sense though (Structure and mobile, for example) and giving those unit types as build prerequisites on a factory you can accomplish the same thing, in a more complex fashion.
    thetrophysystem likes this.

Share This Page