Skip to content

Commit 64a5eec

Browse files
committedSep 10, 2015
networkprotocol.h: remove "u16 command" from doc
Its obvious that "u16 command" is inside every packet, therefore this commit removes all mentions of the command, if non-array like notation is used. We already didn't add "u16 command" to new packets or removed it at packet changes, so now we remove it from existing packets.
1 parent 2a9da62 commit 64a5eec

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed
 

Diff for: ‎src/network/networkprotocol.h

+1-47
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ enum ToClientCommand
208208
TOCLIENT_BLOCKDATA = 0x20, //TODO: Multiple blocks
209209
TOCLIENT_ADDNODE = 0x21,
210210
/*
211-
u16 command
212211
v3s16 position
213212
serialized mapnode
214213
u8 keep_metadata // Added in protocol version 22
@@ -255,7 +254,6 @@ enum ToClientCommand
255254
/*
256255
Sent as unreliable.
257256
258-
u16 command
259257
u16 number of player positions
260258
for each player:
261259
u16 peer_id
@@ -271,7 +269,6 @@ enum ToClientCommand
271269

272270
TOCLIENT_TIME_OF_DAY = 0x29,
273271
/*
274-
u16 command
275272
u16 time (0-23999)
276273
Added in a later version:
277274
f1000 time_speed
@@ -281,14 +278,12 @@ enum ToClientCommand
281278

282279
TOCLIENT_CHAT_MESSAGE = 0x30,
283280
/*
284-
u16 command
285281
u16 length
286282
wstring message
287283
*/
288284

289285
TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD = 0x31,
290286
/*
291-
u16 command
292287
u16 count of removed objects
293288
for all removed objects {
294289
u16 id
@@ -304,7 +299,6 @@ enum ToClientCommand
304299

305300
TOCLIENT_ACTIVE_OBJECT_MESSAGES = 0x32,
306301
/*
307-
u16 command
308302
for all objects
309303
{
310304
u16 id
@@ -315,28 +309,24 @@ enum ToClientCommand
315309

316310
TOCLIENT_HP = 0x33,
317311
/*
318-
u16 command
319312
u8 hp
320313
*/
321314

322315
TOCLIENT_MOVE_PLAYER = 0x34,
323316
/*
324-
u16 command
325317
v3f1000 player position
326318
f1000 player pitch
327319
f1000 player yaw
328320
*/
329321

330322
TOCLIENT_ACCESS_DENIED_LEGACY = 0x35,
331323
/*
332-
u16 command
333324
u16 reason_length
334325
wstring reason
335326
*/
336327

337328
TOCLIENT_PLAYERITEM = 0x36, // Obsolete
338329
/*
339-
u16 command
340330
u16 count of player items
341331
for all player items {
342332
u16 peer id
@@ -347,14 +337,12 @@ enum ToClientCommand
347337

348338
TOCLIENT_DEATHSCREEN = 0x37,
349339
/*
350-
u16 command
351340
u8 bool set camera point target
352341
v3f1000 camera point target (to point the death cause or whatever)
353342
*/
354343

355344
TOCLIENT_MEDIA = 0x38,
356345
/*
357-
u16 command
358346
u16 total number of texture bunches
359347
u16 index of this bunch
360348
u32 number of files in this bunch
@@ -370,29 +358,25 @@ enum ToClientCommand
370358

371359
TOCLIENT_TOOLDEF = 0x39,
372360
/*
373-
u16 command
374361
u32 length of the next item
375362
serialized ToolDefManager
376363
*/
377364

378365
TOCLIENT_NODEDEF = 0x3a,
379366
/*
380-
u16 command
381367
u32 length of the next item
382368
serialized NodeDefManager
383369
*/
384370

385371
TOCLIENT_CRAFTITEMDEF = 0x3b,
386372
/*
387-
u16 command
388373
u32 length of the next item
389374
serialized CraftiItemDefManager
390375
*/
391376

392377
TOCLIENT_ANNOUNCE_MEDIA = 0x3c,
393378

394379
/*
395-
u16 command
396380
u32 number of files
397381
for each texture {
398382
u16 length of name
@@ -404,14 +388,12 @@ enum ToClientCommand
404388

405389
TOCLIENT_ITEMDEF = 0x3d,
406390
/*
407-
u16 command
408391
u32 length of next item
409392
serialized ItemDefManager
410393
*/
411394

412395
TOCLIENT_PLAY_SOUND = 0x3f,
413396
/*
414-
u16 command
415397
s32 sound_id
416398
u16 len
417399
u8[len] sound name
@@ -424,13 +406,11 @@ enum ToClientCommand
424406

425407
TOCLIENT_STOP_SOUND = 0x40,
426408
/*
427-
u16 command
428409
s32 sound_id
429410
*/
430411

431412
TOCLIENT_PRIVILEGES = 0x41,
432413
/*
433-
u16 command
434414
u16 number of privileges
435415
for each privilege
436416
u16 len
@@ -439,7 +419,6 @@ enum ToClientCommand
439419

440420
TOCLIENT_INVENTORY_FORMSPEC = 0x42,
441421
/*
442-
u16 command
443422
u32 len
444423
u8[len] formspec
445424
*/
@@ -463,7 +442,6 @@ enum ToClientCommand
463442

464443
TOCLIENT_MOVEMENT = 0x45,
465444
/*
466-
u16 command
467445
f1000 movement_acceleration_default
468446
f1000 movement_acceleration_air
469447
f1000 movement_acceleration_fast
@@ -480,7 +458,6 @@ enum ToClientCommand
480458

481459
TOCLIENT_SPAWN_PARTICLE = 0x46,
482460
/*
483-
u16 command
484461
v3f1000 pos
485462
v3f1000 velocity
486463
v3f1000 acceleration
@@ -494,7 +471,6 @@ enum ToClientCommand
494471

495472
TOCLIENT_ADD_PARTICLESPAWNER = 0x47,
496473
/*
497-
u16 command
498474
u16 amount
499475
f1000 spawntime
500476
v3f1000 minpos
@@ -516,13 +492,11 @@ enum ToClientCommand
516492

517493
TOCLIENT_DELETE_PARTICLESPAWNER_LEGACY = 0x48,
518494
/*
519-
u16 command
520495
u16 id
521496
*/
522497

523498
TOCLIENT_HUDADD = 0x49,
524499
/*
525-
u16 command
526500
u32 id
527501
u8 type
528502
v2f1000 pos
@@ -542,13 +516,11 @@ enum ToClientCommand
542516

543517
TOCLIENT_HUDRM = 0x4a,
544518
/*
545-
u16 command
546519
u32 id
547520
*/
548521

549522
TOCLIENT_HUDCHANGE = 0x4b,
550523
/*
551-
u16 command
552524
u32 id
553525
u8 stat
554526
[v2f1000 data |
@@ -559,28 +531,24 @@ enum ToClientCommand
559531

560532
TOCLIENT_HUD_SET_FLAGS = 0x4c,
561533
/*
562-
u16 command
563534
u32 flags
564535
u32 mask
565536
*/
566537

567538
TOCLIENT_HUD_SET_PARAM = 0x4d,
568539
/*
569-
u16 command
570540
u16 param
571541
u16 len
572542
u8[len] value
573543
*/
574544

575545
TOCLIENT_BREATH = 0x4e,
576546
/*
577-
u16 command
578547
u16 breath
579548
*/
580549

581550
TOCLIENT_SET_SKY = 0x4f,
582551
/*
583-
u16 command
584552
u8[4] color (ARGB)
585553
u8 len
586554
u8[len] type
@@ -592,14 +560,12 @@ enum ToClientCommand
592560

593561
TOCLIENT_OVERRIDE_DAY_NIGHT_RATIO = 0x50,
594562
/*
595-
u16 command
596563
u8 do_override (boolean)
597564
u16 day-night ratio 0...65535
598565
*/
599566

600567
TOCLIENT_LOCAL_PLAYER_ANIMATIONS = 0x51,
601568
/*
602-
u16 command
603569
v2s32 stand/idle
604570
v2s32 walk
605571
v2s32 dig
@@ -609,22 +575,19 @@ enum ToClientCommand
609575

610576
TOCLIENT_EYE_OFFSET = 0x52,
611577
/*
612-
u16 command
613578
v3f1000 first
614579
v3f1000 third
615580
*/
616581

617582
TOCLIENT_DELETE_PARTICLESPAWNER = 0x53,
618583
/*
619-
u16 command
620584
u32 id
621585
*/
622586

623587
TOCLIENT_SRP_BYTES_S_B = 0x60,
624588
/*
625589
Belonging to AUTH_MECHANISM_LEGACY_PASSWORD and AUTH_MECHANISM_SRP.
626590
627-
u16 command
628591
std::string bytes_s
629592
std::string bytes_B
630593
*/
@@ -735,7 +698,6 @@ enum ToServerCommand
735698

736699
TOSERVER_SIGNTEXT = 0x30, // Old signs, obsolete
737700
/*
738-
u16 command
739701
v3s16 blockpos
740702
s16 id
741703
u16 textlen
@@ -749,14 +711,12 @@ enum ToServerCommand
749711

750712
TOSERVER_CHAT_MESSAGE = 0x32,
751713
/*
752-
u16 command
753714
u16 length
754715
wstring message
755716
*/
756717

757718
TOSERVER_SIGNNODETEXT = 0x33, // obsolete
758719
/*
759-
u16 command
760720
v3s16 p
761721
u16 textlen
762722
textdata
@@ -773,7 +733,6 @@ enum ToServerCommand
773733

774734
TOSERVER_DAMAGE = 0x35,
775735
/*
776-
u16 command
777736
u8 amount
778737
*/
779738

@@ -818,14 +777,12 @@ enum ToServerCommand
818777

819778
TOSERVER_REMOVED_SOUNDS = 0x3a,
820779
/*
821-
u16 command
822780
u16 len
823781
s32[len] sound_id
824782
*/
825783

826784
TOSERVER_NODEMETA_FIELDS = 0x3b,
827785
/*
828-
u16 command
829786
v3s16 p
830787
u16 len
831788
u8[len] form name (reserved for future use)
@@ -839,7 +796,6 @@ enum ToServerCommand
839796

840797
TOSERVER_INVENTORY_FIELDS = 0x3c,
841798
/*
842-
u16 command
843799
u16 len
844800
u8[len] form name (reserved for future use)
845801
u16 number of fields
@@ -852,7 +808,6 @@ enum ToServerCommand
852808

853809
TOSERVER_REQUEST_MEDIA = 0x40,
854810
/*
855-
u16 command
856811
u16 number of files requested
857812
for each file {
858813
u16 length of name
@@ -862,12 +817,11 @@ enum ToServerCommand
862817

863818
TOSERVER_RECEIVED_MEDIA = 0x41,
864819
/*
865-
u16 command
820+
<no payload data>
866821
*/
867822

868823
TOSERVER_BREATH = 0x42,
869824
/*
870-
u16 command
871825
u16 breath
872826
*/
873827

0 commit comments

Comments
 (0)
Please sign in to comment.