adamaig-ruby_activeworld 0.1-linux → 0.2-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/ruby_activeworld.c +1864 -0
  2. metadata +2 -3
@@ -0,0 +1,1864 @@
1
+ #include "ruby.h"
2
+ #include "Aw.h"
3
+
4
+ typedef struct {
5
+ void* c_self;
6
+ VALUE ruby_self;
7
+ } RUBY_AW_APPLICATION;
8
+
9
+ static VALUE cRubyActiveworld;
10
+
11
+ void ruby_aw_bot_mark(void* p) {
12
+ rb_gc_mark(((RUBY_AW_APPLICATION*) p)->ruby_self);
13
+ }
14
+
15
+ static VALUE ruby_aw_allocate(VALUE klass) {
16
+ RUBY_AW_APPLICATION* ruby_aw_bot = 0;
17
+ return Data_Make_Struct(klass, RUBY_AW_APPLICATION, ruby_aw_bot_mark, free, ruby_aw_bot);
18
+ }
19
+
20
+ /* This method creates a instance, and then calls aw_user_data_set to add a
21
+ * pointer to the ruby object to the AW instance's user_data container.
22
+ *
23
+ * Returns an instance of RubyActiveworld
24
+ */
25
+ static VALUE ruby_activeworld_initialize(VALUE self, VALUE host, VALUE port) {
26
+ int rc = 0;
27
+ RUBY_AW_APPLICATION* ruby_aw_bot = 0;
28
+ Data_Get_Struct(self, RUBY_AW_APPLICATION, ruby_aw_bot);
29
+ rc = aw_create( StringValuePtr(host), FIX2INT(port), &(ruby_aw_bot->c_self));
30
+ if( rc != 0 /* RC_SUCCESS */ ) {
31
+ rb_raise(rb_eRuntimeError,"Unable to create instance (reason %d)\n", rc);
32
+ }
33
+ ruby_aw_bot->ruby_self = self;
34
+ aw_user_data_set(ruby_aw_bot);
35
+ return self;
36
+ }
37
+ // Operates on the current bot instance
38
+ static VALUE ruby_aw_instance() {
39
+ return ((RUBY_AW_APPLICATION*) aw_user_data())->ruby_self;
40
+ }
41
+ // A
42
+
43
+ static VALUE ruby_aw_address(VALUE self, VALUE session_id) {
44
+ return INT2FIX(aw_address ( FIX2INT(session_id)));
45
+ }
46
+
47
+ static VALUE ruby_aw_avatar_click(VALUE self, VALUE session_id) {
48
+ return INT2FIX(aw_avatar_click ( FIX2INT(session_id)));
49
+ }
50
+
51
+ static VALUE ruby_aw_avatar_location(VALUE self, VALUE citizen, VALUE session_id, VALUE name) {
52
+ return INT2FIX(aw_avatar_location ( FIX2INT(citizen), FIX2INT(session_id), StringValuePtr(name)));
53
+ }
54
+
55
+ static VALUE ruby_aw_avatar_reload(VALUE self, VALUE citizen, VALUE session) {
56
+ return INT2FIX(aw_avatar_reload(FIX2INT(citizen), FIX2INT(session)));
57
+ }
58
+
59
+ static VALUE ruby_aw_avatar_set(VALUE self, VALUE session_id) {
60
+ return INT2FIX(aw_avatar_set ( FIX2INT(session_id)));
61
+ }
62
+ // B
63
+
64
+ static VALUE ruby_aw_bool(VALUE self, VALUE attr) {
65
+ return aw_bool((AW_ATTRIBUTE) FIX2INT(attr)) == 0 ? Qfalse : Qtrue;
66
+ }
67
+
68
+ static VALUE ruby_aw_bool_set(VALUE self, VALUE attr, VALUE val) {
69
+ return INT2FIX(aw_bool_set((AW_ATTRIBUTE) FIX2INT(attr), val == Qtrue ? 1 : 0));
70
+ }
71
+
72
+ static VALUE ruby_aw_botgram_send(VALUE self) {
73
+ return INT2FIX(aw_botgram_send ());
74
+ }
75
+
76
+ static VALUE ruby_aw_botmenu_send(VALUE self) {
77
+ return INT2FIX(aw_botmenu_send ());
78
+ }
79
+ // C
80
+ //aw_callback
81
+ //aw_callback_set
82
+ static VALUE ruby_aw_camera_set(VALUE self, VALUE session_id) {
83
+ return INT2FIX(aw_camera_set ( FIX2INT(session_id)));
84
+ }
85
+ static VALUE ruby_aw_cell_next(VALUE self) {
86
+ return INT2FIX(aw_cell_next ());
87
+ }
88
+ static VALUE ruby_aw_check_right(VALUE self, VALUE citizen, VALUE str) {
89
+ return INT2FIX(aw_check_right ( FIX2INT(citizen), StringValuePtr(str)));
90
+ }
91
+ static VALUE ruby_aw_check_right_all(VALUE self, VALUE str) {
92
+ return INT2FIX(aw_check_right_all ( StringValuePtr(str)));
93
+ }
94
+ static VALUE ruby_aw_citizen_add(VALUE self) {
95
+ return INT2FIX(aw_citizen_add() );
96
+ }
97
+ static VALUE ruby_aw_citizen_attributes_by_name(VALUE self, VALUE name) {
98
+ return INT2FIX(aw_citizen_attributes_by_name ( StringValuePtr(name) ));
99
+ }
100
+ static VALUE ruby_aw_citizen_attributes_by_number(VALUE self, VALUE citizen) {
101
+ return INT2FIX(aw_citizen_attributes_by_number ( FIX2INT(citizen) ));
102
+ }
103
+ static VALUE ruby_aw_citizen_change(VALUE self) {
104
+ return INT2FIX(aw_citizen_change());
105
+ }
106
+ static VALUE ruby_aw_citizen_delete(VALUE self, VALUE citizen) {
107
+ return INT2FIX(aw_citizen_delete(FIX2INT(citizen)));
108
+ }
109
+ static VALUE ruby_aw_citizen_next(VALUE self) {
110
+ return INT2FIX(aw_citizen_next());
111
+ }
112
+ static VALUE ruby_aw_citizen_previous(VALUE self) {
113
+ return INT2FIX(aw_citizen_previous());
114
+ }
115
+ static VALUE ruby_aw_console_message(VALUE self, VALUE session_id) {
116
+ return INT2FIX(aw_console_message( FIX2INT(session_id) ));
117
+ }
118
+ // aw_create
119
+ // D
120
+ static VALUE ruby_aw_data(VALUE self, VALUE attr) {
121
+ unsigned int length = 0;
122
+ return rb_tainted_str_new2(aw_data((AW_ATTRIBUTE) FIX2INT(attr), &length));
123
+ }
124
+ static VALUE ruby_aw_data_set(VALUE self, VALUE attr, VALUE val) {
125
+ return INT2FIX(aw_data_set((AW_ATTRIBUTE) FIX2INT(attr), StringValuePtr(val), (int) (RSTRING(val)->len)));
126
+ }
127
+ static VALUE ruby_aw_delete_all_objects(VALUE self) {
128
+ return INT2FIX(aw_delete_all_objects ());
129
+ }
130
+ /* Calls aw_destroy on the calling instance. This means the instnace stops
131
+ * receiving events, and will be deallocated at the next aw_wait. Make sure
132
+ * to release references to calling object after this.
133
+ *
134
+ */
135
+ static VALUE ruby_aw_destroy(VALUE self) {
136
+ RUBY_AW_APPLICATION* bot = 0;
137
+ Data_Get_Struct(self, RUBY_AW_APPLICATION, bot);
138
+ aw_instance_set(bot->c_self);
139
+ return (INT2FIX(aw_destroy()));
140
+ }
141
+ // E
142
+ static VALUE ruby_aw_enter(VALUE self, VALUE world_name) {
143
+ return INT2FIX(aw_enter(StringValuePtr(world_name)));
144
+ }
145
+ static VALUE ruby_aw_exit(VALUE self) {
146
+ return (INT2FIX(aw_exit()));
147
+ }
148
+ // F
149
+
150
+ static VALUE ruby_aw_float(VALUE self, VALUE attr) {
151
+ return rb_float_new(aw_float((AW_ATTRIBUTE) FIX2INT(attr)));
152
+ }
153
+
154
+ static VALUE ruby_aw_float_set(VALUE self, VALUE attr, VALUE val) {
155
+ return INT2FIX(aw_float_set((AW_ATTRIBUTE) FIX2INT(attr), (float) NUM2DBL(val)));
156
+ }
157
+ // H
158
+ static VALUE ruby_aw_has_world_right(VALUE self, VALUE citizen, VALUE right) {
159
+ return INT2FIX(aw_has_world_right ( FIX2INT(citizen), (AW_ATTRIBUTE) FIX2INT(right)));
160
+ }
161
+ static VALUE ruby_aw_has_world_right_all(VALUE self, VALUE right) {
162
+ return INT2FIX(aw_has_world_right_all ( (AW_ATTRIBUTE) FIX2INT(right)));
163
+ }
164
+ static VALUE ruby_aw_hud_click(VALUE self) {
165
+ return INT2FIX(aw_hud_click ());
166
+ }
167
+ static VALUE ruby_aw_hud_clear(VALUE self, VALUE session) {
168
+ return INT2FIX(aw_hud_clear ( FIX2INT(session)));
169
+ }
170
+
171
+ static VALUE ruby_aw_hud_create(VALUE self) {
172
+ return INT2FIX(aw_hud_create ());
173
+ }
174
+ static VALUE ruby_aw_hud_destroy(VALUE self, VALUE session, VALUE id) {
175
+ return INT2FIX(aw_hud_destroy ( FIX2INT(session), FIX2INT(id)));
176
+ }
177
+ // I
178
+ static VALUE ruby_aw_init(VALUE self, VALUE build) {
179
+ return INT2FIX(aw_init(FIX2INT(build)));
180
+ }
181
+ static VALUE ruby_aw_instance_set(VALUE self, VALUE target) {
182
+ RUBY_AW_APPLICATION* bot = 0;
183
+ Data_Get_Struct(target, RUBY_AW_APPLICATION, bot);
184
+ return INT2FIX(aw_instance_set(bot->c_self));
185
+ }
186
+ static VALUE ruby_aw_int(VALUE self, VALUE attr) {
187
+ return INT2NUM(aw_int((AW_ATTRIBUTE) FIX2INT(attr)));
188
+ }
189
+ static VALUE ruby_aw_int_set(VALUE self, VALUE attr, VALUE val) {
190
+ return INT2NUM(aw_int_set((AW_ATTRIBUTE) FIX2INT(attr), NUM2INT(val)));
191
+ }
192
+ // L
193
+ static VALUE ruby_aw_login(VALUE self) {
194
+ return INT2FIX(aw_login());
195
+ }
196
+ static VALUE ruby_aw_license_add(VALUE self) {
197
+ return INT2FIX(aw_license_add());
198
+ }
199
+ static VALUE ruby_aw_license_attributes(VALUE self, VALUE name) {
200
+ return INT2FIX(aw_license_attributes( StringValuePtr(name) ));
201
+ }
202
+ static VALUE ruby_aw_license_change(VALUE self) {
203
+ return INT2FIX(aw_license_change());
204
+ }
205
+ static VALUE ruby_aw_license_delete(VALUE self, VALUE name) {
206
+ return INT2FIX(aw_license_delete( StringValuePtr(name) ));
207
+ }
208
+ static VALUE ruby_aw_license_next(VALUE self) {
209
+ return INT2FIX(aw_license_next());
210
+ }
211
+ static VALUE ruby_aw_license_previous(VALUE self) {
212
+ return INT2FIX(aw_license_previous());
213
+ }
214
+ // M
215
+ static VALUE ruby_aw_mover_set_state(VALUE self, VALUE _id, VALUE _state, VALUE _model_num) {
216
+ int id = FIX2INT(_id);
217
+ int state = FIX2INT(_state);
218
+ int model_num = FIX2INT(_model_num);
219
+ return INT2FIX(aw_mover_set_state ( id, state, model_num));
220
+ }
221
+ static VALUE ruby_aw_mover_set_position(VALUE self, VALUE _id, VALUE _x, VALUE _y, VALUE _z, VALUE _yaw, VALUE _pitch, VALUE _roll) {
222
+ int id = FIX2INT(_id);
223
+ int x = FIX2INT(_x);
224
+ int y = FIX2INT(_y);
225
+ int z = FIX2INT(_z);
226
+ int yaw = FIX2INT(_yaw);
227
+ int pitch = FIX2INT(_pitch);
228
+ int roll = FIX2INT(_roll);
229
+ return INT2FIX(aw_mover_set_position ( id, x, y, z, yaw, pitch, roll));
230
+ }
231
+ static VALUE ruby_aw_mover_rider_add(VALUE self, VALUE _id, VALUE _session, VALUE _dist, VALUE _angle, VALUE _y_delta, VALUE _yaw_delta, VALUE _pitch_delta) {
232
+ int id = FIX2INT(_id);
233
+ int session = FIX2INT(_session);
234
+ int dist = FIX2INT(_dist);
235
+ int angle = FIX2INT(_angle);
236
+ int y_delta = FIX2INT(_y_delta);
237
+ int yaw_delta = FIX2INT(_yaw_delta);
238
+ int pitch_delta = FIX2INT(_pitch_delta);
239
+ return INT2FIX(aw_mover_rider_add ( id, session, dist, angle, y_delta, yaw_delta, pitch_delta));
240
+ }
241
+
242
+ static VALUE ruby_aw_mover_rider_change(VALUE self, VALUE _id, VALUE _session, VALUE _dist, VALUE _angle, VALUE _y_delta, VALUE _yaw_delta, VALUE _pitch_delta) {
243
+ int id = FIX2INT(_id);
244
+ int session = FIX2INT(_session);
245
+ int dist = FIX2INT(_dist);
246
+ int angle = FIX2INT(_angle);
247
+ int y_delta = FIX2INT(_y_delta);
248
+ int yaw_delta = FIX2INT(_yaw_delta);
249
+ int pitch_delta = FIX2INT(_pitch_delta);
250
+ return INT2FIX(aw_mover_rider_change ( id, session, dist, angle, y_delta, yaw_delta, pitch_delta));
251
+ }
252
+
253
+ static VALUE ruby_aw_mover_rider_delete(VALUE self, VALUE _id, VALUE _session) {
254
+ int id = FIX2INT(_id);
255
+ int session = FIX2INT(_session);
256
+ return INT2FIX(aw_mover_rider_delete ( id, session));
257
+ }
258
+
259
+ static VALUE ruby_aw_mover_links(VALUE self, VALUE _id) {
260
+ int id = FIX2INT(_id);
261
+ return INT2FIX(aw_mover_links ( id));
262
+ }
263
+ // N
264
+ static VALUE ruby_aw_noise(VALUE self, VALUE session_id) {
265
+ return INT2FIX(aw_noise ( FIX2INT(session_id)));
266
+ }
267
+ // Q
268
+ #define QUERY_3x3 3
269
+ #define QUERY_5x5 5
270
+ static VALUE ruby_aw_query(VALUE self, VALUE x_sector, VALUE y_sector, VALUE sequence) {
271
+ int x = 0, y = 0, rc = 0;
272
+ int seq[QUERY_3x3][QUERY_3x3];
273
+ VALUE t;
274
+ for(x = 0; x < QUERY_3x3; ++x ) {
275
+ t = rb_ary_entry(sequence, x);
276
+ for(y = 0; y < QUERY_3x3; ++y) {
277
+ seq[x][y] = FIX2INT(rb_ary_entry(t,y));
278
+ }
279
+ }
280
+ rc = aw_query(FIX2INT(x_sector), FIX2INT(y_sector), seq);
281
+ for(x = 0; x < QUERY_3x3; ++x ) {
282
+ t = rb_ary_entry(sequence, x);
283
+ for(y = 0; y < QUERY_3x3; ++y) {
284
+ rb_ary_store(t, y, INT2FIX(seq[x][y]));
285
+ }
286
+ }
287
+ return INT2FIX(rc);
288
+ }
289
+ static VALUE ruby_aw_query_5x5(VALUE self, VALUE x_sector, VALUE y_sector, VALUE sequence) {
290
+ int x = 0, y = 0, rc = 0;
291
+ int seq[QUERY_5x5][QUERY_5x5];
292
+ VALUE t;
293
+ for(x = 0; x < QUERY_5x5; ++x ) {
294
+ t = rb_ary_entry(sequence, x);
295
+ for(y = 0; y < QUERY_5x5; ++y) {
296
+ seq[x][y] = FIX2INT(rb_ary_entry(t,y));
297
+ }
298
+ }
299
+ rc = aw_query_5x5(FIX2INT(x_sector), FIX2INT(y_sector), seq);
300
+ for(x = 0; x < QUERY_5x5; ++x ) {
301
+ t = rb_ary_entry(sequence, x);
302
+ for(y = 0; y < QUERY_5x5; ++y) {
303
+ rb_ary_store(t, y, INT2FIX(seq[x][y]));
304
+ }
305
+ }
306
+ return INT2FIX(rc);
307
+ }
308
+ // R
309
+ static VALUE ruby_aw_random(VALUE self) {
310
+ return INT2FIX(aw_random());
311
+ }
312
+ // S
313
+ static VALUE ruby_aw_say(VALUE self, VALUE message) {
314
+ return INT2FIX(aw_say( StringValuePtr(message) ));
315
+ }
316
+ static VALUE ruby_aw_sector_from_cell(VALUE self, VALUE cell) {
317
+ return INT2FIX(aw_sector_from_cell ( FIX2INT(cell)));
318
+ }
319
+ static VALUE ruby_aw_server_world_add(VALUE self) {
320
+ return INT2FIX(aw_server_world_add ());
321
+ }
322
+ static VALUE ruby_aw_server_world_change(VALUE self, VALUE id) {
323
+ return INT2FIX(aw_server_world_change ( FIX2INT(id)));
324
+ }
325
+ static VALUE ruby_aw_server_world_delete(VALUE self, VALUE id) {
326
+ return INT2FIX(aw_server_world_delete ( FIX2INT(id)));
327
+ }
328
+ static VALUE ruby_aw_server_world_list(VALUE self) {
329
+ return INT2FIX(aw_server_world_list ());
330
+ }
331
+ static VALUE ruby_aw_server_world_start(VALUE self, VALUE id) {
332
+ return INT2FIX(aw_server_world_start ( FIX2INT(id)));
333
+ }
334
+ static VALUE ruby_aw_server_world_stop(VALUE self, VALUE id) {
335
+ return INT2FIX(aw_server_world_stop ( FIX2INT(id)));
336
+ }
337
+ static VALUE ruby_aw_server_world_set(VALUE self, VALUE id) {
338
+ return INT2FIX(aw_server_world_set ( FIX2INT(id)));
339
+ }
340
+ static VALUE ruby_aw_server_world_instance_add(VALUE self, VALUE id, VALUE instance_id) {
341
+ return INT2FIX(aw_server_world_instance_add ( FIX2INT(id), FIX2INT(instance_id)));
342
+ }
343
+ static VALUE ruby_aw_server_world_instance_delete(VALUE self, VALUE id, VALUE instance_id) {
344
+ return INT2FIX(aw_server_world_instance_delete ( FIX2INT(id), FIX2INT(instance_id)));
345
+ }
346
+ static VALUE ruby_aw_server_world_instance_set(VALUE self, VALUE id) {
347
+ return INT2FIX(aw_server_world_instance_set ( FIX2INT(id)));
348
+ }
349
+ static VALUE ruby_aw_session(VALUE self) {
350
+ return INT2FIX(aw_session());
351
+ }
352
+ static VALUE ruby_aw_state_change(VALUE self) {
353
+ return INT2FIX(aw_state_change());
354
+ }
355
+ static VALUE ruby_aw_string(VALUE self, VALUE attr) {
356
+ return rb_tainted_str_new2(aw_string((AW_ATTRIBUTE) FIX2INT(attr)));
357
+ }
358
+ static VALUE ruby_aw_string_set(VALUE self, VALUE attr, VALUE val) {
359
+ return INT2FIX(aw_string_set((AW_ATTRIBUTE) FIX2INT(attr), StringValuePtr(val)));
360
+ }
361
+ // T
362
+ /* call-seq:
363
+ * bot.ruby_aw_term
364
+ *
365
+ * This deallocates resources that have been used by the AW SDK. Use with
366
+ * caution, and make sure to deallocate the ruby resources used as well.
367
+ */
368
+ static VALUE ruby_aw_term(VALUE self) {
369
+ aw_term();
370
+ return (Qnil);
371
+ }
372
+ static VALUE ruby_aw_teleport(VALUE self, VALUE session_id) {
373
+ return INT2FIX(aw_teleport(FIX2INT(session_id)));
374
+ }
375
+ static VALUE ruby_aw_terrain_next(VALUE self) {
376
+ return INT2FIX(aw_terrain_next ());
377
+ }
378
+ static VALUE ruby_aw_terrain_delete_all(VALUE self) {
379
+ return INT2FIX(aw_terrain_delete_all ());
380
+ }
381
+ static VALUE ruby_aw_terrain_load_node(VALUE self) {
382
+ return INT2FIX(aw_terrain_load_node ());
383
+ }
384
+ // missing 2 terrain functions
385
+ static VALUE ruby_aw_tick(VALUE self) {
386
+ return UINT2NUM(aw_tick());
387
+ }
388
+ // U
389
+ static VALUE ruby_aw_universe_ejection_add(VALUE self) {
390
+ return INT2FIX(aw_universe_ejection_add());
391
+ }
392
+ static VALUE ruby_aw_universe_attributes_change(VALUE self) {
393
+ return INT2FIX(aw_universe_attributes_change());
394
+ }
395
+ static VALUE ruby_aw_universe_ejection_delete(VALUE self, VALUE address) {
396
+ return INT2FIX(aw_universe_ejection_delete ( FIX2INT(address)));
397
+ }
398
+ static VALUE ruby_aw_universe_ejection_lookup(VALUE self) {
399
+ return INT2FIX(aw_universe_ejection_lookup());
400
+ }
401
+ static VALUE ruby_aw_universe_ejection_next(VALUE self) {
402
+ return INT2FIX(aw_universe_ejection_next());
403
+ }
404
+ static VALUE ruby_aw_universe_ejection_previous(VALUE self) {
405
+ return INT2FIX(aw_universe_ejection_previous());
406
+ }
407
+ static VALUE ruby_aw_user_list(VALUE self) {
408
+ return (INT2FIX(aw_user_list()));
409
+ }
410
+ static VALUE ruby_aw_url_click(VALUE self, VALUE url) {
411
+ return FIX2INT(aw_url_click(StringValuePtr(url)));
412
+ }
413
+ static VALUE ruby_aw_url_send(VALUE self, VALUE session_id, VALUE url, VALUE target) {
414
+ return INT2FIX(aw_url_send( FIX2INT(session_id), StringValuePtr(url), NIL_P(target) ? 0 : StringValuePtr(target)));
415
+ }
416
+ // O
417
+ static VALUE ruby_aw_object_add(VALUE self) {
418
+ return INT2FIX(aw_object_add());
419
+ }
420
+ static VALUE ruby_aw_object_bump(VALUE self) {
421
+ return INT2FIX(aw_object_bump ());
422
+ }
423
+ static VALUE ruby_aw_object_change(VALUE self) {
424
+ return INT2FIX(aw_object_change());
425
+ }
426
+ static VALUE ruby_aw_object_click(VALUE self) {
427
+ return INT2FIX(aw_object_click ());
428
+ }
429
+ static VALUE ruby_aw_object_delete(VALUE self) {
430
+ return INT2FIX(aw_object_delete());
431
+ }
432
+ static VALUE ruby_aw_object_load(VALUE self) {
433
+ return INT2FIX(aw_object_load());
434
+ }
435
+ static VALUE ruby_aw_object_select(VALUE self) {
436
+ return INT2FIX(aw_object_select ());
437
+ }
438
+ // W
439
+ static VALUE ruby_aw_wait(VALUE self, VALUE milliseconds) {
440
+ return INT2FIX(aw_wait(FIX2INT(milliseconds)));
441
+ }
442
+ static VALUE ruby_aw_whisper(VALUE self, VALUE session, VALUE message) {
443
+ return INT2FIX(aw_whisper( FIX2INT(session), StringValuePtr(message) ));
444
+ }
445
+ static VALUE ruby_aw_world_attribute_get(VALUE self, VALUE attribute) {
446
+ int read_only;
447
+ char val[AW_MAX_ATTRIBUTE_LENGTH + 1];
448
+ int rc = aw_world_attribute_get( FIX2INT(attribute), &read_only, val);
449
+ VALUE h = rb_hash_new();
450
+ rb_hash_aset(h, rb_str_new2("rc"), INT2FIX(rc));
451
+ rb_hash_aset(h, rb_str_new2("value"), rb_tainted_str_new2(val));
452
+ rb_hash_aset(h, rb_str_new2("read_only"), rc == 0 ? Qfalse : Qtrue );
453
+ return h;
454
+ }
455
+ static VALUE ruby_aw_world_attribute_set(VALUE self, VALUE attribute, VALUE value) {
456
+ return INT2FIX(aw_world_attribute_set ( FIX2INT(attribute), StringValuePtr(value)));
457
+ }
458
+ static VALUE ruby_aw_world_attributes_change(VALUE self) {
459
+ return INT2FIX(aw_world_attributes_change());
460
+ }
461
+ static VALUE ruby_aw_world_attributes_send(VALUE self, VALUE session_id) {
462
+ return INT2FIX(aw_world_attributes_send ( FIX2INT(session_id)));
463
+ }
464
+ static VALUE ruby_aw_world_attributes_reset(VALUE self) {
465
+ return INT2FIX(aw_world_attributes_reset ());
466
+ }
467
+ static VALUE ruby_aw_world_eject(VALUE self) {
468
+ return INT2FIX(aw_world_eject ());
469
+ }
470
+ static VALUE ruby_aw_world_ejection_add(VALUE self) {
471
+ return INT2FIX(aw_world_ejection_add ());
472
+ }
473
+ static VALUE ruby_aw_world_ejection_delete(VALUE self) {
474
+ return INT2FIX(aw_world_ejection_delete ());
475
+ }
476
+ static VALUE ruby_aw_world_ejection_lookup(VALUE self) {
477
+ return INT2FIX(aw_world_ejection_lookup ());
478
+ }
479
+ static VALUE ruby_aw_world_ejection_next(VALUE self) {
480
+ return INT2FIX(aw_world_ejection_next ());
481
+ }
482
+ static VALUE ruby_aw_world_ejection_previous(VALUE self) {
483
+ return INT2FIX(aw_world_ejection_previous ());
484
+ }
485
+ static VALUE ruby_aw_world_instance_get(VALUE self, VALUE citizen) {
486
+ return INT2FIX(aw_world_instance_get ( FIX2INT(citizen) ));
487
+ }
488
+ static VALUE ruby_aw_world_instance_set(VALUE self, VALUE citizen, VALUE world_instance) {
489
+ return INT2FIX(aw_world_instance_set ( FIX2INT(citizen), FIX2INT(world_instance)));
490
+ }
491
+ static VALUE ruby_aw_world_list(VALUE self) {
492
+ return INT2FIX(aw_world_list());
493
+ }
494
+ static VALUE ruby_aw_world_reload_registry(VALUE self) {
495
+ return INT2FIX(aw_world_reload_registry ());
496
+ }
497
+
498
+ // CALLBACKS
499
+ VALUE admin_world_delete_event_callback(VALUE self) {
500
+ return Qnil;
501
+ }
502
+ void admin_world_delete_event_callback_hook() {
503
+ rb_funcall(ruby_aw_instance(), rb_intern("admin_world_delete_event_callback"), 0);
504
+ }
505
+ static VALUE receive_aw_event_admin_world_delete(VALUE self) {
506
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ADMIN_WORLD_DELETE,admin_world_delete_event_callback_hook));
507
+ }
508
+
509
+
510
+ VALUE admin_world_info_event_callback(VALUE self) {
511
+ return Qnil;
512
+ }
513
+ void admin_world_info_event_callback_hook() {
514
+ rb_funcall(ruby_aw_instance(), rb_intern("admin_world_info_event_callback"), 0);
515
+ }
516
+ static VALUE receive_aw_event_admin_world_info(VALUE self) {
517
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ADMIN_WORLD_INFO,admin_world_info_event_callback_hook));
518
+ }
519
+
520
+
521
+ VALUE avatar_add_event_callback(VALUE self) {
522
+ return Qnil;
523
+ }
524
+ void avatar_add_event_callback_hook() {
525
+ rb_funcall(ruby_aw_instance(), rb_intern("avatar_add_event_callback"), 0);
526
+ }
527
+ static VALUE receive_aw_event_avatar_add(VALUE self) {
528
+ return INT2NUM(aw_instance_event_set(AW_EVENT_AVATAR_ADD,avatar_add_event_callback_hook));
529
+ }
530
+
531
+
532
+ VALUE avatar_change_event_callback(VALUE self) {
533
+ return Qnil;
534
+ }
535
+ void avatar_change_event_callback_hook() {
536
+ rb_funcall(ruby_aw_instance(), rb_intern("avatar_change_event_callback"), 0);
537
+ }
538
+ static VALUE receive_aw_event_avatar_change(VALUE self) {
539
+ return INT2NUM(aw_instance_event_set(AW_EVENT_AVATAR_CHANGE,avatar_change_event_callback_hook));
540
+ }
541
+
542
+
543
+ VALUE avatar_click_event_callback(VALUE self) {
544
+ return Qnil;
545
+ }
546
+ void avatar_click_event_callback_hook() {
547
+ rb_funcall(ruby_aw_instance(), rb_intern("avatar_click_event_callback"), 0);
548
+ }
549
+ static VALUE receive_aw_event_avatar_click(VALUE self) {
550
+ return INT2NUM(aw_instance_event_set(AW_EVENT_AVATAR_CLICK,avatar_click_event_callback_hook));
551
+ }
552
+
553
+
554
+ VALUE avatar_delete_event_callback(VALUE self) {
555
+ return Qnil;
556
+ }
557
+ void avatar_delete_event_callback_hook() {
558
+ rb_funcall(ruby_aw_instance(), rb_intern("avatar_delete_event_callback"), 0);
559
+ }
560
+ static VALUE receive_aw_event_avatar_delete(VALUE self) {
561
+ return INT2NUM(aw_instance_event_set(AW_EVENT_AVATAR_DELETE,avatar_delete_event_callback_hook));
562
+ }
563
+
564
+
565
+ VALUE avatar_reload_event_callback(VALUE self) {
566
+ return Qnil;
567
+ }
568
+ void avatar_reload_event_callback_hook() {
569
+ rb_funcall(ruby_aw_instance(), rb_intern("avatar_reload_event_callback"), 0);
570
+ }
571
+ static VALUE receive_aw_event_avatar_reload(VALUE self) {
572
+ return INT2NUM(aw_instance_event_set(AW_EVENT_AVATAR_RELOAD,avatar_reload_event_callback_hook));
573
+ }
574
+
575
+
576
+ VALUE botgram_event_callback(VALUE self) {
577
+ return Qnil;
578
+ }
579
+ void botgram_event_callback_hook() {
580
+ rb_funcall(ruby_aw_instance(), rb_intern("botgram_event_callback"), 0);
581
+ }
582
+ static VALUE receive_aw_event_botgram(VALUE self) {
583
+ return INT2NUM(aw_instance_event_set(AW_EVENT_BOTGRAM,botgram_event_callback_hook));
584
+ }
585
+
586
+
587
+ VALUE botmenu_event_callback(VALUE self) {
588
+ return Qnil;
589
+ }
590
+ void botmenu_event_callback_hook() {
591
+ rb_funcall(ruby_aw_instance(), rb_intern("botmenu_event_callback"), 0);
592
+ }
593
+ static VALUE receive_aw_event_botmenu(VALUE self) {
594
+ return INT2NUM(aw_instance_event_set(AW_EVENT_BOTMENU,botmenu_event_callback_hook));
595
+ }
596
+
597
+
598
+ VALUE camera_event_callback(VALUE self) {
599
+ return Qnil;
600
+ }
601
+ void camera_event_callback_hook() {
602
+ rb_funcall(ruby_aw_instance(), rb_intern("camera_event_callback"), 0);
603
+ }
604
+ static VALUE receive_aw_event_camera(VALUE self) {
605
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CAMERA,camera_event_callback_hook));
606
+ }
607
+
608
+
609
+ VALUE cell_begin_event_callback(VALUE self) {
610
+ return Qnil;
611
+ }
612
+ void cell_begin_event_callback_hook() {
613
+ rb_funcall(ruby_aw_instance(), rb_intern("cell_begin_event_callback"), 0);
614
+ }
615
+ static VALUE receive_aw_event_cell_begin(VALUE self) {
616
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CELL_BEGIN,cell_begin_event_callback_hook));
617
+ }
618
+
619
+
620
+ VALUE cell_end_event_callback(VALUE self) {
621
+ return Qnil;
622
+ }
623
+ void cell_end_event_callback_hook() {
624
+ rb_funcall(ruby_aw_instance(), rb_intern("cell_end_event_callback"), 0);
625
+ }
626
+ static VALUE receive_aw_event_cell_end(VALUE self) {
627
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CELL_END,cell_end_event_callback_hook));
628
+ }
629
+
630
+
631
+ VALUE cell_object_event_callback(VALUE self) {
632
+ return Qnil;
633
+ }
634
+ void cell_object_event_callback_hook() {
635
+ rb_funcall(ruby_aw_instance(), rb_intern("cell_object_event_callback"), 0);
636
+ }
637
+ static VALUE receive_aw_event_cell_object(VALUE self) {
638
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CELL_OBJECT,cell_object_event_callback_hook));
639
+ }
640
+
641
+
642
+ VALUE chat_event_callback(VALUE self) {
643
+ return Qnil;
644
+ }
645
+ void chat_event_callback_hook() {
646
+ rb_funcall(ruby_aw_instance(), rb_intern("chat_event_callback"), 0);
647
+ }
648
+ static VALUE receive_aw_event_chat(VALUE self) {
649
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CHAT,chat_event_callback_hook));
650
+ }
651
+
652
+
653
+ VALUE console_message_event_callback(VALUE self) {
654
+ return Qnil;
655
+ }
656
+ void console_message_event_callback_hook() {
657
+ rb_funcall(ruby_aw_instance(), rb_intern("console_message_event_callback"), 0);
658
+ }
659
+ static VALUE receive_aw_event_console_message(VALUE self) {
660
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CONSOLE_MESSAGE,console_message_event_callback_hook));
661
+ }
662
+
663
+
664
+ VALUE contact_state_event_callback(VALUE self) {
665
+ return Qnil;
666
+ }
667
+ void contact_state_event_callback_hook() {
668
+ rb_funcall(ruby_aw_instance(), rb_intern("contact_state_event_callback"), 0);
669
+ }
670
+ static VALUE receive_aw_event_contact_state(VALUE self) {
671
+ return INT2NUM(aw_instance_event_set(AW_EVENT_CONTACT_STATE,contact_state_event_callback_hook));
672
+ }
673
+
674
+
675
+ VALUE entity_add_event_callback(VALUE self) {
676
+ return Qnil;
677
+ }
678
+ void entity_add_event_callback_hook() {
679
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_add_event_callback"), 0);
680
+ }
681
+ static VALUE receive_aw_event_entity_add(VALUE self) {
682
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_ADD,entity_add_event_callback_hook));
683
+ }
684
+
685
+
686
+ VALUE entity_change_event_callback(VALUE self) {
687
+ return Qnil;
688
+ }
689
+ void entity_change_event_callback_hook() {
690
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_change_event_callback"), 0);
691
+ }
692
+ static VALUE receive_aw_event_entity_change(VALUE self) {
693
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_CHANGE,entity_change_event_callback_hook));
694
+ }
695
+
696
+
697
+ VALUE entity_delete_event_callback(VALUE self) {
698
+ return Qnil;
699
+ }
700
+ void entity_delete_event_callback_hook() {
701
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_delete_event_callback"), 0);
702
+ }
703
+ static VALUE receive_aw_event_entity_delete(VALUE self) {
704
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_DELETE,entity_delete_event_callback_hook));
705
+ }
706
+
707
+
708
+ VALUE entity_links_event_callback(VALUE self) {
709
+ return Qnil;
710
+ }
711
+ void entity_links_event_callback_hook() {
712
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_links_event_callback"), 0);
713
+ }
714
+ static VALUE receive_aw_event_entity_links(VALUE self) {
715
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_LINKS,entity_links_event_callback_hook));
716
+ }
717
+
718
+
719
+ VALUE entity_rider_add_event_callback(VALUE self) {
720
+ return Qnil;
721
+ }
722
+ void entity_rider_add_event_callback_hook() {
723
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_rider_add_event_callback"), 0);
724
+ }
725
+ static VALUE receive_aw_event_entity_rider_add(VALUE self) {
726
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_RIDER_ADD,entity_rider_add_event_callback_hook));
727
+ }
728
+
729
+
730
+ VALUE entity_rider_change_event_callback(VALUE self) {
731
+ return Qnil;
732
+ }
733
+ void entity_rider_change_event_callback_hook() {
734
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_rider_change_event_callback"), 0);
735
+ }
736
+ static VALUE receive_aw_event_entity_rider_change(VALUE self) {
737
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_RIDER_CHANGE,entity_rider_change_event_callback_hook));
738
+ }
739
+
740
+
741
+ VALUE entity_rider_delete_event_callback(VALUE self) {
742
+ return Qnil;
743
+ }
744
+ void entity_rider_delete_event_callback_hook() {
745
+ rb_funcall(ruby_aw_instance(), rb_intern("entity_rider_delete_event_callback"), 0);
746
+ }
747
+ static VALUE receive_aw_event_entity_rider_delete(VALUE self) {
748
+ return INT2NUM(aw_instance_event_set(AW_EVENT_ENTITY_RIDER_DELETE,entity_rider_delete_event_callback_hook));
749
+ }
750
+
751
+
752
+ VALUE hud_clear_event_callback(VALUE self) {
753
+ return Qnil;
754
+ }
755
+ void hud_clear_event_callback_hook() {
756
+ rb_funcall(ruby_aw_instance(), rb_intern("hud_clear_event_callback"), 0);
757
+ }
758
+ static VALUE receive_aw_event_hud_clear(VALUE self) {
759
+ return INT2NUM(aw_instance_event_set(AW_EVENT_HUD_CLEAR,hud_clear_event_callback_hook));
760
+ }
761
+
762
+
763
+ VALUE hud_click_event_callback(VALUE self) {
764
+ return Qnil;
765
+ }
766
+ void hud_click_event_callback_hook() {
767
+ rb_funcall(ruby_aw_instance(), rb_intern("hud_click_event_callback"), 0);
768
+ }
769
+ static VALUE receive_aw_event_hud_click(VALUE self) {
770
+ return INT2NUM(aw_instance_event_set(AW_EVENT_HUD_CLICK,hud_click_event_callback_hook));
771
+ }
772
+
773
+
774
+ VALUE hud_create_event_callback(VALUE self) {
775
+ return Qnil;
776
+ }
777
+ void hud_create_event_callback_hook() {
778
+ rb_funcall(ruby_aw_instance(), rb_intern("hud_create_event_callback"), 0);
779
+ }
780
+ static VALUE receive_aw_event_hud_create(VALUE self) {
781
+ return INT2NUM(aw_instance_event_set(AW_EVENT_HUD_CREATE,hud_create_event_callback_hook));
782
+ }
783
+
784
+
785
+ VALUE hud_destroy_event_callback(VALUE self) {
786
+ return Qnil;
787
+ }
788
+ void hud_destroy_event_callback_hook() {
789
+ rb_funcall(ruby_aw_instance(), rb_intern("hud_destroy_event_callback"), 0);
790
+ }
791
+ static VALUE receive_aw_event_hud_destroy(VALUE self) {
792
+ return INT2NUM(aw_instance_event_set(AW_EVENT_HUD_DESTROY,hud_destroy_event_callback_hook));
793
+ }
794
+
795
+
796
+ VALUE join_event_callback(VALUE self) {
797
+ return Qnil;
798
+ }
799
+ void join_event_callback_hook() {
800
+ rb_funcall(ruby_aw_instance(), rb_intern("join_event_callback"), 0);
801
+ }
802
+ static VALUE receive_aw_event_join(VALUE self) {
803
+ return INT2NUM(aw_instance_event_set(AW_EVENT_JOIN,join_event_callback_hook));
804
+ }
805
+
806
+
807
+ VALUE noise_event_callback(VALUE self) {
808
+ return Qnil;
809
+ }
810
+ void noise_event_callback_hook() {
811
+ rb_funcall(ruby_aw_instance(), rb_intern("noise_event_callback"), 0);
812
+ }
813
+ static VALUE receive_aw_event_noise(VALUE self) {
814
+ return INT2NUM(aw_instance_event_set(AW_EVENT_NOISE,noise_event_callback_hook));
815
+ }
816
+
817
+
818
+ VALUE object_add_event_callback(VALUE self) {
819
+ return Qnil;
820
+ }
821
+ void object_add_event_callback_hook() {
822
+ rb_funcall(ruby_aw_instance(), rb_intern("object_add_event_callback"), 0);
823
+ }
824
+ static VALUE receive_aw_event_object_add(VALUE self) {
825
+ return INT2NUM(aw_instance_event_set(AW_EVENT_OBJECT_ADD,object_add_event_callback_hook));
826
+ }
827
+
828
+
829
+ VALUE object_bump_event_callback(VALUE self) {
830
+ return Qnil;
831
+ }
832
+ void object_bump_event_callback_hook() {
833
+ rb_funcall(ruby_aw_instance(), rb_intern("object_bump_event_callback"), 0);
834
+ }
835
+ static VALUE receive_aw_event_object_bump(VALUE self) {
836
+ return INT2NUM(aw_instance_event_set(AW_EVENT_OBJECT_BUMP,object_bump_event_callback_hook));
837
+ }
838
+
839
+
840
+ VALUE object_click_event_callback(VALUE self) {
841
+ return Qnil;
842
+ }
843
+ void object_click_event_callback_hook() {
844
+ rb_funcall(ruby_aw_instance(), rb_intern("object_click_event_callback"), 0);
845
+ }
846
+ static VALUE receive_aw_event_object_click(VALUE self) {
847
+ return INT2NUM(aw_instance_event_set(AW_EVENT_OBJECT_CLICK,object_click_event_callback_hook));
848
+ }
849
+
850
+
851
+ VALUE object_delete_event_callback(VALUE self) {
852
+ return Qnil;
853
+ }
854
+ void object_delete_event_callback_hook() {
855
+ rb_funcall(ruby_aw_instance(), rb_intern("object_delete_event_callback"), 0);
856
+ }
857
+ static VALUE receive_aw_event_object_delete(VALUE self) {
858
+ return INT2NUM(aw_instance_event_set(AW_EVENT_OBJECT_DELETE,object_delete_event_callback_hook));
859
+ }
860
+
861
+
862
+ VALUE object_select_event_callback(VALUE self) {
863
+ return Qnil;
864
+ }
865
+ void object_select_event_callback_hook() {
866
+ rb_funcall(ruby_aw_instance(), rb_intern("object_select_event_callback"), 0);
867
+ }
868
+ static VALUE receive_aw_event_object_select(VALUE self) {
869
+ return INT2NUM(aw_instance_event_set(AW_EVENT_OBJECT_SELECT,object_select_event_callback_hook));
870
+ }
871
+
872
+
873
+ VALUE send_file_event_callback(VALUE self) {
874
+ return Qnil;
875
+ }
876
+ void send_file_event_callback_hook() {
877
+ rb_funcall(ruby_aw_instance(), rb_intern("send_file_event_callback"), 0);
878
+ }
879
+ static VALUE receive_aw_event_send_file(VALUE self) {
880
+ return INT2NUM(aw_instance_event_set(AW_EVENT_SEND_FILE,send_file_event_callback_hook));
881
+ }
882
+
883
+
884
+ VALUE telegram_event_callback(VALUE self) {
885
+ return Qnil;
886
+ }
887
+ void telegram_event_callback_hook() {
888
+ rb_funcall(ruby_aw_instance(), rb_intern("telegram_event_callback"), 0);
889
+ }
890
+ static VALUE receive_aw_event_telegram(VALUE self) {
891
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TELEGRAM,telegram_event_callback_hook));
892
+ }
893
+
894
+
895
+ VALUE teleport_event_callback(VALUE self) {
896
+ return Qnil;
897
+ }
898
+ void teleport_event_callback_hook() {
899
+ rb_funcall(ruby_aw_instance(), rb_intern("teleport_event_callback"), 0);
900
+ }
901
+ static VALUE receive_aw_event_teleport(VALUE self) {
902
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TELEPORT,teleport_event_callback_hook));
903
+ }
904
+
905
+
906
+ VALUE terrain_begin_event_callback(VALUE self) {
907
+ return Qnil;
908
+ }
909
+ void terrain_begin_event_callback_hook() {
910
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_begin_event_callback"), 0);
911
+ }
912
+ static VALUE receive_aw_event_terrain_begin(VALUE self) {
913
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TERRAIN_BEGIN,terrain_begin_event_callback_hook));
914
+ }
915
+
916
+
917
+ VALUE terrain_changed_event_callback(VALUE self) {
918
+ return Qnil;
919
+ }
920
+ void terrain_changed_event_callback_hook() {
921
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_changed_event_callback"), 0);
922
+ }
923
+ static VALUE receive_aw_event_terrain_changed(VALUE self) {
924
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TERRAIN_CHANGED,terrain_changed_event_callback_hook));
925
+ }
926
+
927
+
928
+ VALUE terrain_data_event_callback(VALUE self) {
929
+ return Qnil;
930
+ }
931
+ void terrain_data_event_callback_hook() {
932
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_data_event_callback"), 0);
933
+ }
934
+ static VALUE receive_aw_event_terrain_data(VALUE self) {
935
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TERRAIN_DATA,terrain_data_event_callback_hook));
936
+ }
937
+
938
+
939
+ VALUE terrain_end_event_callback(VALUE self) {
940
+ return Qnil;
941
+ }
942
+ void terrain_end_event_callback_hook() {
943
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_end_event_callback"), 0);
944
+ }
945
+ static VALUE receive_aw_event_terrain_end(VALUE self) {
946
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TERRAIN_END,terrain_end_event_callback_hook));
947
+ }
948
+
949
+
950
+ VALUE toolbar_click_event_callback(VALUE self) {
951
+ return Qnil;
952
+ }
953
+ void toolbar_click_event_callback_hook() {
954
+ rb_funcall(ruby_aw_instance(), rb_intern("toolbar_click_event_callback"), 0);
955
+ }
956
+ static VALUE receive_aw_event_toolbar_click(VALUE self) {
957
+ return INT2NUM(aw_instance_event_set(AW_EVENT_TOOLBAR_CLICK,toolbar_click_event_callback_hook));
958
+ }
959
+
960
+
961
+ VALUE universe_attributes_event_callback(VALUE self) {
962
+ return Qnil;
963
+ }
964
+ void universe_attributes_event_callback_hook() {
965
+ rb_funcall(ruby_aw_instance(), rb_intern("universe_attributes_event_callback"), 0);
966
+ }
967
+ static VALUE receive_aw_event_universe_attributes(VALUE self) {
968
+ return INT2NUM(aw_instance_event_set(AW_EVENT_UNIVERSE_ATTRIBUTES,universe_attributes_event_callback_hook));
969
+ }
970
+
971
+
972
+ VALUE universe_disconnect_event_callback(VALUE self) {
973
+ return Qnil;
974
+ }
975
+ void universe_disconnect_event_callback_hook() {
976
+ rb_funcall(ruby_aw_instance(), rb_intern("universe_disconnect_event_callback"), 0);
977
+ }
978
+ static VALUE receive_aw_event_universe_disconnect(VALUE self) {
979
+ return INT2NUM(aw_instance_event_set(AW_EVENT_UNIVERSE_DISCONNECT,universe_disconnect_event_callback_hook));
980
+ }
981
+
982
+
983
+ VALUE url_event_callback(VALUE self) {
984
+ return Qnil;
985
+ }
986
+ void url_event_callback_hook() {
987
+ rb_funcall(ruby_aw_instance(), rb_intern("url_event_callback"), 0);
988
+ }
989
+ static VALUE receive_aw_event_url(VALUE self) {
990
+ return INT2NUM(aw_instance_event_set(AW_EVENT_URL,url_event_callback_hook));
991
+ }
992
+
993
+
994
+ VALUE url_click_event_callback(VALUE self) {
995
+ return Qnil;
996
+ }
997
+ void url_click_event_callback_hook() {
998
+ rb_funcall(ruby_aw_instance(), rb_intern("url_click_event_callback"), 0);
999
+ }
1000
+ static VALUE receive_aw_event_url_click(VALUE self) {
1001
+ return INT2NUM(aw_instance_event_set(AW_EVENT_URL_CLICK,url_click_event_callback_hook));
1002
+ }
1003
+
1004
+
1005
+ VALUE user_info_event_callback(VALUE self) {
1006
+ return Qnil;
1007
+ }
1008
+ void user_info_event_callback_hook() {
1009
+ rb_funcall(ruby_aw_instance(), rb_intern("user_info_event_callback"), 0);
1010
+ }
1011
+ static VALUE receive_aw_event_user_info(VALUE self) {
1012
+ return INT2NUM(aw_instance_event_set(AW_EVENT_USER_INFO,user_info_event_callback_hook));
1013
+ }
1014
+
1015
+
1016
+ VALUE voip_data_event_callback(VALUE self) {
1017
+ return Qnil;
1018
+ }
1019
+ void voip_data_event_callback_hook() {
1020
+ rb_funcall(ruby_aw_instance(), rb_intern("voip_data_event_callback"), 0);
1021
+ }
1022
+ static VALUE receive_aw_event_voip_data(VALUE self) {
1023
+ return INT2NUM(aw_instance_event_set(AW_EVENT_VOIP_DATA,voip_data_event_callback_hook));
1024
+ }
1025
+
1026
+
1027
+ VALUE world_attributes_event_callback(VALUE self) {
1028
+ return Qnil;
1029
+ }
1030
+ void world_attributes_event_callback_hook() {
1031
+ rb_funcall(ruby_aw_instance(), rb_intern("world_attributes_event_callback"), 0);
1032
+ }
1033
+ static VALUE receive_aw_event_world_attributes(VALUE self) {
1034
+ return INT2NUM(aw_instance_event_set(AW_EVENT_WORLD_ATTRIBUTES,world_attributes_event_callback_hook));
1035
+ }
1036
+
1037
+
1038
+ VALUE world_disconnect_event_callback(VALUE self) {
1039
+ return Qnil;
1040
+ }
1041
+ void world_disconnect_event_callback_hook() {
1042
+ rb_funcall(ruby_aw_instance(), rb_intern("world_disconnect_event_callback"), 0);
1043
+ }
1044
+ static VALUE receive_aw_event_world_disconnect(VALUE self) {
1045
+ return INT2NUM(aw_instance_event_set(AW_EVENT_WORLD_DISCONNECT,world_disconnect_event_callback_hook));
1046
+ }
1047
+
1048
+
1049
+ VALUE world_info_event_callback(VALUE self) {
1050
+ return Qnil;
1051
+ }
1052
+ void world_info_event_callback_hook() {
1053
+ rb_funcall(ruby_aw_instance(), rb_intern("world_info_event_callback"), 0);
1054
+ }
1055
+ static VALUE receive_aw_event_world_info(VALUE self) {
1056
+ return INT2NUM(aw_instance_event_set(AW_EVENT_WORLD_INFO,world_info_event_callback_hook));
1057
+ }
1058
+
1059
+
1060
+ VALUE address_callback(VALUE self, VALUE rc) {
1061
+ return Qnil;
1062
+ }
1063
+ void address_callback_hook(int rc) {
1064
+ rb_funcall(ruby_aw_instance(), rb_intern("address_callback"), 1, INT2FIX(rc));
1065
+ }
1066
+ static VALUE receive_aw_callback_address(VALUE self) {
1067
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_ADDRESS,address_callback_hook));
1068
+ }
1069
+
1070
+
1071
+ VALUE admin_callback(VALUE self, VALUE rc) {
1072
+ return Qnil;
1073
+ }
1074
+ void admin_callback_hook(int rc) {
1075
+ rb_funcall(ruby_aw_instance(), rb_intern("admin_callback"), 1, INT2FIX(rc));
1076
+ }
1077
+ static VALUE receive_aw_callback_admin(VALUE self) {
1078
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_ADMIN,admin_callback_hook));
1079
+ }
1080
+
1081
+
1082
+ VALUE admin_world_list_callback(VALUE self, VALUE rc) {
1083
+ return Qnil;
1084
+ }
1085
+ void admin_world_list_callback_hook(int rc) {
1086
+ rb_funcall(ruby_aw_instance(), rb_intern("admin_world_list_callback"), 1, INT2FIX(rc));
1087
+ }
1088
+ static VALUE receive_aw_callback_admin_world_list(VALUE self) {
1089
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_ADMIN_WORLD_LIST,admin_world_list_callback_hook));
1090
+ }
1091
+
1092
+
1093
+ VALUE admin_world_result_callback(VALUE self, VALUE rc) {
1094
+ return Qnil;
1095
+ }
1096
+ void admin_world_result_callback_hook(int rc) {
1097
+ rb_funcall(ruby_aw_instance(), rb_intern("admin_world_result_callback"), 1, INT2FIX(rc));
1098
+ }
1099
+ static VALUE receive_aw_callback_admin_world_result(VALUE self) {
1100
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_ADMIN_WORLD_RESULT,admin_world_result_callback_hook));
1101
+ }
1102
+
1103
+
1104
+ VALUE attributes_reset_result_callback(VALUE self, VALUE rc) {
1105
+ return Qnil;
1106
+ }
1107
+ void attributes_reset_result_callback_hook(int rc) {
1108
+ rb_funcall(ruby_aw_instance(), rb_intern("attributes_reset_result_callback"), 1, INT2FIX(rc));
1109
+ }
1110
+ static VALUE receive_aw_callback_attributes_reset_result(VALUE self) {
1111
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_ATTRIBUTES_RESET_RESULT,attributes_reset_result_callback_hook));
1112
+ }
1113
+
1114
+
1115
+ VALUE avatar_location_callback(VALUE self, VALUE rc) {
1116
+ return Qnil;
1117
+ }
1118
+ void avatar_location_callback_hook(int rc) {
1119
+ rb_funcall(ruby_aw_instance(), rb_intern("avatar_location_callback"), 1, INT2FIX(rc));
1120
+ }
1121
+ static VALUE receive_aw_callback_avatar_location(VALUE self) {
1122
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_AVATAR_LOCATION,avatar_location_callback_hook));
1123
+ }
1124
+
1125
+
1126
+ VALUE botgram_result_callback(VALUE self, VALUE rc) {
1127
+ return Qnil;
1128
+ }
1129
+ void botgram_result_callback_hook(int rc) {
1130
+ rb_funcall(ruby_aw_instance(), rb_intern("botgram_result_callback"), 1, INT2FIX(rc));
1131
+ }
1132
+ static VALUE receive_aw_callback_botgram_result(VALUE self) {
1133
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_BOTGRAM_RESULT,botgram_result_callback_hook));
1134
+ }
1135
+
1136
+
1137
+ VALUE botmenu_result_callback(VALUE self, VALUE rc) {
1138
+ return Qnil;
1139
+ }
1140
+ void botmenu_result_callback_hook(int rc) {
1141
+ rb_funcall(ruby_aw_instance(), rb_intern("botmenu_result_callback"), 1, INT2FIX(rc));
1142
+ }
1143
+ static VALUE receive_aw_callback_botmenu_result(VALUE self) {
1144
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_BOTMENU_RESULT,botmenu_result_callback_hook));
1145
+ }
1146
+
1147
+
1148
+ VALUE cav_callback(VALUE self, VALUE rc) {
1149
+ return Qnil;
1150
+ }
1151
+ void cav_callback_hook(int rc) {
1152
+ rb_funcall(ruby_aw_instance(), rb_intern("cav_callback"), 1, INT2FIX(rc));
1153
+ }
1154
+ static VALUE receive_aw_callback_cav(VALUE self) {
1155
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CAV,cav_callback_hook));
1156
+ }
1157
+
1158
+
1159
+ VALUE cav_result_callback(VALUE self, VALUE rc) {
1160
+ return Qnil;
1161
+ }
1162
+ void cav_result_callback_hook(int rc) {
1163
+ rb_funcall(ruby_aw_instance(), rb_intern("cav_result_callback"), 1, INT2FIX(rc));
1164
+ }
1165
+ static VALUE receive_aw_callback_cav_result(VALUE self) {
1166
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CAV_RESULT,cav_result_callback_hook));
1167
+ }
1168
+
1169
+
1170
+ VALUE cav_template_callback(VALUE self, VALUE rc) {
1171
+ return Qnil;
1172
+ }
1173
+ void cav_template_callback_hook(int rc) {
1174
+ rb_funcall(ruby_aw_instance(), rb_intern("cav_template_callback"), 1, INT2FIX(rc));
1175
+ }
1176
+ static VALUE receive_aw_callback_cav_template(VALUE self) {
1177
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CAV_TEMPLATE,cav_template_callback_hook));
1178
+ }
1179
+
1180
+
1181
+ VALUE cav_template_result_callback(VALUE self, VALUE rc) {
1182
+ return Qnil;
1183
+ }
1184
+ void cav_template_result_callback_hook(int rc) {
1185
+ rb_funcall(ruby_aw_instance(), rb_intern("cav_template_result_callback"), 1, INT2FIX(rc));
1186
+ }
1187
+ static VALUE receive_aw_callback_cav_template_result(VALUE self) {
1188
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CAV_TEMPLATE_RESULT,cav_template_result_callback_hook));
1189
+ }
1190
+
1191
+
1192
+ VALUE cell_result_callback(VALUE self, VALUE rc) {
1193
+ return Qnil;
1194
+ }
1195
+ void cell_result_callback_hook(int rc) {
1196
+ rb_funcall(ruby_aw_instance(), rb_intern("cell_result_callback"), 1, INT2FIX(rc));
1197
+ }
1198
+ static VALUE receive_aw_callback_cell_result(VALUE self) {
1199
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CELL_RESULT,cell_result_callback_hook));
1200
+ }
1201
+
1202
+
1203
+ VALUE citizen_attributes_callback(VALUE self, VALUE rc) {
1204
+ return Qnil;
1205
+ }
1206
+ void citizen_attributes_callback_hook(int rc) {
1207
+ rb_funcall(ruby_aw_instance(), rb_intern("citizen_attributes_callback"), 1, INT2FIX(rc));
1208
+ }
1209
+ static VALUE receive_aw_callback_citizen_attributes(VALUE self) {
1210
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CITIZEN_ATTRIBUTES,citizen_attributes_callback_hook));
1211
+ }
1212
+
1213
+
1214
+ VALUE citizen_result_callback(VALUE self, VALUE rc) {
1215
+ return Qnil;
1216
+ }
1217
+ void citizen_result_callback_hook(int rc) {
1218
+ rb_funcall(ruby_aw_instance(), rb_intern("citizen_result_callback"), 1, INT2FIX(rc));
1219
+ }
1220
+ static VALUE receive_aw_callback_citizen_result(VALUE self) {
1221
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CITIZEN_RESULT,citizen_result_callback_hook));
1222
+ }
1223
+
1224
+
1225
+ VALUE contact_add_callback(VALUE self, VALUE rc) {
1226
+ return Qnil;
1227
+ }
1228
+ void contact_add_callback_hook(int rc) {
1229
+ rb_funcall(ruby_aw_instance(), rb_intern("contact_add_callback"), 1, INT2FIX(rc));
1230
+ }
1231
+ static VALUE receive_aw_callback_contact_add(VALUE self) {
1232
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CONTACT_ADD,contact_add_callback_hook));
1233
+ }
1234
+
1235
+
1236
+ VALUE create_callback(VALUE self, VALUE rc) {
1237
+ return Qnil;
1238
+ }
1239
+ void create_callback_hook(int rc) {
1240
+ rb_funcall(ruby_aw_instance(), rb_intern("create_callback"), 1, INT2FIX(rc));
1241
+ }
1242
+ static VALUE receive_aw_callback_create(VALUE self) {
1243
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_CREATE,create_callback_hook));
1244
+ }
1245
+
1246
+
1247
+ VALUE delete_all_objects_result_callback(VALUE self, VALUE rc) {
1248
+ return Qnil;
1249
+ }
1250
+ void delete_all_objects_result_callback_hook(int rc) {
1251
+ rb_funcall(ruby_aw_instance(), rb_intern("delete_all_objects_result_callback"), 1, INT2FIX(rc));
1252
+ }
1253
+ static VALUE receive_aw_callback_delete_all_objects_result(VALUE self) {
1254
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_DELETE_ALL_OBJECTS_RESULT,delete_all_objects_result_callback_hook));
1255
+ }
1256
+
1257
+
1258
+ VALUE enter_callback(VALUE self, VALUE rc) {
1259
+ return Qnil;
1260
+ }
1261
+ void enter_callback_hook(int rc) {
1262
+ rb_funcall(ruby_aw_instance(), rb_intern("enter_callback"), 1, INT2FIX(rc));
1263
+ }
1264
+ static VALUE receive_aw_callback_enter(VALUE self) {
1265
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_ENTER,enter_callback_hook));
1266
+ }
1267
+
1268
+
1269
+ VALUE hud_result_callback(VALUE self, VALUE rc) {
1270
+ return Qnil;
1271
+ }
1272
+ void hud_result_callback_hook(int rc) {
1273
+ rb_funcall(ruby_aw_instance(), rb_intern("hud_result_callback"), 1, INT2FIX(rc));
1274
+ }
1275
+ static VALUE receive_aw_callback_hud_result(VALUE self) {
1276
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_HUD_RESULT,hud_result_callback_hook));
1277
+ }
1278
+
1279
+
1280
+ VALUE immigrate_callback(VALUE self, VALUE rc) {
1281
+ return Qnil;
1282
+ }
1283
+ void immigrate_callback_hook(int rc) {
1284
+ rb_funcall(ruby_aw_instance(), rb_intern("immigrate_callback"), 1, INT2FIX(rc));
1285
+ }
1286
+ static VALUE receive_aw_callback_immigrate(VALUE self) {
1287
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_IMMIGRATE,immigrate_callback_hook));
1288
+ }
1289
+
1290
+
1291
+ VALUE join_callback(VALUE self, VALUE rc) {
1292
+ return Qnil;
1293
+ }
1294
+ void join_callback_hook(int rc) {
1295
+ rb_funcall(ruby_aw_instance(), rb_intern("join_callback"), 1, INT2FIX(rc));
1296
+ }
1297
+ static VALUE receive_aw_callback_join(VALUE self) {
1298
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_JOIN,join_callback_hook));
1299
+ }
1300
+
1301
+
1302
+ VALUE license_attributes_callback(VALUE self, VALUE rc) {
1303
+ return Qnil;
1304
+ }
1305
+ void license_attributes_callback_hook(int rc) {
1306
+ rb_funcall(ruby_aw_instance(), rb_intern("license_attributes_callback"), 1, INT2FIX(rc));
1307
+ }
1308
+ static VALUE receive_aw_callback_license_attributes(VALUE self) {
1309
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_LICENSE_ATTRIBUTES,license_attributes_callback_hook));
1310
+ }
1311
+
1312
+
1313
+ VALUE license_result_callback(VALUE self, VALUE rc) {
1314
+ return Qnil;
1315
+ }
1316
+ void license_result_callback_hook(int rc) {
1317
+ rb_funcall(ruby_aw_instance(), rb_intern("license_result_callback"), 1, INT2FIX(rc));
1318
+ }
1319
+ static VALUE receive_aw_callback_license_result(VALUE self) {
1320
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_LICENSE_RESULT,license_result_callback_hook));
1321
+ }
1322
+
1323
+
1324
+ VALUE login_callback(VALUE self, VALUE rc) {
1325
+ return Qnil;
1326
+ }
1327
+ void login_callback_hook(int rc) {
1328
+ rb_funcall(ruby_aw_instance(), rb_intern("login_callback"), 1, INT2FIX(rc));
1329
+ }
1330
+ static VALUE receive_aw_callback_login(VALUE self) {
1331
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_LOGIN,login_callback_hook));
1332
+ }
1333
+
1334
+
1335
+ VALUE object_result_callback(VALUE self, VALUE rc) {
1336
+ return Qnil;
1337
+ }
1338
+ void object_result_callback_hook(int rc) {
1339
+ rb_funcall(ruby_aw_instance(), rb_intern("object_result_callback"), 1, INT2FIX(rc));
1340
+ }
1341
+ static VALUE receive_aw_callback_object_result(VALUE self) {
1342
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_OBJECT_RESULT,object_result_callback_hook));
1343
+ }
1344
+
1345
+
1346
+ VALUE password_send_callback(VALUE self, VALUE rc) {
1347
+ return Qnil;
1348
+ }
1349
+ void password_send_callback_hook(int rc) {
1350
+ rb_funcall(ruby_aw_instance(), rb_intern("password_send_callback"), 1, INT2FIX(rc));
1351
+ }
1352
+ static VALUE receive_aw_callback_password_send(VALUE self) {
1353
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_PASSWORD_SEND,password_send_callback_hook));
1354
+ }
1355
+
1356
+
1357
+ VALUE query_callback(VALUE self, VALUE rc) {
1358
+ return Qnil;
1359
+ }
1360
+ void query_callback_hook(int rc) {
1361
+ rb_funcall(ruby_aw_instance(), rb_intern("query_callback"), 1, INT2FIX(rc));
1362
+ }
1363
+ static VALUE receive_aw_callback_query(VALUE self) {
1364
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_QUERY,query_callback_hook));
1365
+ }
1366
+
1367
+
1368
+ VALUE register_callback(VALUE self, VALUE rc) {
1369
+ return Qnil;
1370
+ }
1371
+ void register_callback_hook(int rc) {
1372
+ rb_funcall(ruby_aw_instance(), rb_intern("register_callback"), 1, INT2FIX(rc));
1373
+ }
1374
+ static VALUE receive_aw_callback_register(VALUE self) {
1375
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_REGISTER,register_callback_hook));
1376
+ }
1377
+
1378
+
1379
+ VALUE reload_registry_callback(VALUE self, VALUE rc) {
1380
+ return Qnil;
1381
+ }
1382
+ void reload_registry_callback_hook(int rc) {
1383
+ rb_funcall(ruby_aw_instance(), rb_intern("reload_registry_callback"), 1, INT2FIX(rc));
1384
+ }
1385
+ static VALUE receive_aw_callback_reload_registry(VALUE self) {
1386
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_RELOAD_REGISTRY,reload_registry_callback_hook));
1387
+ }
1388
+
1389
+
1390
+ VALUE send_file_callback(VALUE self, VALUE rc) {
1391
+ return Qnil;
1392
+ }
1393
+ void send_file_callback_hook(int rc) {
1394
+ rb_funcall(ruby_aw_instance(), rb_intern("send_file_callback"), 1, INT2FIX(rc));
1395
+ }
1396
+ static VALUE receive_aw_callback_send_file(VALUE self) {
1397
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_SEND_FILE,send_file_callback_hook));
1398
+ }
1399
+
1400
+
1401
+ VALUE telegram_result_callback(VALUE self, VALUE rc) {
1402
+ return Qnil;
1403
+ }
1404
+ void telegram_result_callback_hook(int rc) {
1405
+ rb_funcall(ruby_aw_instance(), rb_intern("telegram_result_callback"), 1, INT2FIX(rc));
1406
+ }
1407
+ static VALUE receive_aw_callback_telegram_result(VALUE self) {
1408
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_TELEGRAM_RESULT,telegram_result_callback_hook));
1409
+ }
1410
+
1411
+
1412
+ VALUE terrain_delete_all_result_callback(VALUE self, VALUE rc) {
1413
+ return Qnil;
1414
+ }
1415
+ void terrain_delete_all_result_callback_hook(int rc) {
1416
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_delete_all_result_callback"), 1, INT2FIX(rc));
1417
+ }
1418
+ static VALUE receive_aw_callback_terrain_delete_all_result(VALUE self) {
1419
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_TERRAIN_DELETE_ALL_RESULT,terrain_delete_all_result_callback_hook));
1420
+ }
1421
+
1422
+
1423
+ VALUE terrain_load_node_result_callback(VALUE self, VALUE rc) {
1424
+ return Qnil;
1425
+ }
1426
+ void terrain_load_node_result_callback_hook(int rc) {
1427
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_load_node_result_callback"), 1, INT2FIX(rc));
1428
+ }
1429
+ static VALUE receive_aw_callback_terrain_load_node_result(VALUE self) {
1430
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_TERRAIN_LOAD_NODE_RESULT,terrain_load_node_result_callback_hook));
1431
+ }
1432
+
1433
+
1434
+ VALUE terrain_next_result_callback(VALUE self, VALUE rc) {
1435
+ return Qnil;
1436
+ }
1437
+ void terrain_next_result_callback_hook(int rc) {
1438
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_next_result_callback"), 1, INT2FIX(rc));
1439
+ }
1440
+ static VALUE receive_aw_callback_terrain_next_result(VALUE self) {
1441
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_TERRAIN_NEXT_RESULT,terrain_next_result_callback_hook));
1442
+ }
1443
+
1444
+
1445
+ VALUE terrain_set_result_callback(VALUE self, VALUE rc) {
1446
+ return Qnil;
1447
+ }
1448
+ void terrain_set_result_callback_hook(int rc) {
1449
+ rb_funcall(ruby_aw_instance(), rb_intern("terrain_set_result_callback"), 1, INT2FIX(rc));
1450
+ }
1451
+ static VALUE receive_aw_callback_terrain_set_result(VALUE self) {
1452
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_TERRAIN_SET_RESULT,terrain_set_result_callback_hook));
1453
+ }
1454
+
1455
+
1456
+ VALUE universe_ejection_callback(VALUE self, VALUE rc) {
1457
+ return Qnil;
1458
+ }
1459
+ void universe_ejection_callback_hook(int rc) {
1460
+ rb_funcall(ruby_aw_instance(), rb_intern("universe_ejection_callback"), 1, INT2FIX(rc));
1461
+ }
1462
+ static VALUE receive_aw_callback_universe_ejection(VALUE self) {
1463
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_UNIVERSE_EJECTION,universe_ejection_callback_hook));
1464
+ }
1465
+
1466
+
1467
+ VALUE universe_ejection_result_callback(VALUE self, VALUE rc) {
1468
+ return Qnil;
1469
+ }
1470
+ void universe_ejection_result_callback_hook(int rc) {
1471
+ rb_funcall(ruby_aw_instance(), rb_intern("universe_ejection_result_callback"), 1, INT2FIX(rc));
1472
+ }
1473
+ static VALUE receive_aw_callback_universe_ejection_result(VALUE self) {
1474
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_UNIVERSE_EJECTION_RESULT,universe_ejection_result_callback_hook));
1475
+ }
1476
+
1477
+
1478
+ VALUE user_list_callback(VALUE self, VALUE rc) {
1479
+ return Qnil;
1480
+ }
1481
+ void user_list_callback_hook(int rc) {
1482
+ rb_funcall(ruby_aw_instance(), rb_intern("user_list_callback"), 1, INT2FIX(rc));
1483
+ }
1484
+ static VALUE receive_aw_callback_user_list(VALUE self) {
1485
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_USER_LIST,user_list_callback_hook));
1486
+ }
1487
+
1488
+
1489
+ VALUE world_ejection_callback(VALUE self, VALUE rc) {
1490
+ return Qnil;
1491
+ }
1492
+ void world_ejection_callback_hook(int rc) {
1493
+ rb_funcall(ruby_aw_instance(), rb_intern("world_ejection_callback"), 1, INT2FIX(rc));
1494
+ }
1495
+ static VALUE receive_aw_callback_world_ejection(VALUE self) {
1496
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_WORLD_EJECTION,world_ejection_callback_hook));
1497
+ }
1498
+
1499
+
1500
+ VALUE world_ejection_result_callback(VALUE self, VALUE rc) {
1501
+ return Qnil;
1502
+ }
1503
+ void world_ejection_result_callback_hook(int rc) {
1504
+ rb_funcall(ruby_aw_instance(), rb_intern("world_ejection_result_callback"), 1, INT2FIX(rc));
1505
+ }
1506
+ static VALUE receive_aw_callback_world_ejection_result(VALUE self) {
1507
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_WORLD_EJECTION_RESULT,world_ejection_result_callback_hook));
1508
+ }
1509
+
1510
+
1511
+ VALUE world_instance_callback(VALUE self, VALUE rc) {
1512
+ return Qnil;
1513
+ }
1514
+ void world_instance_callback_hook(int rc) {
1515
+ rb_funcall(ruby_aw_instance(), rb_intern("world_instance_callback"), 1, INT2FIX(rc));
1516
+ }
1517
+ static VALUE receive_aw_callback_world_instance(VALUE self) {
1518
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_WORLD_INSTANCE,world_instance_callback_hook));
1519
+ }
1520
+
1521
+
1522
+ VALUE world_list_callback(VALUE self, VALUE rc) {
1523
+ return Qnil;
1524
+ }
1525
+ void world_list_callback_hook(int rc) {
1526
+ rb_funcall(ruby_aw_instance(), rb_intern("world_list_callback"), 1, INT2FIX(rc));
1527
+ }
1528
+ static VALUE receive_aw_callback_world_list(VALUE self) {
1529
+ return INT2NUM(aw_instance_callback_set(AW_CALLBACK_WORLD_LIST,world_list_callback_hook));
1530
+ }
1531
+ // END CALLBACKS
1532
+ #ifdef __cplusplus
1533
+ extern "C" {
1534
+ #endif
1535
+ void Init_ruby_activeworld() {
1536
+ cRubyActiveworld = rb_define_class("RubyActiveworld", rb_cObject);
1537
+ rb_define_alloc_func(cRubyActiveworld, ruby_aw_allocate);
1538
+ rb_define_method(cRubyActiveworld, "initialize", (VALUE(*)(ANYARGS))ruby_activeworld_initialize, 2);
1539
+ // A
1540
+ rb_define_method(cRubyActiveworld, "ruby_aw_address", (VALUE(*)(ANYARGS))ruby_aw_address, 1);
1541
+ rb_define_method(cRubyActiveworld, "ruby_aw_avatar_click", (VALUE(*)(ANYARGS))ruby_aw_avatar_click, 1);
1542
+ rb_define_method(cRubyActiveworld, "ruby_aw_avatar_location", (VALUE(*)(ANYARGS))ruby_aw_avatar_location, 3);
1543
+ rb_define_method(cRubyActiveworld, "ruby_aw_avatar_reload", (VALUE(*)(ANYARGS))ruby_aw_avatar_reload, 2);
1544
+ rb_define_method(cRubyActiveworld, "ruby_aw_avatar_set", (VALUE(*)(ANYARGS))ruby_aw_avatar_set, 1);
1545
+ // B
1546
+ rb_define_method(cRubyActiveworld, "ruby_aw_bool", (VALUE(*)(ANYARGS))ruby_aw_bool, 1);
1547
+ rb_define_method(cRubyActiveworld, "ruby_aw_bool_set", (VALUE(*)(ANYARGS))ruby_aw_bool_set, 2);
1548
+ rb_define_method(cRubyActiveworld, "ruby_aw_botgram_send", (VALUE(*)(ANYARGS))ruby_aw_botgram_send, 0);
1549
+ rb_define_method(cRubyActiveworld, "ruby_aw_botmenu_send", (VALUE(*)(ANYARGS))ruby_aw_botmenu_send, 0);
1550
+ // C
1551
+ // callbacks not implemented this way
1552
+ rb_define_method(cRubyActiveworld, "ruby_aw_camera_set", (VALUE(*)(ANYARGS))ruby_aw_camera_set, 1);
1553
+ rb_define_method(cRubyActiveworld, "ruby_aw_cell_next", (VALUE(*)(ANYARGS))ruby_aw_cell_next, 0);
1554
+ rb_define_method(cRubyActiveworld, "ruby_aw_check_right", (VALUE(*)(ANYARGS))ruby_aw_check_right, 2);
1555
+ rb_define_method(cRubyActiveworld, "ruby_aw_check_right_all", (VALUE(*)(ANYARGS))ruby_aw_check_right_all, 1);
1556
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_attributes_by_name", (VALUE(*)(ANYARGS))ruby_aw_citizen_attributes_by_name, 1);
1557
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_attributes_by_number", (VALUE(*)(ANYARGS))ruby_aw_citizen_attributes_by_number, 1);
1558
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_add", (VALUE(*)(ANYARGS))ruby_aw_citizen_add, 0);
1559
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_change", (VALUE(*)(ANYARGS))ruby_aw_citizen_change, 0);
1560
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_delete", (VALUE(*)(ANYARGS))ruby_aw_citizen_delete, 1);
1561
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_next", (VALUE(*)(ANYARGS))ruby_aw_citizen_next, 0);
1562
+ rb_define_method(cRubyActiveworld, "ruby_aw_citizen_previous", (VALUE(*)(ANYARGS))ruby_aw_citizen_previous, 0);
1563
+ rb_define_method(cRubyActiveworld, "ruby_aw_console_message", (VALUE(*)(ANYARGS))ruby_aw_console_message, 1);
1564
+
1565
+
1566
+ // D
1567
+ rb_define_method(cRubyActiveworld, "ruby_aw_data", (VALUE(*)(ANYARGS))ruby_aw_data, 1);
1568
+ rb_define_method(cRubyActiveworld, "ruby_aw_data_set", (VALUE(*)(ANYARGS))ruby_aw_data, 2);
1569
+ rb_define_method(cRubyActiveworld, "ruby_aw_delete_all_objects", (VALUE(*)(ANYARGS))ruby_aw_delete_all_objects, 0);
1570
+ rb_define_method(cRubyActiveworld, "ruby_aw_destroy", (VALUE(*)(ANYARGS))ruby_aw_destroy, 0);
1571
+ // E
1572
+ rb_define_method(cRubyActiveworld, "ruby_aw_enter", (VALUE(*)(ANYARGS))ruby_aw_enter, 1);
1573
+ rb_define_method(cRubyActiveworld, "ruby_aw_exit", (VALUE(*)(ANYARGS))ruby_aw_exit, 0);
1574
+ // F
1575
+ rb_define_method(cRubyActiveworld, "ruby_aw_float", (VALUE(*)(ANYARGS))ruby_aw_float, 1);
1576
+ rb_define_method(cRubyActiveworld, "ruby_aw_float_set", (VALUE(*)(ANYARGS))ruby_aw_float_set, 2);
1577
+ // I
1578
+ rb_define_singleton_method(cRubyActiveworld, "ruby_aw_init", (VALUE(*)(ANYARGS))ruby_aw_init, 1);
1579
+ rb_define_method(cRubyActiveworld, "ruby_aw_instance_set", (VALUE(*)(ANYARGS))ruby_aw_instance_set, 1);
1580
+ rb_define_method(cRubyActiveworld, "ruby_aw_int", (VALUE(*)(ANYARGS))ruby_aw_int, 1);
1581
+ rb_define_method(cRubyActiveworld, "ruby_aw_int_set", (VALUE(*)(ANYARGS))ruby_aw_int_set, 2);
1582
+ // H
1583
+ rb_define_method(cRubyActiveworld, "ruby_aw_has_world_right", (VALUE(*)(ANYARGS))ruby_aw_has_world_right, 2);
1584
+ rb_define_method(cRubyActiveworld, "ruby_aw_has_world_right_all", (VALUE(*)(ANYARGS))ruby_aw_has_world_right_all, 1);
1585
+ rb_define_method(cRubyActiveworld, "ruby_aw_hud_clear", (VALUE(*)(ANYARGS))ruby_aw_hud_clear, 1);
1586
+ rb_define_method(cRubyActiveworld, "ruby_aw_hud_click", (VALUE(*)(ANYARGS))ruby_aw_hud_click, 0);
1587
+ rb_define_method(cRubyActiveworld, "ruby_aw_hud_create", (VALUE(*)(ANYARGS))ruby_aw_hud_create, 0);
1588
+ rb_define_method(cRubyActiveworld, "ruby_aw_hud_destroy", (VALUE(*)(ANYARGS))ruby_aw_hud_destroy, 2);
1589
+ // L
1590
+ rb_define_method(cRubyActiveworld, "ruby_aw_login", (VALUE(*)(ANYARGS))ruby_aw_login, 0);
1591
+ rb_define_method(cRubyActiveworld, "ruby_aw_license_add", (VALUE(*)(ANYARGS))ruby_aw_license_add, 0);
1592
+ rb_define_method(cRubyActiveworld, "ruby_aw_license_attributes", (VALUE(*)(ANYARGS))ruby_aw_license_attributes, 1);
1593
+ rb_define_method(cRubyActiveworld, "ruby_aw_license_change", (VALUE(*)(ANYARGS))ruby_aw_license_change, 0);
1594
+ rb_define_method(cRubyActiveworld, "ruby_aw_license_delete", (VALUE(*)(ANYARGS))ruby_aw_license_delete, 1);
1595
+ rb_define_method(cRubyActiveworld, "ruby_aw_license_next", (VALUE(*)(ANYARGS))ruby_aw_license_next, 0);
1596
+ rb_define_method(cRubyActiveworld, "ruby_aw_license_previous", (VALUE(*)(ANYARGS))ruby_aw_license_previous, 0);
1597
+ // M
1598
+ rb_define_method(cRubyActiveworld, "ruby_aw_mover_links", (VALUE(*)(ANYARGS))ruby_aw_mover_links, 1);
1599
+ rb_define_method(cRubyActiveworld, "ruby_aw_mover_rider_add", (VALUE(*)(ANYARGS))ruby_aw_mover_rider_add, 7);
1600
+ rb_define_method(cRubyActiveworld, "ruby_aw_mover_rider_change", (VALUE(*)(ANYARGS))ruby_aw_mover_rider_change, 7);
1601
+ rb_define_method(cRubyActiveworld, "ruby_aw_mover_rider_delete", (VALUE(*)(ANYARGS))ruby_aw_mover_rider_delete, 2);
1602
+ rb_define_method(cRubyActiveworld, "ruby_aw_mover_set_position", (VALUE(*)(ANYARGS))ruby_aw_mover_set_position, 7);
1603
+ rb_define_method(cRubyActiveworld, "ruby_aw_mover_set_state", (VALUE(*)(ANYARGS))ruby_aw_mover_set_state, 3);
1604
+ // N
1605
+ rb_define_method(cRubyActiveworld, "ruby_aw_noise", (VALUE(*)(ANYARGS))ruby_aw_noise, 1);
1606
+ // O
1607
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_add", (VALUE(*)(ANYARGS))ruby_aw_object_add, 0);
1608
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_bump", (VALUE(*)(ANYARGS))ruby_aw_object_bump, 0);
1609
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_change", (VALUE(*)(ANYARGS))ruby_aw_object_change, 0);
1610
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_click", (VALUE(*)(ANYARGS))ruby_aw_object_click, 0);
1611
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_delete", (VALUE(*)(ANYARGS))ruby_aw_object_delete, 0);
1612
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_load", (VALUE(*)(ANYARGS))ruby_aw_object_load, 0);
1613
+ rb_define_method(cRubyActiveworld, "ruby_aw_object_select", (VALUE(*)(ANYARGS))ruby_aw_object_select, 0);
1614
+ // R
1615
+ rb_define_method(cRubyActiveworld, "ruby_aw_random", (VALUE(*)(ANYARGS))ruby_aw_random, 0);
1616
+ // S
1617
+ rb_define_method(cRubyActiveworld, "ruby_aw_say", (VALUE(*)(ANYARGS))ruby_aw_say, 1);
1618
+ rb_define_method(cRubyActiveworld, "ruby_aw_sector_from_cell", (VALUE(*)(ANYARGS))ruby_aw_sector_from_cell, 1);
1619
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_add", (VALUE(*)(ANYARGS))ruby_aw_server_world_add, 0);
1620
+ //int aw_server_admin (const char* domain, int port, char* password, void** instance);
1621
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_change", (VALUE(*)(ANYARGS))ruby_aw_server_world_change, 1);
1622
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_delete", (VALUE(*)(ANYARGS))ruby_aw_server_world_delete, 1);
1623
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_instance_add", (VALUE(*)(ANYARGS))ruby_aw_server_world_instance_add, 2);
1624
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_instance_delete", (VALUE(*)(ANYARGS))ruby_aw_server_world_instance_delete, 2);
1625
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_instance_set", (VALUE(*)(ANYARGS))ruby_aw_server_world_instance_set, 1);
1626
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_list", (VALUE(*)(ANYARGS))ruby_aw_server_world_list, 0);
1627
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_set", (VALUE(*)(ANYARGS))ruby_aw_server_world_set, 1);
1628
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_start", (VALUE(*)(ANYARGS))ruby_aw_server_world_start, 1);
1629
+ rb_define_method(cRubyActiveworld, "ruby_aw_server_world_stop", (VALUE(*)(ANYARGS))ruby_aw_server_world_stop, 1);
1630
+ rb_define_method(cRubyActiveworld, "ruby_aw_session", (VALUE(*)(ANYARGS))ruby_aw_session, 0);
1631
+ rb_define_method(cRubyActiveworld, "ruby_aw_state_change", (VALUE(*)(ANYARGS))ruby_aw_state_change, 0);
1632
+ rb_define_method(cRubyActiveworld, "ruby_aw_string", (VALUE(*)(ANYARGS))ruby_aw_string, 1);
1633
+ rb_define_method(cRubyActiveworld, "ruby_aw_string_set", (VALUE(*)(ANYARGS))ruby_aw_string_set, 2);
1634
+ // T
1635
+ rb_define_method(cRubyActiveworld, "ruby_aw_teleport", (VALUE(*)(ANYARGS))ruby_aw_teleport, 1);
1636
+ rb_define_singleton_method(cRubyActiveworld, "ruby_aw_term", (VALUE(*)(ANYARGS))ruby_aw_term, 0);
1637
+ rb_define_method(cRubyActiveworld, "ruby_aw_terrain_delete_all", (VALUE(*)(ANYARGS))ruby_aw_terrain_delete_all, 0);
1638
+ rb_define_method(cRubyActiveworld, "ruby_aw_terrain_load_node", (VALUE(*)(ANYARGS))ruby_aw_terrain_load_node, 0);
1639
+ rb_define_method(cRubyActiveworld, "ruby_aw_terrain_next", (VALUE(*)(ANYARGS))ruby_aw_terrain_next, 0);
1640
+ rb_define_method(cRubyActiveworld, "ruby_aw_tick", (VALUE(*)(ANYARGS))ruby_aw_tick, 0);
1641
+ // rb_define_method(cRubyActiveworld, "ruby_aw_toolbar_click", (VALUE(*)(ANYARGS))ruby_aw_toolbar_click, 0);
1642
+ // U
1643
+ rb_define_method(cRubyActiveworld, "ruby_aw_universe_attributes_change", (VALUE(*)(ANYARGS))ruby_aw_universe_attributes_change, 0);
1644
+ rb_define_method(cRubyActiveworld, "ruby_aw_universe_ejection_add", (VALUE(*)(ANYARGS))ruby_aw_universe_ejection_add, 0);
1645
+ rb_define_method(cRubyActiveworld, "ruby_aw_universe_ejection_delete", (VALUE(*)(ANYARGS))ruby_aw_universe_ejection_delete, 1);
1646
+ rb_define_method(cRubyActiveworld, "ruby_aw_universe_ejection_lookup", (VALUE(*)(ANYARGS))ruby_aw_universe_ejection_lookup, 0);
1647
+ rb_define_method(cRubyActiveworld, "ruby_aw_universe_ejection_next", (VALUE(*)(ANYARGS))ruby_aw_universe_ejection_next, 0);
1648
+ rb_define_method(cRubyActiveworld, "ruby_aw_universe_ejection_previous", (VALUE(*)(ANYARGS))ruby_aw_universe_ejection_previous, 0);
1649
+ rb_define_method(cRubyActiveworld, "ruby_aw_url_send", (VALUE(*)(ANYARGS))ruby_aw_url_send, 3);
1650
+ rb_define_method(cRubyActiveworld, "ruby_aw_user_list", (VALUE(*)(ANYARGS))ruby_aw_user_list, 0);
1651
+ // W
1652
+ rb_define_singleton_method(cRubyActiveworld, "ruby_aw_wait", (VALUE(*)(ANYARGS))ruby_aw_wait, 1);
1653
+ rb_define_method(cRubyActiveworld, "ruby_aw_whisper", (VALUE(*)(ANYARGS))ruby_aw_whisper, 2);
1654
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_attribute_get", (VALUE(*)(ANYARGS))ruby_aw_world_attribute_get, 1);
1655
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_attribute_set", (VALUE(*)(ANYARGS))ruby_aw_world_attribute_set, 2);
1656
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_attributes_change", (VALUE(*)(ANYARGS))ruby_aw_world_attributes_change, 0);
1657
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_attributes_reset", (VALUE(*)(ANYARGS))ruby_aw_world_attributes_reset, 0);
1658
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_attributes_send", (VALUE(*)(ANYARGS))ruby_aw_world_attributes_send, 1);
1659
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_eject", (VALUE(*)(ANYARGS))ruby_aw_world_eject, 0);
1660
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_ejection_add", (VALUE(*)(ANYARGS))ruby_aw_world_ejection_add, 0);
1661
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_ejection_delete", (VALUE(*)(ANYARGS))ruby_aw_world_ejection_delete, 0);
1662
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_ejection_lookup", (VALUE(*)(ANYARGS))ruby_aw_world_ejection_lookup, 0);
1663
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_ejection_next", (VALUE(*)(ANYARGS))ruby_aw_world_ejection_next, 0);
1664
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_ejection_previous", (VALUE(*)(ANYARGS))ruby_aw_world_ejection_previous, 0);
1665
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_instance_get", (VALUE(*)(ANYARGS))ruby_aw_world_instance_get, 1);
1666
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_instance_set", (VALUE(*)(ANYARGS))ruby_aw_world_instance_set, 2);
1667
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_list", (VALUE(*)(ANYARGS))ruby_aw_world_list, 0);
1668
+ rb_define_method(cRubyActiveworld, "ruby_aw_world_reload_registry", (VALUE(*)(ANYARGS))ruby_aw_world_reload_registry, 0);
1669
+
1670
+ // NEW ONES
1671
+ rb_define_method(cRubyActiveworld, "admin_world_delete_event_callback",(VALUE(*)(ANYARGS))admin_world_delete_event_callback,0);
1672
+ rb_define_method(cRubyActiveworld, "receive_aw_event_admin_world_delete",(VALUE(*)(ANYARGS))receive_aw_event_admin_world_delete,0);
1673
+ rb_define_method(cRubyActiveworld, "admin_world_info_event_callback",(VALUE(*)(ANYARGS))admin_world_info_event_callback,0);
1674
+ rb_define_method(cRubyActiveworld, "receive_aw_event_admin_world_info",(VALUE(*)(ANYARGS))receive_aw_event_admin_world_info,0);
1675
+ rb_define_method(cRubyActiveworld, "avatar_add_event_callback",(VALUE(*)(ANYARGS))avatar_add_event_callback,0);
1676
+ rb_define_method(cRubyActiveworld, "receive_aw_event_avatar_add",(VALUE(*)(ANYARGS))receive_aw_event_avatar_add,0);
1677
+ rb_define_method(cRubyActiveworld, "avatar_change_event_callback",(VALUE(*)(ANYARGS))avatar_change_event_callback,0);
1678
+ rb_define_method(cRubyActiveworld, "receive_aw_event_avatar_change",(VALUE(*)(ANYARGS))receive_aw_event_avatar_change,0);
1679
+ rb_define_method(cRubyActiveworld, "avatar_click_event_callback",(VALUE(*)(ANYARGS))avatar_click_event_callback,0);
1680
+ rb_define_method(cRubyActiveworld, "receive_aw_event_avatar_click",(VALUE(*)(ANYARGS))receive_aw_event_avatar_click,0);
1681
+ rb_define_method(cRubyActiveworld, "avatar_delete_event_callback",(VALUE(*)(ANYARGS))avatar_delete_event_callback,0);
1682
+ rb_define_method(cRubyActiveworld, "receive_aw_event_avatar_delete",(VALUE(*)(ANYARGS))receive_aw_event_avatar_delete,0);
1683
+ rb_define_method(cRubyActiveworld, "avatar_reload_event_callback",(VALUE(*)(ANYARGS))avatar_reload_event_callback,0);
1684
+ rb_define_method(cRubyActiveworld, "receive_aw_event_avatar_reload",(VALUE(*)(ANYARGS))receive_aw_event_avatar_reload,0);
1685
+ rb_define_method(cRubyActiveworld, "botgram_event_callback",(VALUE(*)(ANYARGS))botgram_event_callback,0);
1686
+ rb_define_method(cRubyActiveworld, "receive_aw_event_botgram",(VALUE(*)(ANYARGS))receive_aw_event_botgram,0);
1687
+ rb_define_method(cRubyActiveworld, "botmenu_event_callback",(VALUE(*)(ANYARGS))botmenu_event_callback,0);
1688
+ rb_define_method(cRubyActiveworld, "receive_aw_event_botmenu",(VALUE(*)(ANYARGS))receive_aw_event_botmenu,0);
1689
+ rb_define_method(cRubyActiveworld, "camera_event_callback",(VALUE(*)(ANYARGS))camera_event_callback,0);
1690
+ rb_define_method(cRubyActiveworld, "receive_aw_event_camera",(VALUE(*)(ANYARGS))receive_aw_event_camera,0);
1691
+ rb_define_method(cRubyActiveworld, "cell_begin_event_callback",(VALUE(*)(ANYARGS))cell_begin_event_callback,0);
1692
+ rb_define_method(cRubyActiveworld, "receive_aw_event_cell_begin",(VALUE(*)(ANYARGS))receive_aw_event_cell_begin,0);
1693
+ rb_define_method(cRubyActiveworld, "cell_end_event_callback",(VALUE(*)(ANYARGS))cell_end_event_callback,0);
1694
+ rb_define_method(cRubyActiveworld, "receive_aw_event_cell_end",(VALUE(*)(ANYARGS))receive_aw_event_cell_end,0);
1695
+ rb_define_method(cRubyActiveworld, "cell_object_event_callback",(VALUE(*)(ANYARGS))cell_object_event_callback,0);
1696
+ rb_define_method(cRubyActiveworld, "receive_aw_event_cell_object",(VALUE(*)(ANYARGS))receive_aw_event_cell_object,0);
1697
+ rb_define_method(cRubyActiveworld, "chat_event_callback",(VALUE(*)(ANYARGS))chat_event_callback,0);
1698
+ rb_define_method(cRubyActiveworld, "receive_aw_event_chat",(VALUE(*)(ANYARGS))receive_aw_event_chat,0);
1699
+ rb_define_method(cRubyActiveworld, "console_message_event_callback",(VALUE(*)(ANYARGS))console_message_event_callback,0);
1700
+ rb_define_method(cRubyActiveworld, "receive_aw_event_console_message",(VALUE(*)(ANYARGS))receive_aw_event_console_message,0);
1701
+ rb_define_method(cRubyActiveworld, "contact_state_event_callback",(VALUE(*)(ANYARGS))contact_state_event_callback,0);
1702
+ rb_define_method(cRubyActiveworld, "receive_aw_event_contact_state",(VALUE(*)(ANYARGS))receive_aw_event_contact_state,0);
1703
+ rb_define_method(cRubyActiveworld, "entity_add_event_callback",(VALUE(*)(ANYARGS))entity_add_event_callback,0);
1704
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_add",(VALUE(*)(ANYARGS))receive_aw_event_entity_add,0);
1705
+ rb_define_method(cRubyActiveworld, "entity_change_event_callback",(VALUE(*)(ANYARGS))entity_change_event_callback,0);
1706
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_change",(VALUE(*)(ANYARGS))receive_aw_event_entity_change,0);
1707
+ rb_define_method(cRubyActiveworld, "entity_delete_event_callback",(VALUE(*)(ANYARGS))entity_delete_event_callback,0);
1708
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_delete",(VALUE(*)(ANYARGS))receive_aw_event_entity_delete,0);
1709
+ rb_define_method(cRubyActiveworld, "entity_links_event_callback",(VALUE(*)(ANYARGS))entity_links_event_callback,0);
1710
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_links",(VALUE(*)(ANYARGS))receive_aw_event_entity_links,0);
1711
+ rb_define_method(cRubyActiveworld, "entity_rider_add_event_callback",(VALUE(*)(ANYARGS))entity_rider_add_event_callback,0);
1712
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_rider_add",(VALUE(*)(ANYARGS))receive_aw_event_entity_rider_add,0);
1713
+ rb_define_method(cRubyActiveworld, "entity_rider_change_event_callback",(VALUE(*)(ANYARGS))entity_rider_change_event_callback,0);
1714
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_rider_change",(VALUE(*)(ANYARGS))receive_aw_event_entity_rider_change,0);
1715
+ rb_define_method(cRubyActiveworld, "entity_rider_delete_event_callback",(VALUE(*)(ANYARGS))entity_rider_delete_event_callback,0);
1716
+ rb_define_method(cRubyActiveworld, "receive_aw_event_entity_rider_delete",(VALUE(*)(ANYARGS))receive_aw_event_entity_rider_delete,0);
1717
+ rb_define_method(cRubyActiveworld, "hud_clear_event_callback",(VALUE(*)(ANYARGS))hud_clear_event_callback,0);
1718
+ rb_define_method(cRubyActiveworld, "receive_aw_event_hud_clear",(VALUE(*)(ANYARGS))receive_aw_event_hud_clear,0);
1719
+ rb_define_method(cRubyActiveworld, "hud_click_event_callback",(VALUE(*)(ANYARGS))hud_click_event_callback,0);
1720
+ rb_define_method(cRubyActiveworld, "receive_aw_event_hud_click",(VALUE(*)(ANYARGS))receive_aw_event_hud_click,0);
1721
+ rb_define_method(cRubyActiveworld, "hud_create_event_callback",(VALUE(*)(ANYARGS))hud_create_event_callback,0);
1722
+ rb_define_method(cRubyActiveworld, "receive_aw_event_hud_create",(VALUE(*)(ANYARGS))receive_aw_event_hud_create,0);
1723
+ rb_define_method(cRubyActiveworld, "hud_destroy_event_callback",(VALUE(*)(ANYARGS))hud_destroy_event_callback,0);
1724
+ rb_define_method(cRubyActiveworld, "receive_aw_event_hud_destroy",(VALUE(*)(ANYARGS))receive_aw_event_hud_destroy,0);
1725
+ rb_define_method(cRubyActiveworld, "join_event_callback",(VALUE(*)(ANYARGS))join_event_callback,0);
1726
+ rb_define_method(cRubyActiveworld, "receive_aw_event_join",(VALUE(*)(ANYARGS))receive_aw_event_join,0);
1727
+ rb_define_method(cRubyActiveworld, "noise_event_callback",(VALUE(*)(ANYARGS))noise_event_callback,0);
1728
+ rb_define_method(cRubyActiveworld, "receive_aw_event_noise",(VALUE(*)(ANYARGS))receive_aw_event_noise,0);
1729
+ rb_define_method(cRubyActiveworld, "object_add_event_callback",(VALUE(*)(ANYARGS))object_add_event_callback,0);
1730
+ rb_define_method(cRubyActiveworld, "receive_aw_event_object_add",(VALUE(*)(ANYARGS))receive_aw_event_object_add,0);
1731
+ rb_define_method(cRubyActiveworld, "object_bump_event_callback",(VALUE(*)(ANYARGS))object_bump_event_callback,0);
1732
+ rb_define_method(cRubyActiveworld, "receive_aw_event_object_bump",(VALUE(*)(ANYARGS))receive_aw_event_object_bump,0);
1733
+ rb_define_method(cRubyActiveworld, "object_click_event_callback",(VALUE(*)(ANYARGS))object_click_event_callback,0);
1734
+ rb_define_method(cRubyActiveworld, "receive_aw_event_object_click",(VALUE(*)(ANYARGS))receive_aw_event_object_click,0);
1735
+ rb_define_method(cRubyActiveworld, "object_delete_event_callback",(VALUE(*)(ANYARGS))object_delete_event_callback,0);
1736
+ rb_define_method(cRubyActiveworld, "receive_aw_event_object_delete",(VALUE(*)(ANYARGS))receive_aw_event_object_delete,0);
1737
+ rb_define_method(cRubyActiveworld, "object_select_event_callback",(VALUE(*)(ANYARGS))object_select_event_callback,0);
1738
+ rb_define_method(cRubyActiveworld, "receive_aw_event_object_select",(VALUE(*)(ANYARGS))receive_aw_event_object_select,0);
1739
+ rb_define_method(cRubyActiveworld, "send_file_event_callback",(VALUE(*)(ANYARGS))send_file_event_callback,0);
1740
+ rb_define_method(cRubyActiveworld, "receive_aw_event_send_file",(VALUE(*)(ANYARGS))receive_aw_event_send_file,0);
1741
+ rb_define_method(cRubyActiveworld, "telegram_event_callback",(VALUE(*)(ANYARGS))telegram_event_callback,0);
1742
+ rb_define_method(cRubyActiveworld, "receive_aw_event_telegram",(VALUE(*)(ANYARGS))receive_aw_event_telegram,0);
1743
+ rb_define_method(cRubyActiveworld, "teleport_event_callback",(VALUE(*)(ANYARGS))teleport_event_callback,0);
1744
+ rb_define_method(cRubyActiveworld, "receive_aw_event_teleport",(VALUE(*)(ANYARGS))receive_aw_event_teleport,0);
1745
+ rb_define_method(cRubyActiveworld, "terrain_begin_event_callback",(VALUE(*)(ANYARGS))terrain_begin_event_callback,0);
1746
+ rb_define_method(cRubyActiveworld, "receive_aw_event_terrain_begin",(VALUE(*)(ANYARGS))receive_aw_event_terrain_begin,0);
1747
+ rb_define_method(cRubyActiveworld, "terrain_changed_event_callback",(VALUE(*)(ANYARGS))terrain_changed_event_callback,0);
1748
+ rb_define_method(cRubyActiveworld, "receive_aw_event_terrain_changed",(VALUE(*)(ANYARGS))receive_aw_event_terrain_changed,0);
1749
+ rb_define_method(cRubyActiveworld, "terrain_data_event_callback",(VALUE(*)(ANYARGS))terrain_data_event_callback,0);
1750
+ rb_define_method(cRubyActiveworld, "receive_aw_event_terrain_data",(VALUE(*)(ANYARGS))receive_aw_event_terrain_data,0);
1751
+ rb_define_method(cRubyActiveworld, "terrain_end_event_callback",(VALUE(*)(ANYARGS))terrain_end_event_callback,0);
1752
+ rb_define_method(cRubyActiveworld, "receive_aw_event_terrain_end",(VALUE(*)(ANYARGS))receive_aw_event_terrain_end,0);
1753
+ rb_define_method(cRubyActiveworld, "toolbar_click_event_callback",(VALUE(*)(ANYARGS))toolbar_click_event_callback,0);
1754
+ rb_define_method(cRubyActiveworld, "receive_aw_event_toolbar_click",(VALUE(*)(ANYARGS))receive_aw_event_toolbar_click,0);
1755
+ rb_define_method(cRubyActiveworld, "universe_attributes_event_callback",(VALUE(*)(ANYARGS))universe_attributes_event_callback,0);
1756
+ rb_define_method(cRubyActiveworld, "receive_aw_event_universe_attributes",(VALUE(*)(ANYARGS))receive_aw_event_universe_attributes,0);
1757
+ rb_define_method(cRubyActiveworld, "universe_disconnect_event_callback",(VALUE(*)(ANYARGS))universe_disconnect_event_callback,0);
1758
+ rb_define_method(cRubyActiveworld, "receive_aw_event_universe_disconnect",(VALUE(*)(ANYARGS))receive_aw_event_universe_disconnect,0);
1759
+ rb_define_method(cRubyActiveworld, "url_event_callback",(VALUE(*)(ANYARGS))url_event_callback,0);
1760
+ rb_define_method(cRubyActiveworld, "receive_aw_event_url",(VALUE(*)(ANYARGS))receive_aw_event_url,0);
1761
+ rb_define_method(cRubyActiveworld, "url_click_event_callback",(VALUE(*)(ANYARGS))url_click_event_callback,0);
1762
+ rb_define_method(cRubyActiveworld, "receive_aw_event_url_click",(VALUE(*)(ANYARGS))receive_aw_event_url_click,0);
1763
+ rb_define_method(cRubyActiveworld, "user_info_event_callback",(VALUE(*)(ANYARGS))user_info_event_callback,0);
1764
+ rb_define_method(cRubyActiveworld, "receive_aw_event_user_info",(VALUE(*)(ANYARGS))receive_aw_event_user_info,0);
1765
+ rb_define_method(cRubyActiveworld, "voip_data_event_callback",(VALUE(*)(ANYARGS))voip_data_event_callback,0);
1766
+ rb_define_method(cRubyActiveworld, "receive_aw_event_voip_data",(VALUE(*)(ANYARGS))receive_aw_event_voip_data,0);
1767
+ rb_define_method(cRubyActiveworld, "world_attributes_event_callback",(VALUE(*)(ANYARGS))world_attributes_event_callback,0);
1768
+ rb_define_method(cRubyActiveworld, "receive_aw_event_world_attributes",(VALUE(*)(ANYARGS))receive_aw_event_world_attributes,0);
1769
+ rb_define_method(cRubyActiveworld, "world_disconnect_event_callback",(VALUE(*)(ANYARGS))world_disconnect_event_callback,0);
1770
+ rb_define_method(cRubyActiveworld, "receive_aw_event_world_disconnect",(VALUE(*)(ANYARGS))receive_aw_event_world_disconnect,0);
1771
+ rb_define_method(cRubyActiveworld, "world_info_event_callback",(VALUE(*)(ANYARGS))world_info_event_callback,0);
1772
+ rb_define_method(cRubyActiveworld, "receive_aw_event_world_info",(VALUE(*)(ANYARGS))receive_aw_event_world_info,0);
1773
+ rb_define_method(cRubyActiveworld, "address_callback",(VALUE(*)(ANYARGS))address_callback,1);
1774
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_address",(VALUE(*)(ANYARGS))receive_aw_callback_address,1);
1775
+ rb_define_method(cRubyActiveworld, "admin_callback",(VALUE(*)(ANYARGS))admin_callback,1);
1776
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_admin",(VALUE(*)(ANYARGS))receive_aw_callback_admin,1);
1777
+ rb_define_method(cRubyActiveworld, "admin_world_list_callback",(VALUE(*)(ANYARGS))admin_world_list_callback,1);
1778
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_admin_world_list",(VALUE(*)(ANYARGS))receive_aw_callback_admin_world_list,1);
1779
+ rb_define_method(cRubyActiveworld, "admin_world_result_callback",(VALUE(*)(ANYARGS))admin_world_result_callback,1);
1780
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_admin_world_result",(VALUE(*)(ANYARGS))receive_aw_callback_admin_world_result,1);
1781
+ rb_define_method(cRubyActiveworld, "attributes_reset_result_callback",(VALUE(*)(ANYARGS))attributes_reset_result_callback,1);
1782
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_attributes_reset_result",(VALUE(*)(ANYARGS))receive_aw_callback_attributes_reset_result,1);
1783
+ rb_define_method(cRubyActiveworld, "avatar_location_callback",(VALUE(*)(ANYARGS))avatar_location_callback,1);
1784
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_avatar_location",(VALUE(*)(ANYARGS))receive_aw_callback_avatar_location,1);
1785
+ rb_define_method(cRubyActiveworld, "botgram_result_callback",(VALUE(*)(ANYARGS))botgram_result_callback,1);
1786
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_botgram_result",(VALUE(*)(ANYARGS))receive_aw_callback_botgram_result,1);
1787
+ rb_define_method(cRubyActiveworld, "botmenu_result_callback",(VALUE(*)(ANYARGS))botmenu_result_callback,1);
1788
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_botmenu_result",(VALUE(*)(ANYARGS))receive_aw_callback_botmenu_result,1);
1789
+ rb_define_method(cRubyActiveworld, "cav_callback",(VALUE(*)(ANYARGS))cav_callback,1);
1790
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_cav",(VALUE(*)(ANYARGS))receive_aw_callback_cav,1);
1791
+ rb_define_method(cRubyActiveworld, "cav_result_callback",(VALUE(*)(ANYARGS))cav_result_callback,1);
1792
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_cav_result",(VALUE(*)(ANYARGS))receive_aw_callback_cav_result,1);
1793
+ rb_define_method(cRubyActiveworld, "cav_template_callback",(VALUE(*)(ANYARGS))cav_template_callback,1);
1794
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_cav_template",(VALUE(*)(ANYARGS))receive_aw_callback_cav_template,1);
1795
+ rb_define_method(cRubyActiveworld, "cav_template_result_callback",(VALUE(*)(ANYARGS))cav_template_result_callback,1);
1796
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_cav_template_result",(VALUE(*)(ANYARGS))receive_aw_callback_cav_template_result,1);
1797
+ rb_define_method(cRubyActiveworld, "cell_result_callback",(VALUE(*)(ANYARGS))cell_result_callback,1);
1798
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_cell_result",(VALUE(*)(ANYARGS))receive_aw_callback_cell_result,1);
1799
+ rb_define_method(cRubyActiveworld, "citizen_attributes_callback",(VALUE(*)(ANYARGS))citizen_attributes_callback,1);
1800
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_citizen_attributes",(VALUE(*)(ANYARGS))receive_aw_callback_citizen_attributes,1);
1801
+ rb_define_method(cRubyActiveworld, "citizen_result_callback",(VALUE(*)(ANYARGS))citizen_result_callback,1);
1802
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_citizen_result",(VALUE(*)(ANYARGS))receive_aw_callback_citizen_result,1);
1803
+ rb_define_method(cRubyActiveworld, "contact_add_callback",(VALUE(*)(ANYARGS))contact_add_callback,1);
1804
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_contact_add",(VALUE(*)(ANYARGS))receive_aw_callback_contact_add,1);
1805
+ rb_define_method(cRubyActiveworld, "create_callback",(VALUE(*)(ANYARGS))create_callback,1);
1806
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_create",(VALUE(*)(ANYARGS))receive_aw_callback_create,1);
1807
+ rb_define_method(cRubyActiveworld, "delete_all_objects_result_callback",(VALUE(*)(ANYARGS))delete_all_objects_result_callback,1);
1808
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_delete_all_objects_result",(VALUE(*)(ANYARGS))receive_aw_callback_delete_all_objects_result,1);
1809
+ rb_define_method(cRubyActiveworld, "enter_callback",(VALUE(*)(ANYARGS))enter_callback,1);
1810
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_enter",(VALUE(*)(ANYARGS))receive_aw_callback_enter,1);
1811
+ rb_define_method(cRubyActiveworld, "hud_result_callback",(VALUE(*)(ANYARGS))hud_result_callback,1);
1812
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_hud_result",(VALUE(*)(ANYARGS))receive_aw_callback_hud_result,1);
1813
+ rb_define_method(cRubyActiveworld, "immigrate_callback",(VALUE(*)(ANYARGS))immigrate_callback,1);
1814
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_immigrate",(VALUE(*)(ANYARGS))receive_aw_callback_immigrate,1);
1815
+ rb_define_method(cRubyActiveworld, "join_callback",(VALUE(*)(ANYARGS))join_callback,1);
1816
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_join",(VALUE(*)(ANYARGS))receive_aw_callback_join,1);
1817
+ rb_define_method(cRubyActiveworld, "license_attributes_callback",(VALUE(*)(ANYARGS))license_attributes_callback,1);
1818
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_license_attributes",(VALUE(*)(ANYARGS))receive_aw_callback_license_attributes,1);
1819
+ rb_define_method(cRubyActiveworld, "license_result_callback",(VALUE(*)(ANYARGS))license_result_callback,1);
1820
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_license_result",(VALUE(*)(ANYARGS))receive_aw_callback_license_result,1);
1821
+ rb_define_method(cRubyActiveworld, "login_callback",(VALUE(*)(ANYARGS))login_callback,1);
1822
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_login",(VALUE(*)(ANYARGS))receive_aw_callback_login,1);
1823
+ rb_define_method(cRubyActiveworld, "object_result_callback",(VALUE(*)(ANYARGS))object_result_callback,1);
1824
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_object_result",(VALUE(*)(ANYARGS))receive_aw_callback_object_result,1);
1825
+ rb_define_method(cRubyActiveworld, "password_send_callback",(VALUE(*)(ANYARGS))password_send_callback,1);
1826
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_password_send",(VALUE(*)(ANYARGS))receive_aw_callback_password_send,1);
1827
+ rb_define_method(cRubyActiveworld, "query_callback",(VALUE(*)(ANYARGS))query_callback,1);
1828
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_query",(VALUE(*)(ANYARGS))receive_aw_callback_query,1);
1829
+ rb_define_method(cRubyActiveworld, "register_callback",(VALUE(*)(ANYARGS))register_callback,1);
1830
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_register",(VALUE(*)(ANYARGS))receive_aw_callback_register,1);
1831
+ rb_define_method(cRubyActiveworld, "reload_registry_callback",(VALUE(*)(ANYARGS))reload_registry_callback,1);
1832
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_reload_registry",(VALUE(*)(ANYARGS))receive_aw_callback_reload_registry,1);
1833
+ rb_define_method(cRubyActiveworld, "send_file_callback",(VALUE(*)(ANYARGS))send_file_callback,1);
1834
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_send_file",(VALUE(*)(ANYARGS))receive_aw_callback_send_file,1);
1835
+ rb_define_method(cRubyActiveworld, "telegram_result_callback",(VALUE(*)(ANYARGS))telegram_result_callback,1);
1836
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_telegram_result",(VALUE(*)(ANYARGS))receive_aw_callback_telegram_result,1);
1837
+ rb_define_method(cRubyActiveworld, "terrain_delete_all_result_callback",(VALUE(*)(ANYARGS))terrain_delete_all_result_callback,1);
1838
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_terrain_delete_all_result",(VALUE(*)(ANYARGS))receive_aw_callback_terrain_delete_all_result,1);
1839
+ rb_define_method(cRubyActiveworld, "terrain_load_node_result_callback",(VALUE(*)(ANYARGS))terrain_load_node_result_callback,1);
1840
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_terrain_load_node_result",(VALUE(*)(ANYARGS))receive_aw_callback_terrain_load_node_result,1);
1841
+ rb_define_method(cRubyActiveworld, "terrain_next_result_callback",(VALUE(*)(ANYARGS))terrain_next_result_callback,1);
1842
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_terrain_next_result",(VALUE(*)(ANYARGS))receive_aw_callback_terrain_next_result,1);
1843
+ rb_define_method(cRubyActiveworld, "terrain_set_result_callback",(VALUE(*)(ANYARGS))terrain_set_result_callback,1);
1844
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_terrain_set_result",(VALUE(*)(ANYARGS))receive_aw_callback_terrain_set_result,1);
1845
+ rb_define_method(cRubyActiveworld, "universe_ejection_callback",(VALUE(*)(ANYARGS))universe_ejection_callback,1);
1846
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_universe_ejection",(VALUE(*)(ANYARGS))receive_aw_callback_universe_ejection,1);
1847
+ rb_define_method(cRubyActiveworld, "universe_ejection_result_callback",(VALUE(*)(ANYARGS))universe_ejection_result_callback,1);
1848
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_universe_ejection_result",(VALUE(*)(ANYARGS))receive_aw_callback_universe_ejection_result,1);
1849
+ rb_define_method(cRubyActiveworld, "user_list_callback",(VALUE(*)(ANYARGS))user_list_callback,1);
1850
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_user_list",(VALUE(*)(ANYARGS))receive_aw_callback_user_list,1);
1851
+ rb_define_method(cRubyActiveworld, "world_ejection_callback",(VALUE(*)(ANYARGS))world_ejection_callback,1);
1852
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_world_ejection",(VALUE(*)(ANYARGS))receive_aw_callback_world_ejection,1);
1853
+ rb_define_method(cRubyActiveworld, "world_ejection_result_callback",(VALUE(*)(ANYARGS))world_ejection_result_callback,1);
1854
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_world_ejection_result",(VALUE(*)(ANYARGS))receive_aw_callback_world_ejection_result,1);
1855
+ rb_define_method(cRubyActiveworld, "world_instance_callback",(VALUE(*)(ANYARGS))world_instance_callback,1);
1856
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_world_instance",(VALUE(*)(ANYARGS))receive_aw_callback_world_instance,1);
1857
+ rb_define_method(cRubyActiveworld, "world_list_callback",(VALUE(*)(ANYARGS))world_list_callback,1);
1858
+ rb_define_method(cRubyActiveworld, "receive_aw_callback_world_list",(VALUE(*)(ANYARGS))receive_aw_callback_world_list,1);
1859
+
1860
+ }
1861
+
1862
+ #ifdef __cplusplus
1863
+ }
1864
+ #endif