Ignore:
Timestamp:
Jul 14, 2007, 1:15:47 AM (17 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/FileClasses/TXAN.pas

    r234 r236  
    1818
    1919procedure TFile_TXAN.InitDataFields;
    20 var
    21   tempi: Integer;
    22   arrargs: TArrayArgs;
    2320begin
    2421  inherited;
    25   FDataFields := TBlock.Create(Self, nil, 0, 'Base', '', nil);
     22  FDataFields := TBlock.Create(Self, nil, 'Base', '', []);
    2623  with FDataFields do
    2724  begin
    28     AddField(TFileID, $00, 'FileID', '', nil);
     25    AddField(TFileID, 'FileID', '', []);
    2926
    30     AddField(TLevelID, $04, 'LevelID', '', nil);
     27    AddField(TLevelID, 'LevelID', '', []);
    3128
    32     tempi := 12;
    33     AddField(TUnused, $08, 'Unused data', '', @tempi);
     29    AddField(TUnused, 'Unused data', '', [12]);
    3430
    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]);
    3735
    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
    5037    begin
    51       AddField(TLinkByID, $00, 'Texture', '', nil);
     38      AddField(TLinkByID, 'Texture', '', ['*']);
     39      SetCount;
    5240    end;
    5341  end;
     42  FDataFields.Update(0, -1);
    5443  FFileStream.Free;
    5544  FFileStream := nil;
Note: See TracChangeset for help on using the changeset viewer.