/*

		header file for system link variable

*/



#define GM_GameClearCount		(*( short * )( linkvarbuf + 0 ))

#define GM_TankerClearCount		(*( short * )( linkvarbuf + 2 ))

#define GM_PlantClearCount		(*( short * )( linkvarbuf + 4 ))

#define GM_Configuration		(*( short * )( linkvarbuf + 6 ))

#define GM_GameLevel		(*( short * )( linkvarbuf + 8 ))

#define GM_Result		(*( short * )( linkvarbuf + 10 ))

#define GM_Language		(*( short * )( linkvarbuf + 12 ))

#define GM_ClearFlag		(*( short * )( linkvarbuf + 14 ))

#define GM_ScrAdjX		(*( short * )( linkvarbuf + 16 ))

#define GM_ScrAdjY		(*( short * )( linkvarbuf + 18 ))

#define GM_SaveResidentDir		(( int *)( linkvarbuf + 20 ))

#define GM_SaveAreaDir		(( int *)( linkvarbuf + 36 ))

#define GM_DogTagFlag		(( int *)( linkvarbuf + 52 ))

#define GM_SaveArea		(*( int *)( linkvarbuf + 180 ))

#define GM_SaveMap		(*( int *)( linkvarbuf + 184 ))

#define GM_AreaHistory		(( int *)( linkvarbuf + 188 ))

#define GM_PrevArea		(*( int *)( linkvarbuf + 204 ))

#define GM_SaveX		(*( int *)( linkvarbuf + 208 ))

#define GM_SaveY		(*( int *)( linkvarbuf + 212 ))

#define GM_SaveZ		(*( int *)( linkvarbuf + 216 ))

#define GM_StagePlayTime		(*( int *)( linkvarbuf + 220 ))

#define GM_PlayerPosX		(*( int *)( linkvarbuf + 224 ))

#define GM_PlayerPosY		(*( int *)( linkvarbuf + 228 ))

#define GM_PlayerPosZ		(*( int *)( linkvarbuf + 232 ))

#define GM_PlayerDir		(*( short * )( linkvarbuf + 236 ))

#define GM_PlayerMotion		(*( short * )( linkvarbuf + 238 ))

#define GM_BehindRot		(*( short * )( linkvarbuf + 240 ))

#define GM_Vitality		(*( short * )( linkvarbuf + 242 ))

#define GM_VitalityMax		(*( short * )( linkvarbuf + 244 ))

#define GM_O2		(*( short * )( linkvarbuf + 246 ))

#define GM_O2Max		(*( short * )( linkvarbuf + 248 ))

#define GM_PlayerStance		(*( short * )( linkvarbuf + 250 ))

#define GM_Weapon		(*( short * )( linkvarbuf + 252 ))

#define GM_Item		(*( short * )( linkvarbuf + 254 ))

#define GM_PlayerCold		(*( short * )( linkvarbuf + 256 ))

#define GM_PlayerSneezeTime		(*( short * )( linkvarbuf + 258 ))

#define GM_PlayerColdCount		(*( int *)( linkvarbuf + 260 ))

#define GM_PlayerColdStartTime		(*( int *)( linkvarbuf + 264 ))

#define GM_PlayerStateFlag		(*( short * )( linkvarbuf + 268 ))

#define GM_WeaponPrev		(*( short * )( linkvarbuf + 270 ))

#define GM_ItemPrev		(*( short * )( linkvarbuf + 272 ))

#define GM_AlertMode		(*( short * )( linkvarbuf + 274 ))

#define GM_StartAlertMode		(*( short * )( linkvarbuf + 276 ))

#define GM_SnakeGripMax		(( short * )( linkvarbuf + 278 ))

#define GM_RaidenGripMax		(( short * )( linkvarbuf + 286 ))

#define GM_SnakeChin_Up		(*( short * )( linkvarbuf + 294 ))

#define GM_RaidenChin_Up		(*( short * )( linkvarbuf + 296 ))

#define GM_ContinueCount		(*( short * )( linkvarbuf + 298 ))

#define GM_GameOverCount		(*( short * )( linkvarbuf + 300 ))

#define GM_SaveCount		(*( short * )( linkvarbuf + 302 ))

#define GM_PlayTime		(*( int *)( linkvarbuf + 304 ))

#define GM_LastSave		(*( int *)( linkvarbuf + 308 ))

#define GM_ShootCount		(*( short * )( linkvarbuf + 312 ))

#define GM_AlertCount		(*( short * )( linkvarbuf + 314 ))

#define GM_KillCount		(*( short * )( linkvarbuf + 316 ))

#define GM_DamageCount		(*( short * )( linkvarbuf + 318 ))

#define GM_ClearCode		(( int *)( linkvarbuf + 320 ))

#define GM_MecaKillCount		(*( short * )( linkvarbuf + 336 ))

#define Padding_Dummy		(*( short * )( linkvarbuf + 338 ))

#define _GM_Weapons		(( short * )( linkvarbuf + 340 ))

#define _GM_WeaponsMax		(( short * )( linkvarbuf + 412 ))

#define _GM_Items		(( short * )( linkvarbuf + 484 ))

#define _GM_ItemsMax		(( short * )( linkvarbuf + 580 ))

#define _GM_WeaponsR		(( short * )( linkvarbuf + 676 ))

#define _GM_WeaponsMaxR		(( short * )( linkvarbuf + 748 ))

#define _GM_ItemsR		(( short * )( linkvarbuf + 820 ))

#define _GM_ItemsMaxR		(( short * )( linkvarbuf + 916 ))

#define _GM_WeaponsSaved		(( short * )( linkvarbuf + 1012 ))

#define _GM_ItemsSaved		(( short * )( linkvarbuf + 1084 ))

#define GM_CameraX		(*( int *)( linkvarbuf + 1180 ))

#define GM_CameraY		(*( int *)( linkvarbuf + 1184 ))

#define GM_CameraZ		(*( int *)( linkvarbuf + 1188 ))

#define GM_CamTargX		(*( int *)( linkvarbuf + 1192 ))

#define GM_CamTargY		(*( int *)( linkvarbuf + 1196 ))

#define GM_CamTargZ		(*( int *)( linkvarbuf + 1200 ))

#define GM_CamRotX		(*( int *)( linkvarbuf + 1204 ))

#define GM_CamRotY		(*( int *)( linkvarbuf + 1208 ))

#define GM_AlertLevel		(*( int *)( linkvarbuf + 1212 ))

#define GM_LastCodecFreq		(*( short * )( linkvarbuf + 1216 ))

#define GM_GlobalLoadCount		(*( short * )( linkvarbuf + 1218 ))

#define ENEMEM_EneMem		(( int *)( linkvarbuf + 1220 ))

#define GM_ResetLoadCount		(*( short * )( linkvarbuf + 5444 ))

#define ENEMEM_CurrentNum		(*( short * )( linkvarbuf + 5446 ))

#define GM_TnkerCamStatus		(*( int *)( linkvarbuf + 5448 ))

#define GM_MyName		(( int *)( linkvarbuf + 5452 ))

#define GM_MySexData		(*( int *)( linkvarbuf + 5472 ))

#define GM_MyYearData		(*( int *)( linkvarbuf + 5476 ))

#define GM_MyMonthData		(*( int *)( linkvarbuf + 5480 ))

#define GM_MyDayData		(*( int *)( linkvarbuf + 5484 ))

#define GM_MyBloodData		(*( int *)( linkvarbuf + 5488 ))

#define GM_MyRegionData		(*( int *)( linkvarbuf + 5492 ))

#define GM_StageBreakPoint		(*( int *)( linkvarbuf + 5496 ))

#define GM_SelectStageLimit		(*( int *)( linkvarbuf + 5500 ))

#define GM_StageNum		(*( short * )( linkvarbuf + 5504 ))

#define GM_TitleMenuStatus		(*( short * )( linkvarbuf + 5506 ))

#define GM_ShipwormFlag		(*( short * )( linkvarbuf + 5508 ))

#define GM_ShipwormCorrode		(*( short * )( linkvarbuf + 5510 ))

#define GM_RationUseCount		(*( short * )( linkvarbuf + 5512 ))

#define GM_ClearingCount		(*( short * )( linkvarbuf + 5514 ))

#define GM_RedFindCount		(*( short * )( linkvarbuf + 5516 ))

#define GM_ClearCodeFlag		(*( short * )( linkvarbuf + 5518 ))



#define MAX_LINKVARBUF 5520



extern char *linkvarbuf;

