X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2Fmapdef.inc;h=d744d9394d7e6ba0ea5cfeb9a0f14bb58ad24049;hb=a4f25c41dfd783a925aa2dab4b9b84753d5c3f18;hp=3ebc917df62bd7c01617fe03fc7932d17c409995;hpb=9e9ff4e6b6fb6ba272aaba45102b915c0221317c;p=d2df-sdl.git diff --git a/src/shared/mapdef.inc b/src/shared/mapdef.inc index 3ebc917..d744d93 100644 --- a/src/shared/mapdef.inc +++ b/src/shared/mapdef.inc @@ -246,192 +246,6 @@ const KEY_BLUETEAM = 16; -// ////////////////////////////////////////////////////////////////////////// // -// records -type - TMapHeaderRec_1 = packed record - MapName: Char32; - MapAuthor: Char32; - MapDescription: Char256; - MusicName: Char64; - SkyName: Char64; - Width, Height: Word; - end; - - TTextureRec_1 = packed record - Resource: Char64; - Anim: Boolean; - end; - - TPanelRec_1 = packed record - X, Y: Integer; - Width, Height: Word; - TextureNum: Word; - PanelType: Word; - Alpha: Byte; - Flags: Byte; - end; - - TItemRec_1 = packed record - X, Y: Integer; - ItemType: Byte; - Options: Byte; - end; - - TMonsterRec_1 = packed record - X, Y: Integer; - MonsterType: Byte; - Direction: Byte; - end; - - TAreaRec_1 = packed record - X, Y: Integer; - AreaType: Byte; - Direction: Byte; - end; - - TTriggerRec_1 = packed record - X, Y: Integer; - Width, Height: Word; - Enabled: Boolean; - TexturePanel: LongInt; - TriggerType: Byte; - ActivateType: Byte; - Keys: Byte; - DATA: Byte128; - end; - - - -// ////////////////////////////////////////////////////////////////////////// // -// triggerdata -type - TTriggerData = record - case Byte of - 0: (Default: Byte128); - TRIGGER_EXIT: ( - MapName: Char16; - ); - TRIGGER_TELEPORT: ( - TargetPoint: TDFPoint; - d2d_teleport: Boolean; - silent_teleport: Boolean; - TlpDir: Byte; - ); - TRIGGER_OPENDOOR, TRIGGER_CLOSEDOOR, TRIGGER_DOOR, TRIGGER_DOOR5, TRIGGER_CLOSETRAP, TRIGGER_TRAP, TRIGGER_LIFTUP, TRIGGER_LIFTDOWN, TRIGGER_LIFT: ( - PanelID: LongInt; - NoSound: Boolean; - d2d_doors: Boolean; - ); - TRIGGER_PRESS, TRIGGER_ON, TRIGGER_OFF, TRIGGER_ONOFF: ( - tX, tY: Integer; - tWidth, tHeight: Word; - Wait: Word; - Count: Word; - MonsterID: LongInt; - ExtRandom: Boolean; - ); - TRIGGER_SECRET: ( - ); - TRIGGER_TEXTURE: ( - ActivateOnce: Boolean; - AnimOnce: Boolean; - ); - TRIGGER_SOUND: ( - SoundName: Char64; - Volume: Byte; - Pan: Byte; - Local: Boolean; - PlayCount: Byte; - SoundSwitch: Boolean; - ); - TRIGGER_SPAWNMONSTER: ( - MonPos: TDFPoint; - MonType: Byte; - MonHealth: LongInt; - MonDir: Byte; - MonActive: Boolean; - MonCount: LongInt; - MonEffect: Byte; - MonMax: Word; - MonDelay: Word; - MonBehav: Byte; - ); - TRIGGER_SPAWNITEM: ( - ItemPos: TDFPoint; - ItemType: Byte; - ItemFalls: Boolean; - ItemOnlyDM: Boolean; - ItemCount: LongInt; - ItemEffect: Byte; - ItemMax: Word; - ItemDelay: Word; - ); - TRIGGER_MUSIC: ( - MusicName: Char64; - MusicAction: Byte; - ); - TRIGGER_PUSH: ( - PushAngle: Word; - PushForce: Byte; - ResetVel: Boolean; - ); - TRIGGER_SCORE: ( - ScoreAction: Byte; - ScoreCount: Byte; - ScoreTeam: Byte; - ScoreCon: Boolean; - ScoreMsg: Boolean; - ); - TRIGGER_MESSAGE: ( - MessageKind: Byte; - MessageSendTo: Byte; - MessageText: Char100; - MessageTime: Word; - ); - TRIGGER_DAMAGE: ( - DamageValue: Word; - DamageInterval: Word; - ); - TRIGGER_HEALTH: ( - HealValue: Word; - HealInterval: Word; - HealMax: Boolean; - HealSilent: Boolean; - ); - TRIGGER_SHOT: ( - ShotPos: TDFPoint; - ShotType: Byte; - ShotTarget: Byte; - ShotSound: Boolean; - ShotAim: ShortInt; - ShotPanelID: LongInt; - ShotIntSight: Word; - ShotAngle: Word; - ShotWait: Word; - ShotAccuracy: Word; - ShotAmmo: Word; - ShotIntReload: Word; - ); - TRIGGER_EFFECT: ( - FXCount: Byte; - FXType: Byte; - FXSubType: Byte; - FXColorR: Byte; - FXColorG: Byte; - FXColorB: Byte; - FXPos: Byte; - FXWait: Word; - FXVelX: ShortInt; - FXVelY: ShortInt; - FXSpreadL: Byte; - FXSpreadR: Byte; - FXSpreadU: Byte; - FXSpreadD: Byte; - ); - end; - - const defaultMapDef: AnsiString = ''+ #47#47#32#121#101#115#44#32#116#104#105#115#32#102#105#108#101#32#115#101+ #114#118#101#115#32#98#111#116#104#32#97#115#32#102#111#114#109#97#116#32+