Changeset 236 for oup/current/FileClasses/TXAN.pas
- Timestamp:
- Jul 14, 2007, 1:15:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/FileClasses/TXAN.pas
r234 r236 18 18 19 19 procedure TFile_TXAN.InitDataFields; 20 var21 tempi: Integer;22 arrargs: TArrayArgs;23 20 begin 24 21 inherited; 25 FDataFields := TBlock.Create(Self, nil, 0, 'Base', '', nil);22 FDataFields := TBlock.Create(Self, nil, 'Base', '', []); 26 23 with FDataFields do 27 24 begin 28 AddField(TFileID, $00, 'FileID', '', nil);25 AddField(TFileID, 'FileID', '', []); 29 26 30 AddField(TLevelID, $04, 'LevelID', '', nil);27 AddField(TLevelID, 'LevelID', '', []); 31 28 32 tempi := 12; 33 AddField(TUnused, $08, 'Unused data', '', @tempi); 29 AddField(TUnused, 'Unused data', '', [12]); 34 30 35 tempi := 2; 36 AddField(TInt, $14, 'Loop speed', '', @tempi); 31 AddField(TInt, 'Loop speed', '', [2]); 32 AddField(TInt, 'Unknown', '', [2]); 33 AddField(TInt, 'Unknown', '', [2]); 34 AddField(TUnused, 'Unused', '', [2]); 37 35 38 tempi := 2; 39 AddField(TInt, $16, 'Unknown', '', @tempi); 40 41 tempi := 2; 42 AddField(TInt, $18, 'Unknown', '', @tempi); 43 44 tempi := 2; 45 AddField(TUnused, $1A, 'Unused', '', @tempi); 46 47 arrargs.CounterSize := 2; 48 arrargs.BlockLength := 4; 49 with TArray(AddField(TArray, $1C, 'AnimTextures array', '', @arrargs)) do 36 with TArray(AddField(TArray, 'AnimTextures array', '', [4, 0])) do 50 37 begin 51 AddField(TLinkByID, $00, 'Texture', '', nil); 38 AddField(TLinkByID, 'Texture', '', ['*']); 39 SetCount; 52 40 end; 53 41 end; 42 FDataFields.Update(0, -1); 54 43 FFileStream.Free; 55 44 FFileStream := nil;
Note:
See TracChangeset
for help on using the changeset viewer.