Changeset 349 for trunk/Player.pas


Ignore:
Timestamp:
Dec 27, 2024, 10:29:54 AM (2 weeks ago)
Author:
chronos
Message:
  • Fixed: ItemList interface implementation was not working as expected. Implemented as proxy list instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Player.pas

    r346 r349  
    100100    procedure GetValue(Index: Integer; out Value); override;
    101101    procedure SetValue(Index: Integer; var Value); override;
    102     function GetReferenceList(Index: Integer): IList<TItem>; override;
     102    function GetReferenceList(Index: Integer): TBaseItemList; override;
    103103    class function GetClassSysName: string; override;
    104104    class function GetClassName: string; override;
     
    12571257end;
    12581258
    1259 function TPlayer.GetReferenceList(Index: Integer): IList<TItem>;
    1260 begin
    1261   if Index = 2 then Result := TGame(Game).GameSystem.Nations
     1259function TPlayer.GetReferenceList(Index: Integer): TBaseItemList;
     1260begin
     1261  if Index = 2 then Result := TGame(Game).GameSystem.Nations.BaseItemList
    12621262  else Result := nil;
    12631263end;
Note: See TracChangeset for help on using the changeset viewer.