Changeset 316 for trunk/UGameServer.pas
- Timestamp:
- Jun 19, 2024, 11:53:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGameServer.pas
r287 r316 1 1 unit UGameServer; 2 2 3 {$mode delphi}4 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, UGame, DOM, XMLConf, fgl, UGameProtocol, UCommFrame, UPlayer; 6 Classes, SysUtils, UGame, DOM, XMLConf, Generics.Collections, UGameProtocol, 7 UCommFrame, UPlayer; 9 8 10 9 type … … 32 31 { TServerClients } 33 32 34 TServerClients = class(T FPGObjectList<TServerClient>)33 TServerClients = class(TObjectList<TServerClient>) 35 34 Game: TGame; 36 35 function SearchByPlayer(Player: TPlayer): TServerClient; … … 73 72 DefaultServerPort = 40009; 74 73 74 75 75 implementation 76 76 … … 120 120 destructor TServerClient.Destroy; 121 121 begin 122 Protocol.Free;123 CommFrame.Free;124 inherited Destroy;122 FreeAndNil(Protocol); 123 FreeAndNil(CommFrame); 124 inherited; 125 125 end; 126 126 … … 278 278 begin 279 279 FreeAndNil(Clients); 280 inherited Destroy;280 inherited; 281 281 end; 282 282
Note:
See TracChangeset
for help on using the changeset viewer.