Ignore:
Timestamp:
Apr 25, 2022, 6:22:53 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Update Common package to version 0.10.
  • Modified: fgl unit replaced by Generics.Collections.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Network/UNetworkServer.pas

    r423 r424  
    44
    55uses
    6   Classes, SysUtils{$IFDEF UNIX}, fgl, fpAsync, fpsock, fphttpclient{$ENDIF}, Protocol;
     6  Classes, SysUtils{$IFDEF UNIX}, Generics.Collections, fpAsync, fpsock,
     7  fphttpclient{$ENDIF}, Protocol;
    78
    89{$IFDEF UNIX}
     
    5556  { TNetworkServerPlayers }
    5657
    57   TNetworkServerPlayers = class(TFPGObjectList<TNetworkServerPlayer>)
     58  TNetworkServerPlayers = class(TObjectList<TNetworkServerPlayer>)
    5859    function SearchById(Id: Integer): TNetworkServerPlayer;
    5960  end;
     
    6465  private
    6566    Players: TNetworkServerPlayers;
    66     Connections: TFPGObjectList<TNetworkServerConnection>;
     67    Connections: TObjectList<TNetworkServerConnection>;
    6768    TCPServerThread: TTCPServerThread;
    6869    ServerEventLoop: TEventLoop;
     
    302303  Players := TNetworkServerPlayers.Create;
    303304  ServerEventLoop := TEventLoop.Create;
    304   Connections := TFPGObjectList<TNetworkServerConnection>.Create;
     305  Connections := TObjectList<TNetworkServerConnection>.Create;
    305306  TCPServer := TTCPServer.Create(nil);
    306307  with TCPServer do begin
Note: See TracChangeset for help on using the changeset viewer.