mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
/**
|
|
* Copyright (c)2000-2002 Sony Online Entertainment Inc.
|
|
* All Rights Reserved
|
|
*
|
|
* Title: turnstile_cleanup.script
|
|
* Description: script for handling cleanup of expired turnstile information
|
|
* @author $Author:$
|
|
* @version $Revision:$
|
|
*/
|
|
|
|
|
|
/***********************************************************************
|
|
* TO DO LIST:
|
|
*
|
|
*
|
|
*
|
|
***********************************************************************/
|
|
|
|
|
|
/***** INCLUDES ********************************************************/
|
|
|
|
include library.turnstile;
|
|
|
|
/***** CONSTANTS *******************************************************/
|
|
|
|
const string HANDLER_EXPIRED_CLEANUP = "handleExpiredCleanup";
|
|
|
|
/***** TRIGGERS ********************************************************/
|
|
|
|
trigger OnInitialize()
|
|
{
|
|
messageTo( self, HANDLER_EXPIRED_CLEANUP, null, turnstile.TURNSTILE_CLEANUP_HEARTBEAT, false );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach()
|
|
{
|
|
messageTo( self, HANDLER_EXPIRED_CLEANUP, null, turnstile.TURNSTILE_CLEANUP_HEARTBEAT, false );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnDetach()
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler handleExpiredCleanup()
|
|
{
|
|
turnstile.cleanupExpiredPatrons( self );
|
|
messageTo( self, HANDLER_EXPIRED_CLEANUP, null, turnstile.TURNSTILE_CLEANUP_HEARTBEAT, false );
|
|
|
|
return SCRIPT_CONTINUE;
|
|
} |