C# 클래스 Indiefreaks.Xna.Sessions.Lidgren.LidgrenSessionManager

The LidgrenSessionManager is a Windows SessionManager implementation using the Lidren Network library
상속: SessionManager
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
CreateLanSession ( int maxPlayers, SessionProperties sessionProperties ) : void

Creates a local area network session

it doesn't yet support multiple local players

CreateSinglePlayerSession ( ) : void

Creates a Single Player Session

No network resources will be used

CreateSplitScreenSession ( ) : void

Creates a Split Screen Session

Not implemented yet

CreateWanSession ( int maxPlayers, SessionProperties sessionProperties ) : void

Creates a wide area network session

it doesn't yet support multiple local players

FindSessions ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties ) : void

Sends a Find query on the network interface to look for AvailableSession instances asynchrnously

FindSessionsWan ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties, string host = null, int port = ServerPort ) : void

Sends a Find query on the network interface to look for AvailableSession instances asynchrnously

IdentifyPlayer ( PlayerInput playerInput ) : void

Identifies a player

JoinSession ( AvailableSession availableSession ) : void

Sends a Join query to the Session asynchronously

LidgrenSessionManager ( IManagerServiceProvider sceneInterface ) : System

Creates a new instance

비공개 메소드들

메소드 설명
CloseSession ( ) : void
LidgrenSessionManager ( ) : System
OnLidgrenSessionCreated ( IAsyncResult result ) : void
OnLidgrenSessionJoined ( IAsyncResult ar ) : void
OnLidgrenSessionsFound ( IAsyncResult ar ) : void

메소드 상세

CreateLanSession() 공개 메소드

Creates a local area network session
it doesn't yet support multiple local players
public CreateLanSession ( int maxPlayers, SessionProperties sessionProperties ) : void
maxPlayers int The total maximum players for this session
sessionProperties SessionProperties The SessionProperties that will be used to find this session on the network. Can be null
리턴 void

CreateSinglePlayerSession() 공개 메소드

Creates a Single Player Session
No network resources will be used
public CreateSinglePlayerSession ( ) : void
리턴 void

CreateSplitScreenSession() 공개 메소드

Creates a Split Screen Session
Not implemented yet
public CreateSplitScreenSession ( ) : void
리턴 void

CreateWanSession() 공개 메소드

Creates a wide area network session
it doesn't yet support multiple local players
public CreateWanSession ( int maxPlayers, SessionProperties sessionProperties ) : void
maxPlayers int The total maximum players for this session
sessionProperties SessionProperties The SessionProperties that will be used to find this session on the network. Can be null
리턴 void

FindSessions() 공개 메소드

Sends a Find query on the network interface to look for AvailableSession instances asynchrnously
public FindSessions ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties ) : void
sessionType SessionType The SessionType we're looking for
maxLocalPlayers int The Maximum local players that can be added to the session used to filter sessions that have a limited number of opened public slots
sessionProperties SessionProperties The SessionProperties that will be used to filter query results. Can be null
리턴 void

FindSessionsWan() 공개 메소드

Sends a Find query on the network interface to look for AvailableSession instances asynchrnously
public FindSessionsWan ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties, string host = null, int port = ServerPort ) : void
sessionType SessionType The SessionType we're looking for
maxLocalPlayers int The Maximum local players that can be added to the session used to filter sessions that have a limited number of opened public slots
sessionProperties SessionProperties The SessionProperties that will be used to filter query results. Can be null
host string The for WAN session discovery
port int The for WAN session discovery
리턴 void

IdentifyPlayer() 공개 메소드

Identifies a player
public IdentifyPlayer ( PlayerInput playerInput ) : void
playerInput Indiefreaks.Xna.Input.PlayerInput The PlayerInput instance used by the player to identify
리턴 void

JoinSession() 공개 메소드

Sends a Join query to the Session asynchronously
public JoinSession ( AvailableSession availableSession ) : void
availableSession AvailableSession The Session we are trying to join
리턴 void

LidgrenSessionManager() 공개 메소드

Creates a new instance
public LidgrenSessionManager ( IManagerServiceProvider sceneInterface ) : System
sceneInterface IManagerServiceProvider
리턴 System