close
Warning:
Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.
Last change
on this file was 180, checked in by chronos, 6 years ago |
- Modified: Client related interface moved from FormMain to FormClient. This code change will later allow to implement network client-server gameplay.
- Added: Allow to open other spectator client windows.
|
File size:
759 bytes
|
Line | |
---|
1 | unit UServerList;
|
---|
2 |
|
---|
3 | {$mode delphi}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, contnrs;
|
---|
9 |
|
---|
10 | type
|
---|
11 | TServerInfo = class
|
---|
12 | Name: string;
|
---|
13 | Address: string;
|
---|
14 | Port: Word;
|
---|
15 | PlayersCountCurrent: Integer;
|
---|
16 | PlayersCountMax: Integer;
|
---|
17 | Password: string;
|
---|
18 | MapName: string;
|
---|
19 | Latency: TTime;
|
---|
20 | end;
|
---|
21 |
|
---|
22 | TServerInfos = class(TObjectList)
|
---|
23 | end;
|
---|
24 |
|
---|
25 | { TServerList }
|
---|
26 |
|
---|
27 | TServerList = class
|
---|
28 | Name: string;
|
---|
29 | Address: string;
|
---|
30 | Items: TServerInfos;
|
---|
31 | constructor Create;
|
---|
32 | destructor Destroy; override;
|
---|
33 | end;
|
---|
34 |
|
---|
35 | implementation
|
---|
36 |
|
---|
37 | { TServerList }
|
---|
38 |
|
---|
39 | constructor TServerList.Create;
|
---|
40 | begin
|
---|
41 | Items := TServerInfos.Create;
|
---|
42 | end;
|
---|
43 |
|
---|
44 | destructor TServerList.Destroy;
|
---|
45 | begin
|
---|
46 | Items.Free;
|
---|
47 | inherited Destroy;
|
---|
48 | end;
|
---|
49 |
|
---|
50 | end.
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.
Download in other formats: