Photon Unity Networking  v1.81
English | 日本語 | 한국
Public Member Functions | Public Attributes | Properties | List of all members
ExitGames.Client.Photon.Chat.ChatChannel Class Reference

Photon Chat 의 통신 채널, ChatClient 에 의해 업데이트 되고 읽기 전용으로 제공됨. More...

Public Member Functions

 ChatChannel (string name)
 새로운 채널을 생성하기위해 내부적으로 사용됩니다. 서버에 채널을 생성하지 않습니다! ChatClient.Subscribe를 사용하세요. More...
 
void Add (string sender, object message)
 이 채널에 메시지를 추가하기 위해 내부적으로 사용됩니다. More...
 
void Add (string[] senders, object[] messages)
 이 채널에 메시지를 추가하기 위해 내부적으로 사용됩니다. More...
 
void TruncateMessages ()
 이 채널의 로컬에 캐시된 메시지의 수를 MessageLimit(설정되어 있으면)까지 감소 시킵니다. More...
 
void ClearMessages ()
 현재 저장되어 있는 메시지의 로컬 캐시를 없애줍니다. 메모리를 없애주지만 서버에 영향은 주지 않습니다. More...
 
string ToStringMessages ()
 이 채널에 있는 모든 메시지를 문자열 형태로 제공합니다. More...
 

Public Attributes

readonly string Name
 채널의 이름 (구독과 구독해제하기 위해 사용됨). More...
 
readonly List< string > Senders = new List<string>()
 발생순서의 메시지 전송자들입니다. 전송자와 메시지는 인덱스에 의하여 참조됩니다. Senders[x] 는 Messages[x] 의 전송자입니다. More...
 
readonly List< object > Messages = new List<object>()
 발생순서의 메시지입니다. 전송자와 메시지는 인덱스에 의하여 참조됩니다. Senders[x] 는 Messages[x] 의 전송자입니다. More...
 
int MessageLimit
 0 보다 크면, 이 채널은 로컬에 캐시되는 메시지의 숫자가 해당 값만큼 제한 됩니다. More...
 

Properties

bool IsPrivate [get, protected set]
 이 채널은 비공개 1:1 채널인가요? More...
 
int MessageCount [get]
 이 클라이언트가 여전히 이 채널에서 버퍼링하거나 알고 있는 메시지 수. More...
 

Detailed Description

Photon Chat 의 통신 채널, ChatClient 에 의해 업데이트 되고 읽기 전용으로 제공됨.

(읽기!)와 GUI에 표시하기 위해 메시지와 전송자가 포함되어 있습니다. 접근 방법: ChatClient.PublicChannels ChatClient.PrivateChannels

Constructor & Destructor Documentation

ExitGames.Client.Photon.Chat.ChatChannel.ChatChannel ( string  name)

새로운 채널을 생성하기위해 내부적으로 사용됩니다. 서버에 채널을 생성하지 않습니다! ChatClient.Subscribe를 사용하세요.

Member Function Documentation

void ExitGames.Client.Photon.Chat.ChatChannel.Add ( string  sender,
object  message 
)

이 채널에 메시지를 추가하기 위해 내부적으로 사용됩니다.

void ExitGames.Client.Photon.Chat.ChatChannel.Add ( string[]  senders,
object[]  messages 
)

이 채널에 메시지를 추가하기 위해 내부적으로 사용됩니다.

void ExitGames.Client.Photon.Chat.ChatChannel.ClearMessages ( )

현재 저장되어 있는 메시지의 로컬 캐시를 없애줍니다. 메모리를 없애주지만 서버에 영향은 주지 않습니다.

string ExitGames.Client.Photon.Chat.ChatChannel.ToStringMessages ( )

이 채널에 있는 모든 메시지를 문자열 형태로 제공합니다.

Returns
모든 알고 있는 메시지들을 라인으로 구분하여 "Sender: Message" 형태.
void ExitGames.Client.Photon.Chat.ChatChannel.TruncateMessages ( )

이 채널의 로컬에 캐시된 메시지의 수를 MessageLimit(설정되어 있으면)까지 감소 시킵니다.

Member Data Documentation

int ExitGames.Client.Photon.Chat.ChatChannel.MessageLimit

0 보다 크면, 이 채널은 로컬에 캐시되는 메시지의 숫자가 해당 값만큼 제한 됩니다.

readonly List<object> ExitGames.Client.Photon.Chat.ChatChannel.Messages = new List<object>()

발생순서의 메시지입니다. 전송자와 메시지는 인덱스에 의하여 참조됩니다. Senders[x] 는 Messages[x] 의 전송자입니다.

readonly string ExitGames.Client.Photon.Chat.ChatChannel.Name

채널의 이름 (구독과 구독해제하기 위해 사용됨).

readonly List<string> ExitGames.Client.Photon.Chat.ChatChannel.Senders = new List<string>()

발생순서의 메시지 전송자들입니다. 전송자와 메시지는 인덱스에 의하여 참조됩니다. Senders[x] 는 Messages[x] 의 전송자입니다.

Property Documentation

bool ExitGames.Client.Photon.Chat.ChatChannel.IsPrivate
getprotected set

이 채널은 비공개 1:1 채널인가요?

int ExitGames.Client.Photon.Chat.ChatChannel.MessageCount
get

이 클라이언트가 여전히 이 채널에서 버퍼링하거나 알고 있는 메시지 수.