ps
Class CPlayerSlot
IJSObject
|
+--CJSObject
|
+--CPlayerSlot
in GameAttributes.h
in GameAttributes.cpp
- class CPlayerSlot
- extends CJSObject
Method Summary |
void |
AssignClosed()
|
void |
AssignLocal()
|
void |
AssignOpen()
|
void |
AssignToSession( CNetServerSession* pSession )
|
void |
AssignToSessionID( int sessionID )
|
private void |
CallCallback()
|
inline EPlayerSlotAssignment |
GetAssignment()
|
inline CPlayer* |
GetPlayer()
|
inline CNetServerSession* |
GetSession()
|
inline int |
GetSessionID()
|
inline int |
GetSlotID()
|
private bool |
JSI_AssignClosed( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
private bool |
JSI_AssignLocal( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
private bool |
JSI_AssignOpen( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
private bool |
JSI_AssignToSession( JSContext* UNUSED( cx ), uintN argc, jsval* argv )
|
private jsval |
JSI_GetAssignment( JSContext* UNUSED( cx ) )
|
private jsval |
JSI_GetSession( JSContext* UNUSED( cx ) )
|
private static void |
ScriptingInit()
|
private void |
SetAssignment( EPlayerSlotAssignment assignment, CNetServerSession* pSession, int sessionID )
|
inline void |
SetCallback( PlayerSlotAssignmentCB* callback, void* data )
|
protected inline void |
SetSlotID( int slotID )
|
Methods inherited from class CJSObject |
ScriptingInit, ScriptingShutdown, GetProperty, SetProperty, HasProperty, AddProperty, AddProperty, AddProperty, AddMethod, AddProperty, AddLocalProperty, GetScript, CreateScriptObject, ReleaseScriptObject, Shutdown |
m_Assignment
private EPlayerSlotAssignment m_Assignment;
m_Callback
private PlayerSlotAssignmentCB* m_Callback;
m_CallbackData
private void* m_CallbackData;
m_pPlayer
private CPlayer* m_pPlayer;
m_pSession
private CNetServerSession* m_pSession;
m_SessionID
private int m_SessionID;
m_SlotID
private int m_SlotID;
CPlayerSlot
public CPlayerSlot( int slotID, CPlayer* pPlayer );
~CPlayerSlot
public ~CPlayerSlot();
AssignClosed
public void AssignClosed();
AssignLocal
public void AssignLocal();
AssignOpen
public void AssignOpen();
AssignToSession
public void AssignToSession( CNetServerSession* pSession );
AssignToSessionID
public void AssignToSessionID( int sessionID );
CallCallback
private void CallCallback();
GetAssignment
public inline EPlayerSlotAssignment GetAssignment();
GetPlayer
public inline CPlayer* GetPlayer();
GetSession
public inline CNetServerSession* GetSession();
GetSessionID
public inline int GetSessionID();
GetSlotID
public inline int GetSlotID();
JSI_AssignClosed
private bool JSI_AssignClosed( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
JSI_AssignLocal
private bool JSI_AssignLocal( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
JSI_AssignOpen
private bool JSI_AssignOpen( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
JSI_AssignToSession
private bool JSI_AssignToSession( JSContext* UNUSED( cx ), uintN argc, jsval* argv );
JSI_GetAssignment
private jsval JSI_GetAssignment( JSContext* UNUSED( cx ) );
JSI_GetSession
private jsval JSI_GetSession( JSContext* UNUSED( cx ) );
ScriptingInit
private static void ScriptingInit();
SetAssignment
private void SetAssignment( EPlayerSlotAssignment assignment, CNetServerSession* pSession, int sessionID );
SetCallback
public inline void SetCallback( PlayerSlotAssignmentCB* callback, void* data );
SetSlotID
protected inline void SetSlotID( int slotID );