2 // control/data/fastresync.qc
4 /////////////////////////////
5 // Item_DataLink_FastResync
8 void( float pEvent ) Item_DataLink_FastResync_DataEvent =
10 if( pEvent == ITEM_DATALINK_GET ) {
11 if( self._presstime != Timer_Time ) {
12 Raise_DataEvent( self._link, ITEM_DATA_SYNC );
13 self._presstime = Timer_Time;
15 Raise_DataEvent( self._link, ITEM_DATALINK_GET );
16 String_EntitySet( self, value, self._link.value );
17 } else if( pEvent == ITEM_DATALINK_SET ) {
19 String_EntitySet( self._link, value, self.value );
20 Raise_DataEvent( self._link, ITEM_DATALINK_SET );
23 Raise_DataEvent( self._link, pEvent );
26 void() Item_DataLink_FastResync_Spawn =
30 self._presstime = Timer_Time - 1;
32 self._dataEvent = Item_DataLink_FastResync_DataEvent;