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 self._realValue = self._link._realValue;
18 } else if( pEvent == ITEM_DATALINK_SET ) {
20 String_EntitySet( self._link, value, self.value );
21 self._link._realValue = self._realValue;
22 Raise_DataEvent( self._link, ITEM_DATALINK_SET );
25 Raise_DataEvent( self._link, pEvent );
28 void() Item_DataLink_FastResync_Spawn =
32 self._presstime = Timer_Time - 1;
34 self._dataEvent = Item_DataLink_FastResync_DataEvent;