Mark optional IMD_model fields as such

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6315 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-11-16 00:34:39 +00:00
parent 91dbb225df
commit 5b1c63f31c
3 changed files with 24 additions and 12 deletions

View File

@ -68,7 +68,7 @@ CREATE TABLE `SENSOR` (
time INTEGER NOT NULL, time INTEGER NOT NULL,
-- The turret mount to use. -- The turret mount to use.
pMountGraphic TEXT NOT NULL pMountGraphic TEXT
); );
CREATE TABLE `ECM` ( CREATE TABLE `ECM` (
@ -85,7 +85,7 @@ CREATE TABLE `ECM` (
location INTEGER NOT NULL, location INTEGER NOT NULL,
-- The turret mount to use. -- The turret mount to use.
pMountGraphic TEXT NOT NULL pMountGraphic TEXT
); );
CREATE TABLE `REPAIR` ( CREATE TABLE `REPAIR` (
@ -105,7 +105,7 @@ CREATE TABLE `REPAIR` (
time INTEGER NOT NULL, time INTEGER NOT NULL,
-- The turret mount to use. -- The turret mount to use.
pMountGraphic TEXT NOT NULL pMountGraphic TEXT
); );
CREATE TABLE `WEAPON` ( CREATE TABLE `WEAPON` (
@ -223,7 +223,7 @@ CREATE TABLE `WEAPON` (
-- Graphics used for the weapon -- Graphics used for the weapon
-- The turret mount to use -- The turret mount to use
pMountGraphic TEXT NOT NULL, pMountGraphic TEXT,
-- The muzzle flash -- The muzzle flash
pMuzzleGraphic TEXT NOT NULL, pMuzzleGraphic TEXT NOT NULL,
@ -241,7 +241,7 @@ CREATE TABLE `WEAPON` (
pWaterHitGraphic TEXT NOT NULL, pWaterHitGraphic TEXT NOT NULL,
-- The trail used for in flight -- The trail used for in flight
pTrailGraphic TEXT NOT NULL, pTrailGraphic TEXT,
-- Audio -- Audio
iAudioFireID INTEGER NOT NULL, iAudioFireID INTEGER NOT NULL,
@ -268,6 +268,6 @@ CREATE TABLE `CONSTRUCT` (
constructPoints INTEGER NOT NULL, constructPoints INTEGER NOT NULL,
-- The turret mount to use -- The turret mount to use
pMountGraphic TEXT NOT NULL pMountGraphic TEXT
); );

View File

@ -523,6 +523,8 @@ typedef struct SENSOR_STATS
/** /**
* The turret mount to use. * The turret mount to use.
*
* This field is optional and can be NULL to indicate that it has no value
*/ */
iIMDShape* pMountGraphic; iIMDShape* pMountGraphic;
} WZ_DECL_MAY_ALIAS SENSOR_STATS; } WZ_DECL_MAY_ALIAS SENSOR_STATS;
@ -595,6 +597,8 @@ typedef struct ECM_STATS
/** /**
* The turret mount to use. * The turret mount to use.
*
* This field is optional and can be NULL to indicate that it has no value
*/ */
iIMDShape* pMountGraphic; iIMDShape* pMountGraphic;
} WZ_DECL_MAY_ALIAS ECM_STATS; } WZ_DECL_MAY_ALIAS ECM_STATS;
@ -672,6 +676,8 @@ typedef struct REPAIR_STATS
/** /**
* The turret mount to use. * The turret mount to use.
*
* This field is optional and can be NULL to indicate that it has no value
*/ */
iIMDShape* pMountGraphic; iIMDShape* pMountGraphic;
} WZ_DECL_MAY_ALIAS REPAIR_STATS; } WZ_DECL_MAY_ALIAS REPAIR_STATS;
@ -911,6 +917,8 @@ typedef struct WEAPON_STATS
/** /**
* Graphics used for the weapon * Graphics used for the weapon
* The turret mount to use * The turret mount to use
*
* This field is optional and can be NULL to indicate that it has no value
*/ */
iIMDShape* pMountGraphic; iIMDShape* pMountGraphic;
@ -941,6 +949,8 @@ typedef struct WEAPON_STATS
/** /**
* The trail used for in flight * The trail used for in flight
*
* This field is optional and can be NULL to indicate that it has no value
*/ */
iIMDShape* pTrailGraphic; iIMDShape* pTrailGraphic;
@ -1072,6 +1082,8 @@ typedef struct CONSTRUCT_STATS
/** /**
* The turret mount to use * The turret mount to use
*
* This field is optional and can be NULL to indicate that it has no value
*/ */
iIMDShape* pMountGraphic; iIMDShape* pMountGraphic;
} WZ_DECL_MAY_ALIAS CONSTRUCT_STATS; } WZ_DECL_MAY_ALIAS CONSTRUCT_STATS;

View File

@ -227,7 +227,7 @@ struct SENSOR
UDWORD time; UDWORD time;
# The turret mount to use. # The turret mount to use.
IMD_model pMountGraphic; IMD_model optional pMountGraphic;
end; end;
struct ECM struct ECM
@ -244,7 +244,7 @@ struct ECM
UDWORD location; UDWORD location;
# The turret mount to use. # The turret mount to use.
IMD_model pMountGraphic; IMD_model optional pMountGraphic;
end; end;
struct REPAIR struct REPAIR
@ -264,7 +264,7 @@ struct REPAIR
UDWORD time; UDWORD time;
# The turret mount to use. # The turret mount to use.
IMD_model pMountGraphic; IMD_model optional pMountGraphic;
end; end;
enum FIREONMOVE enum FIREONMOVE
@ -367,7 +367,7 @@ struct WEAPON
# Graphics used for the weapon # Graphics used for the weapon
# The turret mount to use # The turret mount to use
IMD_model pMountGraphic; IMD_model optional pMountGraphic;
# The muzzle flash # The muzzle flash
IMD_model pMuzzleGraphic; IMD_model pMuzzleGraphic;
# The ammo in flight # The ammo in flight
@ -379,7 +379,7 @@ struct WEAPON
# The ammo hitting water # The ammo hitting water
IMD_model pWaterHitGraphic; IMD_model pWaterHitGraphic;
# The trail used for in flight # The trail used for in flight
IMD_model pTrailGraphic; IMD_model optional pTrailGraphic;
# Audio # Audio
SDWORD iAudioFireID; SDWORD iAudioFireID;
@ -405,7 +405,7 @@ struct CONSTRUCT
UDWORD constructPoints; UDWORD constructPoints;
# The turret mount to use # The turret mount to use
IMD_model pMountGraphic; IMD_model optional pMountGraphic;
end; end;
enum TRAVEL_MEDIUM enum TRAVEL_MEDIUM