Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetConnectionState: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 190736 by RoyAwesome (talk))
m (clean up, added deadend tag)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Dead end|date=January 2024}}
{{Note | This page is automatically generated.  Any changes may be overwritten}}
{{Note | This page is automatically generated.  Any changes may be overwritten}}
[[Category:Dota2Function]]
[[Category:CDOTA_PlayerResource]]


== Function Description ==
== Function Description ==


''' <unknown> GetConnectionState(int ''iPlayerID'') '''


''' <> GetConnectionState(int ''a'') '''
States:
 
0 - no connection,
''No Description Set''
1 - bot connected,
 
2 - player connected,
 
3 - bot/player disconnected.


== Parameters ==
== Parameters ==
Line 19: Line 20:
|-
|-
| int
| int
| a
| iPlayerID
| No Description Set
| No Description Set
|}
|}
Line 25: Line 26:
== Returns ==
== Returns ==


''<>'' - No Description Set
''<unknown>'' - No Description Set


{| class="standard-table" style="width: 50%;"
[[Category:Dota2Function]]
! ID
[[Category:CDOTA_PlayerResource]]
! Name
|-
| 0
| DOTA_CONNECTION_STATE_UNKNOWN
|-
| 1
| DOTA_CONNECTION_STATE_NOT_YET_CONNECTED
|-
| 2
| DOTA_CONNECTION_STATE_CONNECTED
|-
| 3
| DOTA_CONNECTION_STATE_DISCONNECTED
|-
| 4
| DOTA_CONNECTION_STATE_ABANDONED
|-
| 5
| DOTA_CONNECTION_STATE_LOADING
|-
| 6
| DOTA_CONNECTION_STATE_FAILED
|}
 
 
enum DOTAConnectionState_t {
DOTA_CONNECTION_STATE_UNKNOWN = 0;
DOTA_CONNECTION_STATE_NOT_YET_CONNECTED = 1;
DOTA_CONNECTION_STATE_CONNECTED = 2;
DOTA_CONNECTION_STATE_DISCONNECTED = 3;
DOTA_CONNECTION_STATE_ABANDONED = 4;
DOTA_CONNECTION_STATE_LOADING = 5;
DOTA_CONNECTION_STATE_FAILED = 6;
}

Latest revision as of 09:32, 21 January 2024

Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

<unknown> GetConnectionState(int iPlayerID)

States: 0 - no connection, 1 - bot connected, 2 - player connected, 3 - bot/player disconnected.

Parameters

Type Name Description
int iPlayerID No Description Set

Returns

<unknown> - No Description Set