void register_tolua_helpers(void) { at_register(&at_direction); at_register(&at_building_action); register_function((pf_generic)lua_building_taxes, TOLUA_CAST "lua_building_taxes"); register_function((pf_generic)lua_agebuilding, TOLUA_CAST "lua_agebuilding"); register_function((pf_generic)lua_callspell, TOLUA_CAST "lua_castspell"); register_function((pf_generic)lua_initfamiliar, TOLUA_CAST "lua_initfamiliar"); register_item_use(&lua_useitem, TOLUA_CAST "lua_useitem"); register_function((pf_generic)lua_getresource, TOLUA_CAST "lua_getresource"); register_function((pf_generic)lua_canuse_item, TOLUA_CAST "lua_canuse_item"); register_function((pf_generic)lua_changeresource, TOLUA_CAST "lua_changeresource"); register_function((pf_generic)lua_equipmentcallback, TOLUA_CAST "lua_equip"); register_function((pf_generic)lua_wage, TOLUA_CAST "lua_wage"); register_function((pf_generic)lua_maintenance, TOLUA_CAST "lua_maintenance"); register_function((pf_generic)produce_resource, TOLUA_CAST "lua_produceresource"); register_function((pf_generic)limit_resource, TOLUA_CAST "lua_limitresource"); register_item_give(lua_giveitem, TOLUA_CAST "lua_giveitem"); }
void register_museum(void) { register_bordertype(&bt_questportal); at_register(&at_warden); at_register(&at_museumexit); at_register(&at_museumgivebackcookie); at_register(&at_museumgiveback); register_item_use(use_museumticket, "use_museumticket"); register_item_use(use_museumkey, "use_museumkey"); register_item_use(use_museumexitticket, "use_museumexitticket"); }
void register_arena(void) { at_register(&at_hurting); register_item_use(use_wand_of_tears, "use_wand_of_tears"); register_function((pf_generic) enter_arena, "enter_arena"); register_function((pf_generic) leave_arena, "leave_arena"); tt_register(&tt_caldera); }
void register_artrewards(void) { at_register(&at_peaceimmune); register_item_use(use_hornofdancing, "use_hornofdancing"); register_item_use(use_trappedairelemental, "use_trappedairelemental"); register_item_useonother(useonother_trappedairelemental, "useonother_trappedairelemental"); }
/*---------------------------------------------------------------------------*/ PROCESS_THREAD(at_test_process, ev, data) { PROCESS_BEGIN(); struct at_cmd *a; /* Initialize the driver, default is UART0 */ at_init(0); /* Register a list of commands, is mandatory to start with "AT" */ at_register(&at_cmd_test, &at_test_process, "AT", 2, 2, at_cmd_test_callback); at_register(&at_cmd_board, &at_test_process, "AT&V", 4, 4, at_cmd_board_callback); at_register(&at_cmd_led, &at_test_process, "AT&LED", 6, 10, at_cmd_leds_callback); at_register(&at_cmd_addr, &at_test_process, "AT&A", 4, 4, at_cmd_address_callback); at_register(&at_cmd_gpio, &at_test_process, "AT&GPIO=", 8, 12, at_cmd_gpio_callback); at_register(&at_cmd_read, &at_test_process, "AT&READ=", 8, 10, at_cmd_read_callback); at_register(&at_cmd_adc, &at_test_process, "AT&ADC=", 7, 8, at_cmd_adc_callback); at_register(&at_cmd_flop, &at_test_process, "AT&FLOP=", 8, 10, at_cmd_flop_callback); at_register(&at_cmd_reset, &at_test_process, "AT&RESET=", 9, 10, at_cmd_reset_callback); at_register(&at_cmd_sha256, &at_test_process, "AT&SHA256=", 10, 64, at_cmd_sha256_callback); /* Print the command list */ PRINTF("AT command list:\n"); for(a = at_list(); a != NULL; a = list_item_next(a)) { PRINTF("* HDR %s LEN %u MAX %u\n", a->cmd_header, a->cmd_hdr_len, a->cmd_max_len); } /* * When an AT command is received over the serial line, the registered * callbacks will be invoked, let the process spin until then */ while(1) { PROCESS_YIELD(); } PROCESS_END(); }
void register_borders(void) { border_convert_cb = &convert_firewall_timeouts; at_register(&at_cursewall); register_bordertype(&bt_firewall); register_bordertype(&bt_wisps); register_bordertype(&bt_chaosgate); }
void register_gmcmd(void) { at_register(&at_gmcreate); at_register(&at_permissions); add_command(&g_root, &g_keys, "gm", NULL); add_command(&g_keys, NULL, "terraform", &gm_terraform); add_command(&g_keys, NULL, "create", &gm_create); add_command(&g_keys, NULL, "gate", &gm_gate); add_command(&g_keys, NULL, "give", &gm_give); add_command(&g_keys, NULL, "take", &gm_take); add_command(&g_keys, NULL, "teleport", &gm_teleport); add_command(&g_keys, NULL, "skill", &gm_skill); add_command(&g_keys, &g_tell, "tell", NULL); add_command(&g_tell, NULL, "region", &gm_messageregion); add_command(&g_tell, NULL, "unit", &gm_messageunit); add_command(&g_tell, NULL, "plane", &gm_messageplane); add_command(&g_tell, NULL, "faction", &gm_messagefaction); add_command(&g_keys, &g_kill, "kill", NULL); add_command(&g_kill, NULL, "unit", &gm_killunit); add_command(&g_kill, NULL, "faction", &gm_killfaction); }
void register_tolua_helpers(void) { tt_register(&tt_caldera); at_register(&at_direction); at_deprecate("lcbuilding", building_action_read); callbacks.equip_unit = lua_equipunit; callbacks.cast_spell = lua_callspell; callbacks.use_item = use_item_callback; callbacks.produce_resource = produce_resource_lua; callbacks.limit_resource = limit_resource_lua; register_function((pf_generic)lua_changeresource, "lua_changeresource"); register_item_give(lua_giveitem, "lua_giveitem"); }
void register_gmcmd(void) { at_register(&at_gmcreate); at_register(&at_permissions); }
void wormholes_register(void) { at_register(&at_wormhole); }
void chaos_register(void) { at_register(&at_chaoscount); }
void init_fleechance(void) { at_register(&at_fleechance); }
void register_alp(void) { at_register(&at_alp); }