Files
dsrc/sku.0/sys.server/compiled/game/script/turnstile/turnstile_cleanup.script
T
2013-09-10 23:17:15 -07:00

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;
}