mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-09 12:01:00 +00:00
spawn demo from wiki
This commit is contained in:
parent
091b4e7a9b
commit
2bba51c662
23
place/spawndemo.c
Normal file
23
place/spawndemo.c
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// spawn demonstration place as described in
|
||||||
|
// http://about.psyc.eu/Spawn
|
||||||
|
|
||||||
|
#include <net.h>
|
||||||
|
|
||||||
|
inherit NET_PATH "spawn";
|
||||||
|
|
||||||
|
launch();
|
||||||
|
|
||||||
|
#define NAME "SpawnDemo"
|
||||||
|
#define CRESET launch();
|
||||||
|
#include <place.gen>
|
||||||
|
|
||||||
|
incoming(response) {
|
||||||
|
castmsg(ME, "_notice_application_listener", response, ([]));
|
||||||
|
}
|
||||||
|
|
||||||
|
launch() {
|
||||||
|
#if 0 // make this '1' if you have a listener.sh installed in run
|
||||||
|
spawn("listener.sh", 0, #'incoming);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user