Skip to content

Instantly share code, notes, and snippets.

@patroza
Created May 25, 2009 08:42
Show Gist options
  • Save patroza/117449 to your computer and use it in GitHub Desktop.
Save patroza/117449 to your computer and use it in GitHub Desktop.
// Main Config
class CfgVehicles
{
class Car
{
// all kinds of settings
};
class Stryker: Car
{
// all kinds of settings
class TransportMagazines
{
// all kinds of items
};
};
};
// some other config
class CfgVehicles
{
class Car;
class Stryker: Car
{
class TransportMagazines;
};
class mySuperStryker: Stryker
{
class TransportMagazines: TransportMagazines
{
// some stuff
};
};
};
// Alternative
class CfgVehicles
{
class Car;
class Stryker: Car
{
class TransportMagazines; // You can leave this one out now
};
class mySuperStryker: Stryker
{
class TransportMagazines
{
// some stuff
};
};
};
// Main Config
class CfgVehicles
{
class Car
{
// all kinds of settings
};
class Stryker: Car
{
// all kinds of settings
class TransportMagazines
{
// all kinds of items
};
};
};
// Some other config:
class CfgVehicles
{
class Car;
class Stryker: Car
{
class TransportMagazines
{
// Add stuff
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment