Photon Unity Networking  v1.67
Public Types | Public Member Functions | Public Attributes | List of all members
ServerSettings Class Reference

接続関連の設定を集めたものです。内部的にPhotonNetwork.ConnectUsingSettingsによって使用されます。 More...

Inherits ScriptableObject.

Public Types

enum  HostingOption {
  HostingOption.NotSet = 0, HostingOption.PhotonCloud = 1, HostingOption.SelfHosted = 2, HostingOption.OfflineMode = 3,
  HostingOption.BestRegion = 4
}
 

Public Member Functions

void UseCloudBestRegion (string cloudAppid)
 
void UseCloud (string cloudAppid)
 
void UseCloud (string cloudAppid, CloudRegionCode code)
 
void UseMyServer (string serverAddress, int serverPort, string application)
 
override string ToString ()
 

Public Attributes

HostingOption HostType = HostingOption.NotSet
 
ConnectionProtocol Protocol = ConnectionProtocol.Udp
 
string ServerAddress = ""
 
int ServerPort = 5055
 
string AppID = ""
 
CloudRegionCode PreferredRegion
 
CloudRegionFlag EnabledRegions = (CloudRegionFlag)(-1)
 
bool JoinLobby
 
bool EnableLobbyStatistics
 
List< string > RpcList = new List<string>()
 
bool DisableAutoOpenWizard
 

Detailed Description

接続関連の設定を集めたものです。内部的にPhotonNetwork.ConnectUsingSettingsによって使用されます。

Member Enumeration Documentation

Enumerator
NotSet 
PhotonCloud 
SelfHosted 
OfflineMode 
BestRegion 

Member Function Documentation

override string ServerSettings.ToString ( )
void ServerSettings.UseCloud ( string  cloudAppid)
void ServerSettings.UseCloud ( string  cloudAppid,
CloudRegionCode  code 
)
void ServerSettings.UseCloudBestRegion ( string  cloudAppid)
void ServerSettings.UseMyServer ( string  serverAddress,
int  serverPort,
string  application 
)

Member Data Documentation

string ServerSettings.AppID = ""
bool ServerSettings.DisableAutoOpenWizard
CloudRegionFlag ServerSettings.EnabledRegions = (CloudRegionFlag)(-1)
bool ServerSettings.EnableLobbyStatistics
HostingOption ServerSettings.HostType = HostingOption.NotSet
bool ServerSettings.JoinLobby
CloudRegionCode ServerSettings.PreferredRegion
ConnectionProtocol ServerSettings.Protocol = ConnectionProtocol.Udp
List<string> ServerSettings.RpcList = new List<string>()
string ServerSettings.ServerAddress = ""
int ServerSettings.ServerPort = 5055
Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH