@@ -208,7 +208,6 @@ enum ToClientCommand
208
208
TOCLIENT_BLOCKDATA = 0x20 , // TODO: Multiple blocks
209
209
TOCLIENT_ADDNODE = 0x21 ,
210
210
/*
211
- u16 command
212
211
v3s16 position
213
212
serialized mapnode
214
213
u8 keep_metadata // Added in protocol version 22
@@ -255,7 +254,6 @@ enum ToClientCommand
255
254
/*
256
255
Sent as unreliable.
257
256
258
- u16 command
259
257
u16 number of player positions
260
258
for each player:
261
259
u16 peer_id
@@ -271,7 +269,6 @@ enum ToClientCommand
271
269
272
270
TOCLIENT_TIME_OF_DAY = 0x29 ,
273
271
/*
274
- u16 command
275
272
u16 time (0-23999)
276
273
Added in a later version:
277
274
f1000 time_speed
@@ -281,14 +278,12 @@ enum ToClientCommand
281
278
282
279
TOCLIENT_CHAT_MESSAGE = 0x30 ,
283
280
/*
284
- u16 command
285
281
u16 length
286
282
wstring message
287
283
*/
288
284
289
285
TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD = 0x31 ,
290
286
/*
291
- u16 command
292
287
u16 count of removed objects
293
288
for all removed objects {
294
289
u16 id
@@ -304,7 +299,6 @@ enum ToClientCommand
304
299
305
300
TOCLIENT_ACTIVE_OBJECT_MESSAGES = 0x32 ,
306
301
/*
307
- u16 command
308
302
for all objects
309
303
{
310
304
u16 id
@@ -315,28 +309,24 @@ enum ToClientCommand
315
309
316
310
TOCLIENT_HP = 0x33 ,
317
311
/*
318
- u16 command
319
312
u8 hp
320
313
*/
321
314
322
315
TOCLIENT_MOVE_PLAYER = 0x34 ,
323
316
/*
324
- u16 command
325
317
v3f1000 player position
326
318
f1000 player pitch
327
319
f1000 player yaw
328
320
*/
329
321
330
322
TOCLIENT_ACCESS_DENIED_LEGACY = 0x35 ,
331
323
/*
332
- u16 command
333
324
u16 reason_length
334
325
wstring reason
335
326
*/
336
327
337
328
TOCLIENT_PLAYERITEM = 0x36 , // Obsolete
338
329
/*
339
- u16 command
340
330
u16 count of player items
341
331
for all player items {
342
332
u16 peer id
@@ -347,14 +337,12 @@ enum ToClientCommand
347
337
348
338
TOCLIENT_DEATHSCREEN = 0x37 ,
349
339
/*
350
- u16 command
351
340
u8 bool set camera point target
352
341
v3f1000 camera point target (to point the death cause or whatever)
353
342
*/
354
343
355
344
TOCLIENT_MEDIA = 0x38 ,
356
345
/*
357
- u16 command
358
346
u16 total number of texture bunches
359
347
u16 index of this bunch
360
348
u32 number of files in this bunch
@@ -370,29 +358,25 @@ enum ToClientCommand
370
358
371
359
TOCLIENT_TOOLDEF = 0x39 ,
372
360
/*
373
- u16 command
374
361
u32 length of the next item
375
362
serialized ToolDefManager
376
363
*/
377
364
378
365
TOCLIENT_NODEDEF = 0x3a ,
379
366
/*
380
- u16 command
381
367
u32 length of the next item
382
368
serialized NodeDefManager
383
369
*/
384
370
385
371
TOCLIENT_CRAFTITEMDEF = 0x3b ,
386
372
/*
387
- u16 command
388
373
u32 length of the next item
389
374
serialized CraftiItemDefManager
390
375
*/
391
376
392
377
TOCLIENT_ANNOUNCE_MEDIA = 0x3c ,
393
378
394
379
/*
395
- u16 command
396
380
u32 number of files
397
381
for each texture {
398
382
u16 length of name
@@ -404,14 +388,12 @@ enum ToClientCommand
404
388
405
389
TOCLIENT_ITEMDEF = 0x3d ,
406
390
/*
407
- u16 command
408
391
u32 length of next item
409
392
serialized ItemDefManager
410
393
*/
411
394
412
395
TOCLIENT_PLAY_SOUND = 0x3f ,
413
396
/*
414
- u16 command
415
397
s32 sound_id
416
398
u16 len
417
399
u8[len] sound name
@@ -424,13 +406,11 @@ enum ToClientCommand
424
406
425
407
TOCLIENT_STOP_SOUND = 0x40 ,
426
408
/*
427
- u16 command
428
409
s32 sound_id
429
410
*/
430
411
431
412
TOCLIENT_PRIVILEGES = 0x41 ,
432
413
/*
433
- u16 command
434
414
u16 number of privileges
435
415
for each privilege
436
416
u16 len
@@ -439,7 +419,6 @@ enum ToClientCommand
439
419
440
420
TOCLIENT_INVENTORY_FORMSPEC = 0x42 ,
441
421
/*
442
- u16 command
443
422
u32 len
444
423
u8[len] formspec
445
424
*/
@@ -463,7 +442,6 @@ enum ToClientCommand
463
442
464
443
TOCLIENT_MOVEMENT = 0x45 ,
465
444
/*
466
- u16 command
467
445
f1000 movement_acceleration_default
468
446
f1000 movement_acceleration_air
469
447
f1000 movement_acceleration_fast
@@ -480,7 +458,6 @@ enum ToClientCommand
480
458
481
459
TOCLIENT_SPAWN_PARTICLE = 0x46 ,
482
460
/*
483
- u16 command
484
461
v3f1000 pos
485
462
v3f1000 velocity
486
463
v3f1000 acceleration
@@ -494,7 +471,6 @@ enum ToClientCommand
494
471
495
472
TOCLIENT_ADD_PARTICLESPAWNER = 0x47 ,
496
473
/*
497
- u16 command
498
474
u16 amount
499
475
f1000 spawntime
500
476
v3f1000 minpos
@@ -516,13 +492,11 @@ enum ToClientCommand
516
492
517
493
TOCLIENT_DELETE_PARTICLESPAWNER_LEGACY = 0x48 ,
518
494
/*
519
- u16 command
520
495
u16 id
521
496
*/
522
497
523
498
TOCLIENT_HUDADD = 0x49 ,
524
499
/*
525
- u16 command
526
500
u32 id
527
501
u8 type
528
502
v2f1000 pos
@@ -542,13 +516,11 @@ enum ToClientCommand
542
516
543
517
TOCLIENT_HUDRM = 0x4a ,
544
518
/*
545
- u16 command
546
519
u32 id
547
520
*/
548
521
549
522
TOCLIENT_HUDCHANGE = 0x4b ,
550
523
/*
551
- u16 command
552
524
u32 id
553
525
u8 stat
554
526
[v2f1000 data |
@@ -559,28 +531,24 @@ enum ToClientCommand
559
531
560
532
TOCLIENT_HUD_SET_FLAGS = 0x4c ,
561
533
/*
562
- u16 command
563
534
u32 flags
564
535
u32 mask
565
536
*/
566
537
567
538
TOCLIENT_HUD_SET_PARAM = 0x4d ,
568
539
/*
569
- u16 command
570
540
u16 param
571
541
u16 len
572
542
u8[len] value
573
543
*/
574
544
575
545
TOCLIENT_BREATH = 0x4e ,
576
546
/*
577
- u16 command
578
547
u16 breath
579
548
*/
580
549
581
550
TOCLIENT_SET_SKY = 0x4f ,
582
551
/*
583
- u16 command
584
552
u8[4] color (ARGB)
585
553
u8 len
586
554
u8[len] type
@@ -592,14 +560,12 @@ enum ToClientCommand
592
560
593
561
TOCLIENT_OVERRIDE_DAY_NIGHT_RATIO = 0x50 ,
594
562
/*
595
- u16 command
596
563
u8 do_override (boolean)
597
564
u16 day-night ratio 0...65535
598
565
*/
599
566
600
567
TOCLIENT_LOCAL_PLAYER_ANIMATIONS = 0x51 ,
601
568
/*
602
- u16 command
603
569
v2s32 stand/idle
604
570
v2s32 walk
605
571
v2s32 dig
@@ -609,22 +575,19 @@ enum ToClientCommand
609
575
610
576
TOCLIENT_EYE_OFFSET = 0x52 ,
611
577
/*
612
- u16 command
613
578
v3f1000 first
614
579
v3f1000 third
615
580
*/
616
581
617
582
TOCLIENT_DELETE_PARTICLESPAWNER = 0x53 ,
618
583
/*
619
- u16 command
620
584
u32 id
621
585
*/
622
586
623
587
TOCLIENT_SRP_BYTES_S_B = 0x60 ,
624
588
/*
625
589
Belonging to AUTH_MECHANISM_LEGACY_PASSWORD and AUTH_MECHANISM_SRP.
626
590
627
- u16 command
628
591
std::string bytes_s
629
592
std::string bytes_B
630
593
*/
@@ -735,7 +698,6 @@ enum ToServerCommand
735
698
736
699
TOSERVER_SIGNTEXT = 0x30 , // Old signs, obsolete
737
700
/*
738
- u16 command
739
701
v3s16 blockpos
740
702
s16 id
741
703
u16 textlen
@@ -749,14 +711,12 @@ enum ToServerCommand
749
711
750
712
TOSERVER_CHAT_MESSAGE = 0x32 ,
751
713
/*
752
- u16 command
753
714
u16 length
754
715
wstring message
755
716
*/
756
717
757
718
TOSERVER_SIGNNODETEXT = 0x33 , // obsolete
758
719
/*
759
- u16 command
760
720
v3s16 p
761
721
u16 textlen
762
722
textdata
@@ -773,7 +733,6 @@ enum ToServerCommand
773
733
774
734
TOSERVER_DAMAGE = 0x35 ,
775
735
/*
776
- u16 command
777
736
u8 amount
778
737
*/
779
738
@@ -818,14 +777,12 @@ enum ToServerCommand
818
777
819
778
TOSERVER_REMOVED_SOUNDS = 0x3a ,
820
779
/*
821
- u16 command
822
780
u16 len
823
781
s32[len] sound_id
824
782
*/
825
783
826
784
TOSERVER_NODEMETA_FIELDS = 0x3b ,
827
785
/*
828
- u16 command
829
786
v3s16 p
830
787
u16 len
831
788
u8[len] form name (reserved for future use)
@@ -839,7 +796,6 @@ enum ToServerCommand
839
796
840
797
TOSERVER_INVENTORY_FIELDS = 0x3c ,
841
798
/*
842
- u16 command
843
799
u16 len
844
800
u8[len] form name (reserved for future use)
845
801
u16 number of fields
@@ -852,7 +808,6 @@ enum ToServerCommand
852
808
853
809
TOSERVER_REQUEST_MEDIA = 0x40 ,
854
810
/*
855
- u16 command
856
811
u16 number of files requested
857
812
for each file {
858
813
u16 length of name
@@ -862,12 +817,11 @@ enum ToServerCommand
862
817
863
818
TOSERVER_RECEIVED_MEDIA = 0x41 ,
864
819
/*
865
- u16 command
820
+ <no payload data>
866
821
*/
867
822
868
823
TOSERVER_BREATH = 0x42 ,
869
824
/*
870
- u16 command
871
825
u16 breath
872
826
*/
873
827
0 commit comments