events.c

foundationI_fluffos_v1/lib/secure/SimulEfun/events.c · 416 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include <daemons.h>

varargs void event(string fun, int when, mixed *args, int reg) {
    object ob;
    
    if(clonep(ob = previous_object())) return;
    if(!function_exists(fun, ob) || when < 60) return;
    EVENTS_D->add_events(ob, fun, when, args, reg);
}

int event_pending(object ob) {
    mapping tmp;

    tmp = (mapping)EVENTS_D->query_events();
    if(tmp[file_name(ob)]) return 1;
    else return 0;
}

Site Stats

Snippets: 1791
Codebases: 571