Changeset 211 for trunk/UGameServer.pas


Ignore:
Timestamp:
May 23, 2018, 8:53:58 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Each client form is redrawn by itself, not by Core.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGameServer.pas

    r203 r211  
    2525    procedure SendCmd(Command: TCommand; DataOut, DataIn: TStream);
    2626    procedure TurnStart;
     27    procedure GameEnd;
    2728    property OnReceiveCmd: TCommandEvent read FOnReceiveCmd write
    2829      FOnReceiveCmd;
     
    6061    procedure SaveConfig(Config: TXmlConfig; Path: string);
    6162    procedure InitClients;
     63    procedure GameEnd;
    6264    procedure Clear;
    6365    constructor Create;
     
    100102begin
    101103  Protocol.TurnStart;
     104end;
     105
     106procedure TServerClient.GameEnd;
     107begin
     108  Protocol.GameEnd;
    102109end;
    103110
     
    234241end;
    235242
     243procedure TServer.GameEnd;
     244var
     245  I: Integer;
     246begin
     247  for I := 0 to Clients.Count - 1 do
     248    Clients[I].GameEnd;
     249end;
     250
    236251procedure TServer.Clear;
    237252begin
Note: See TracChangeset for help on using the changeset viewer.