Difference between revisions of "TBanLists"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "==Inheritance== *TBanLists ==Description== Class used to hold information about bans. '''This class is assigned to global variable "Game.BansList"'''...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
Class used to hold information about bans.
 
Class used to hold information about bans.
  
  '''This class is assigned to global variable "[[TGame.BansList|Game.BansList]]"'''
+
  '''This class is assigned to global variable "[[TGame.BansList|Game.BanLists]]"'''
  
 
  user constructable: '''NO'''
 
  user constructable: '''NO'''
Line 31: Line 31:
 
| align="center" |  
 
| align="center" |  
 
|-
 
|-
| function[[TBanLists.IsBannedIP|IsBannedIP]](IP: ShortString): Boolean;
+
| function [[TBanLists.IsBannedIP|IsBannedIP]](IP: ShortString): Boolean;
 
| align="center" |  
 
| align="center" |  
 
|-
 
|-
Line 46: Line 46:
 
| rowspan="4" | 2.7.9
 
| rowspan="4" | 2.7.9
 
|-
 
|-
| property [[TBanLists.IP |IP ]]: array of [[TBannedIP]]
+
| property [[TBanLists.IP |IP]]: array of [[TBannedIP]]
 
| align="center" | R
 
| align="center" | R
 
|-
 
|-

Latest revision as of 13:30, 5 September 2018

Inheritance

Description

Class used to hold information about bans.

This class is assigned to global variable "Game.BanLists"
user constructable: NO
user destructable: NO

Members

Member declaration Access mode SS Version
procedure AddHWBan(HW, Reason: string; Duration: Integer); 2.7.9
procedure AddIPBan(IP: ShortString; Reason: string; Duration: Integer);
function DelHWBan(HW: string): Boolean;
function DelIPBan(IP: ShortString): Boolean;
function IsBannedHW(HW: string): Boolean;
function IsBannedIP(IP: ShortString): Boolean;
function GetHWBanId(HW: string): Integer;
function GetIPBanId(IP: ShortString): Integer;
property HW: array of TBannedHW R 2.7.9
property IP: array of TBannedIP R
property BannedHWCount: Integer R
property BannedIPCount: Integer R