示例#1
0
DataTableProp PropEHandle(
	const char *pVarName,
	int offset,
	int sizeofVar )
{
#if !defined (CLIENT_DLL)
	return SendPropEHandle( pVarName, offset, sizeofVar );
#else
	return RecvPropEHandle( pVarName, offset, sizeofVar );
#endif
}
	
	// Use the standard ehandle-encoding SendProxy to encode it.
	SendProxy_EHandleToInt( pProp, pStructBase, &hEnt, pOut, iElement, objectID );
}


void SignalChangeInMCVSelectionPanels()
{
}


IMPLEMENT_SERVERCLASS_ST( CObjMCVSelectionPanel, DT_MCVSelectionPanel )
	SendPropVirtualArray( 
		SendProxy_TeleportStationCount,
		32, // max # elements we'd ever send
		SendPropEHandle( "teleport_station_element", 0, 0, 0, SendProxy_TeleportStationElement ),
		"teleport_stations" )
END_SEND_TABLE()


CObjMCVSelectionPanel::CObjMCVSelectionPanel()
{
	g_MCVSelectionPanels.AddToTail( this );
}


CObjMCVSelectionPanel::~CObjMCVSelectionPanel()
{
	g_MCVSelectionPanels.FindAndRemove( this );
}