C# Class ClientNetwork

显示文件 Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

Property Type Description
StartScreenOfficialSceneName string
background GUIStyle
classChooser ChooseClass,
displayChat bool
gameSceneToLoad string
isConnectedToServer bool
labelStyle GUIStyle
lines GameObject
linesPrefab GameObject
networkWindowButtonHeight int
networkWindowButtonWidth int
networkWindowX int
networkWindowY int
style GUIStyle
styleDefaultTextArea GUIStyle

Public Methods

Method Description
Awake ( ) : void
Start ( ) : void
Update ( ) : void
subscribeToSorcererInstancePublisher ( ) : void
updateMySorcerer ( Sorcerer, newSorcerer ) : void

Private Methods

Method Description
AddNetworkView ( ) : void
AskClientForInfo ( NetworkPlayer player ) : void
JoinServer ( HostData hostData ) : void
OnConnectedToServer ( ) : void
OnDisconnectedFromServer ( NetworkDisconnection info ) : void
OnGUI ( ) : void
OnLevelWasLoaded ( int level ) : void
OnMasterServerEvent ( MasterServerEvent msEvent ) : void
OnPlayerConnected ( NetworkPlayer player ) : void
OnPlayerDisconnected ( NetworkPlayer player ) : void
OnServerInitialized ( ) : void
OnSorcererPositionDeterminedAfterMapCreation ( Vector3 position ) : void
ReceiveInfoFromClient ( string someInfo ) : void
ReceiveInfoFromServer ( string someInfo ) : void
RefreshHostList ( ) : void
SendInfoToClient ( string msg ) : void
SendInfoToServer ( string msg ) : void
SetPlayerInfo ( NetworkPlayer player ) : void
SetSorcererPositionAfterMapCreation ( string position ) : void
StartServer ( ) : void
changeFighterPosition ( string positionAndRotationAsString ) : void
changeFighterPositionOnClient ( Transform newTransf ) : void
changeSorcererPosition ( string positionAndRotationAsString ) : void
changeSorcererPositionOnClient ( Transform newTransf ) : void
detectIfServerIsInStartMenu ( ) : void
onStatsDisplayed ( ) : void
returnWhetherGameIsInStartScene ( ) : void
setClientLines ( string s ) : void
setClientVarServerIsInStartMenu ( string booleanString ) : void
setGameObjectPositionAndRotationFromSerializedParams ( Player, obj, string positionAndRotationAsString ) : void
setServerBoolean ( ) : void
setSorcerersCurrentAnimation ( string animationStateName ) : void
setSorcerersCurrentAnimationOnClient ( string animationStateName ) : void
startClientLines ( string s ) : void
toggleStatsDisplayed ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

subscribeToSorcererInstancePublisher() public method

public subscribeToSorcererInstancePublisher ( ) : void
return void

updateMySorcerer() public method

public updateMySorcerer ( Sorcerer, newSorcerer ) : void
newSorcerer Sorcerer,
return void

Property Details

StartScreenOfficialSceneName public_oe static_oe property

public static string StartScreenOfficialSceneName
return string

background public_oe property

public GUIStyle background
return GUIStyle

classChooser public_oe property

public ChooseClass, classChooser
return ChooseClass,

displayChat public_oe property

public bool displayChat
return bool

gameSceneToLoad public_oe property

public string gameSceneToLoad
return string

isConnectedToServer public_oe property

public bool isConnectedToServer
return bool

labelStyle public_oe property

public GUIStyle labelStyle
return GUIStyle

lines public_oe property

public GameObject lines
return GameObject

linesPrefab public_oe property

public GameObject linesPrefab
return GameObject

networkWindowButtonHeight public_oe property

public int networkWindowButtonHeight
return int

networkWindowButtonWidth public_oe property

public int networkWindowButtonWidth
return int

networkWindowX public_oe property

public int networkWindowX
return int

networkWindowY public_oe property

public int networkWindowY
return int

style public_oe property

public GUIStyle style
return GUIStyle

styleDefaultTextArea public_oe property

public GUIStyle styleDefaultTextArea
return GUIStyle