Changeset 109 for trunk/Score.pas


Ignore:
Timestamp:
Dec 10, 2024, 10:38:11 AM (5 weeks ago)
Author:
chronos
Message:
  • Modified: Added more score information.
  • Fixed: Record only non-zero scores.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Score.pas

    r108 r109  
    1717    UsedUndos: Integer;
    1818    BoardSize: string;
     19    DisabledTiles: Integer;
     20    UnmergeableTiles: Integer;
     21    BiggestTile: Integer;
    1922    procedure SaveToRegistry(Reg: TRegistryEx; RegContext: TRegistryContext);
    2023    procedure LoadFromRegistry(Reg: TRegistryEx; RegContext: TRegistryContext);
     
    3033  end;
    3134
     35
    3236implementation
    3337
     
    3943    CurrentContext := RegContext;
    4044    WriteDateTime('StartTime', StartTime);
     45    WriteDateTime('Duration', Duration);
    4146    WriteInteger('Score', Score);
    4247    WriteInteger('Moves', Moves);
    4348    WriteInteger('UsedUndos', UsedUndos);
    4449    WriteString('BoardSize', BoardSize);
     50    WriteInteger('DisabledTiles', DisabledTiles);
     51    WriteInteger('UnmergeableTiles', UnmergeableTiles);
     52    WriteInteger('BiggestTile', BiggestTile);
    4553  end;
    4654end;
     
    5260    CurrentContext := RegContext;
    5361    StartTime := ReadDateTimeWithDefault('StartTime', StartTime);
     62    Duration := ReadDateTimeWithDefault('Duration', Duration);
    5463    Score := ReadIntegerWithDefault('Score', Score);
    5564    Moves := ReadIntegerWithDefault('Moves', Moves);
    5665    UsedUndos := ReadIntegerWithDefault('UsedUndos', UsedUndos);
    5766    BoardSize := ReadStringWithDefault('BoardSize', BoardSize);
     67    DisabledTiles := ReadIntegerWithDefault('DisabledTiles', DisabledTiles);
     68    UnmergeableTiles := ReadIntegerWithDefault('UnmergeableTiles', UnmergeableTiles);
     69    BiggestTile := ReadIntegerWithDefault('BiggestTile', BiggestTile);
    5870  end;
    5971end;
Note: See TracChangeset for help on using the changeset viewer.