The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE2:UnrealPlayerChatManager (UT2004)
Object >> Actor >> Info >> PlayerChatManager >> UnrealPlayerChatManager |
Contents
- 1 Constants
- 2 Properties
- 3 Structs
- 4 Functions
- 4.1 Events
- 4.2 Other instance functions
- 4.2.1 AcceptSpeech
- 4.2.2 AcceptText
- 4.2.3 AddRestriction
- 4.2.4 AddRestrictionID
- 4.2.5 ChatDebug
- 4.2.6 ClearRestriction
- 4.2.7 ClearRestrictionID
- 4.2.8 ClientIsBanned
- 4.2.9 Count
- 4.2.10 GetHashIndex
- 4.2.11 GetIDIndex
- 4.2.12 GetPlayerHash
- 4.2.13 GetPlayerRestriction
- 4.2.14 IsBanned
- 4.2.15 IsLocal
- 4.2.16 IsValid
- 4.2.17 LoadChatBan
- 4.2.18 LogChatRestriction
- 4.2.19 MergeRestriction
- 4.2.20 ReceiveBanInfo
- 4.2.21 SetRestriction
- 4.2.22 SetRestrictionID
- 4.2.23 StoreChatBan
- 4.2.24 TrackNewPlayer
- 4.2.25 UnMergeRestriction
- 4.2.26 UnTrackPlayer
- Package:
- UnrealGame
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Created on: 08/29/2003 UnrealPlayerChatManager is responsible for tracking each player's chat preferences and restrictions. When a client joins the game, a new UnrealPlayerChatManager object is spawned for that player, and replicated to the client. When the UnrealPlayerChatManager object arrives on the client, it requests a list of player hashes for all players currently connected to the server. The hashes received from the server are matched against the local client's stored restrictions. When a match is found, UnrealPlayerChatManager updates the server's copy of the tracking information with the client's restriction.
Thereafter, when the client's copy of the UnrealPlayerChatManager object is notified that a new client has connected, it requests the hash information for that player in order to match it against the client's stored restrictions.
Written by Ron Prestenback © 2003, Epic Games, Inc. All Rights Reserved
Constants[edit]
NOTEXT[edit]
Value: 1
NOSPEECH[edit]
Value: 2
NOVOICE[edit]
Value: 4
BANNED[edit]
Value: 8
Properties[edit]
ChatRestrictions[edit]
Modifiers: protected
StoredChatRestrictions[edit]
Type: array<StoredChatBan>
Modifiers: globalconfig, protected
Structs[edit]
ChatBan[edit]
- int PlayerID
- string PlayerHash
- string PlayerAddress
- byte PlayerVoiceMask
- byte Restriction
- 1 - Text, 2 - Speech, 4 - Voice, 8 - Banned from private chat
StoredChatBan[edit]
Functions[edit]
Events[edit]
AcceptVoice[edit]
Overrides: PlayerChatManager.AcceptVoice
Other instance functions[edit]
AcceptSpeech[edit]
Overrides: PlayerChatManager.AcceptSpeech
AcceptText[edit]
Overrides: PlayerChatManager.AcceptText
AddRestriction[edit]
Overrides: PlayerChatManager.AddRestriction
AddRestrictionID[edit]
Overrides: PlayerChatManager.AddRestrictionID
ChatDebug[edit]
Overrides: PlayerChatManager.ChatDebug
ClearRestriction[edit]
Overrides: PlayerChatManager.ClearRestriction
ClearRestrictionID[edit]
Overrides: PlayerChatManager.ClearRestrictionID
ClientIsBanned[edit]
Overrides: PlayerChatManager.ClientIsBanned
Count[edit]
Overrides: PlayerChatManager.Count
GetHashIndex[edit]
GetIDIndex[edit]
GetPlayerHash[edit]
GetPlayerRestriction[edit]
Overrides: PlayerChatManager.GetPlayerRestriction
IsBanned[edit]
Overrides: PlayerChatManager.IsBanned
IsLocal[edit]
IsValid[edit]
LoadChatBan[edit]
LogChatRestriction[edit]
MergeRestriction[edit]
ReceiveBanInfo[edit]
Overrides: PlayerChatManager.ReceiveBanInfo
SetRestriction[edit]
Overrides: PlayerChatManager.SetRestriction
SetRestrictionID[edit]
Overrides: PlayerChatManager.SetRestrictionID
StoreChatBan[edit]
TrackNewPlayer[edit]
Overrides: PlayerChatManager.TrackNewPlayer
UnMergeRestriction[edit]
UnTrackPlayer[edit]
Overrides: PlayerChatManager.UnTrackPlayer