rrplug 4.2.1

framework for R2Northstar plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
/* automatically generated by rust-bindgen 0.63.0 */

#[doc(inline)]
pub use root::*;

#[doc(hidden)]
#[allow(
    non_snake_case,
    non_camel_case_types,
    non_upper_case_globals,
    clippy::missing_safety_doc,
    clippy::too_many_arguments
)]
pub mod root {
    #[allow(unused_imports)]
    use self::super::root;
    use crate::bindings::cvar::command::ConCommandBase;
    pub const COMMAND_COMPLETION_MAXITEMS: u32 = 64;
    pub const COMMAND_COMPLETION_ITEM_LENGTH: u32 = 128;
    pub const FCVAR_NONE: u32 = 0;
    pub const FCVAR_UNREGISTERED: u32 = 1;
    pub const FCVAR_DEVELOPMENTONLY: u32 = 2;
    pub const FCVAR_GAMEDLL: u32 = 4;
    pub const FCVAR_CLIENTDLL: u32 = 8;
    pub const FCVAR_HIDDEN: u32 = 16;
    pub const FCVAR_PROTECTED: u32 = 32;
    pub const FCVAR_SPONLY: u32 = 64;
    pub const FCVAR_ARCHIVE: u32 = 128;
    pub const FCVAR_NOTIFY: u32 = 256;
    pub const FCVAR_USERINFO: u32 = 512;
    pub const FCVAR_PRINTABLEONLY: u32 = 1024;
    pub const FCVAR_GAMEDLL_FOR_REMOTE_CLIENTS: u32 = 1024;
    pub const FCVAR_UNLOGGED: u32 = 2048;
    pub const FCVAR_NEVER_AS_STRING: u32 = 4096;
    pub const FCVAR_REPLICATED: u32 = 8192;
    pub const FCVAR_CHEAT: u32 = 16384;
    pub const FCVAR_SS: u32 = 32768;
    pub const FCVAR_DEMO: u32 = 65536;
    pub const FCVAR_DONTRECORD: u32 = 131072;
    pub const FCVAR_SS_ADDED: u32 = 262144;
    pub const FCVAR_RELEASE: u32 = 524288;
    pub const FCVAR_RELOAD_MATERIALS: u32 = 1048576;
    pub const FCVAR_RELOAD_TEXTURES: u32 = 2097152;
    pub const FCVAR_NOT_CONNECTED: u32 = 4194304;
    pub const FCVAR_MATERIAL_SYSTEM_THREAD: u32 = 8388608;
    pub const FCVAR_ARCHIVE_PLAYERPROFILE: u32 = 16777216;
    pub const FCVAR_SERVER_CAN_EXECUTE: u32 = 268435456;
    pub const FCVAR_SERVER_CANNOT_QUERY: u32 = 536870912;
    pub const FCVAR_CLIENTCMD_CAN_EXECUTE: u32 = 1073741824;
    pub const FCVAR_ACCESSIBLE_FROM_THREADS: u32 = 33554432;
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct color24 {
        pub r: u8,
        pub g: u8,
        pub b: u8,
    }
    #[test]
    fn bindgen_test_layout_color24() {
        const UNINIT: ::std::mem::MaybeUninit<color24> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<color24>(),
            3usize,
            concat!("Size of: ", stringify!(color24))
        );
        assert_eq!(
            ::std::mem::align_of::<color24>(),
            1usize,
            concat!("Alignment of ", stringify!(color24))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(color24),
                "::",
                stringify!(r)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize },
            1usize,
            concat!(
                "Offset of field: ",
                stringify!(color24),
                "::",
                stringify!(g)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize },
            2usize,
            concat!(
                "Offset of field: ",
                stringify!(color24),
                "::",
                stringify!(b)
            )
        );
    }
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct color32_s {
        pub r: u8,
        pub g: u8,
        pub b: u8,
        pub a: u8,
    }
    #[test]
    fn bindgen_test_layout_color32_s() {
        const UNINIT: ::std::mem::MaybeUninit<color32_s> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<color32_s>(),
            4usize,
            concat!("Size of: ", stringify!(color32_s))
        );
        assert_eq!(
            ::std::mem::align_of::<color32_s>(),
            1usize,
            concat!("Alignment of ", stringify!(color32_s))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(color32_s),
                "::",
                stringify!(r)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize },
            1usize,
            concat!(
                "Offset of field: ",
                stringify!(color32_s),
                "::",
                stringify!(g)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize },
            2usize,
            concat!(
                "Offset of field: ",
                stringify!(color32_s),
                "::",
                stringify!(b)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).a) as usize - ptr as usize },
            3usize,
            concat!(
                "Offset of field: ",
                stringify!(color32_s),
                "::",
                stringify!(a)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}?asInt@color32_s@@QEAAPEAIXZ"]
        pub fn color32_s_asInt(this: *mut root::color32_s) -> *mut ::std::os::raw::c_uint;
    }
    extern "C" {
        #[link_name = "\u{1}?asInt@color32_s@@QEBAPEBIXZ"]
        pub fn color32_s_asInt1(this: *const root::color32_s) -> *const ::std::os::raw::c_uint;
    }
    extern "C" {
        #[link_name = "\u{1}?Copy@color32_s@@QEAAXAEBU1@@Z"]
        pub fn color32_s_Copy(this: *mut root::color32_s, rhs: *const root::color32_s);
    }
    impl color32_s {
        #[inline]
        pub unsafe fn asInt(&mut self) -> *mut ::std::os::raw::c_uint {
            color32_s_asInt(self)
        }
        #[inline]
        pub unsafe fn asInt1(&self) -> *const ::std::os::raw::c_uint {
            color32_s_asInt1(self)
        }
        #[inline]
        pub unsafe fn Copy(&mut self, rhs: *const root::color32_s) {
            color32_s_Copy(self, rhs)
        }
    }
    pub type color32 = root::color32_s;
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct SourceColor {
        pub R: ::std::os::raw::c_uchar,
        pub G: ::std::os::raw::c_uchar,
        pub B: ::std::os::raw::c_uchar,
        pub A: ::std::os::raw::c_uchar,
    }
    #[test]
    fn bindgen_test_layout_SourceColor() {
        const UNINIT: ::std::mem::MaybeUninit<SourceColor> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<SourceColor>(),
            4usize,
            concat!("Size of: ", stringify!(SourceColor))
        );
        assert_eq!(
            ::std::mem::align_of::<SourceColor>(),
            1usize,
            concat!("Alignment of ", stringify!(SourceColor))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).R) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(SourceColor),
                "::",
                stringify!(R)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).G) as usize - ptr as usize },
            1usize,
            concat!(
                "Offset of field: ",
                stringify!(SourceColor),
                "::",
                stringify!(G)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).B) as usize - ptr as usize },
            2usize,
            concat!(
                "Offset of field: ",
                stringify!(SourceColor),
                "::",
                stringify!(B)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).A) as usize - ptr as usize },
            3usize,
            concat!(
                "Offset of field: ",
                stringify!(SourceColor),
                "::",
                stringify!(A)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}??0SourceColor@@QEAA@EEEE@Z"]
        pub fn SourceColor_SourceColor(
            this: *mut root::SourceColor,
            r: ::std::os::raw::c_uchar,
            g: ::std::os::raw::c_uchar,
            b: ::std::os::raw::c_uchar,
            a: ::std::os::raw::c_uchar,
        );
    }
    extern "C" {
        #[link_name = "\u{1}??0SourceColor@@QEAA@XZ"]
        pub fn SourceColor_SourceColor1(this: *mut root::SourceColor);
    }
    impl SourceColor {
        #[inline]
        pub unsafe fn new(
            r: ::std::os::raw::c_uchar,
            g: ::std::os::raw::c_uchar,
            b: ::std::os::raw::c_uchar,
            a: ::std::os::raw::c_uchar,
        ) -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            SourceColor_SourceColor(__bindgen_tmp.as_mut_ptr(), r, g, b, a);
            __bindgen_tmp.assume_init()
        }
        #[inline]
        pub unsafe fn new1() -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            SourceColor_SourceColor1(__bindgen_tmp.as_mut_ptr());
            __bindgen_tmp.assume_init()
        }
    }
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct Color {
        pub _color: [::std::os::raw::c_uchar; 4usize],
    }
    #[test]
    fn bindgen_test_layout_Color() {
        const UNINIT: ::std::mem::MaybeUninit<Color> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<Color>(),
            4usize,
            concat!("Size of: ", stringify!(Color))
        );
        assert_eq!(
            ::std::mem::align_of::<Color>(),
            1usize,
            concat!("Alignment of ", stringify!(Color))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr)._color) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(Color),
                "::",
                stringify!(_color)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}?SetColor@Color@@QEAAXHHHH@Z"]
        pub fn Color_SetColor(
            this: *mut root::Color,
            _r: ::std::os::raw::c_int,
            _g: ::std::os::raw::c_int,
            _b: ::std::os::raw::c_int,
            _a: ::std::os::raw::c_int,
        );
    }
    extern "C" {
        #[link_name = "\u{1}?GetColor@Color@@QEBAXAEAH000@Z"]
        pub fn Color_GetColor(
            this: *const root::Color,
            _r: *mut ::std::os::raw::c_int,
            _g: *mut ::std::os::raw::c_int,
            _b: *mut ::std::os::raw::c_int,
            _a: *mut ::std::os::raw::c_int,
        );
    }
    extern "C" {
        #[link_name = "\u{1}?GetValue@Color@@QEBAHH@Z"]
        pub fn Color_GetValue(
            this: *const root::Color,
            index: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?SetRawColor@Color@@QEAAXH@Z"]
        pub fn Color_SetRawColor(this: *mut root::Color, color32: ::std::os::raw::c_int);
    }
    extern "C" {
        #[link_name = "\u{1}?GetRawColor@Color@@QEBAHXZ"]
        pub fn Color_GetRawColor(this: *const root::Color) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?r@Color@@QEBAHXZ"]
        pub fn Color_r(this: *const root::Color) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?g@Color@@QEBAHXZ"]
        pub fn Color_g(this: *const root::Color) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?b@Color@@QEBAHXZ"]
        pub fn Color_b(this: *const root::Color) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?a@Color@@QEBAHXZ"]
        pub fn Color_a(this: *const root::Color) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?ToColor32@Color@@QEBA?AUcolor32_s@@XZ"]
        pub fn Color_ToColor32(this: *const root::Color) -> root::color32;
    }
    extern "C" {
        #[link_name = "\u{1}?ToSourceColor@Color@@QEAA?AUSourceColor@@XZ"]
        pub fn Color_ToSourceColor(this: *mut root::Color) -> root::SourceColor;
    }
    extern "C" {
        #[link_name = "\u{1}??0Color@@QEAA@HHHH@Z"]
        pub fn Color_Color(
            this: *mut root::Color,
            r: ::std::os::raw::c_int,
            g: ::std::os::raw::c_int,
            b: ::std::os::raw::c_int,
            a: ::std::os::raw::c_int,
        );
    }
    impl Color {
        #[inline]
        pub unsafe fn SetColor(
            &mut self,
            _r: ::std::os::raw::c_int,
            _g: ::std::os::raw::c_int,
            _b: ::std::os::raw::c_int,
            _a: ::std::os::raw::c_int,
        ) {
            Color_SetColor(self, _r, _g, _b, _a)
        }
        #[inline]
        pub unsafe fn GetColor(
            &self,
            _r: *mut ::std::os::raw::c_int,
            _g: *mut ::std::os::raw::c_int,
            _b: *mut ::std::os::raw::c_int,
            _a: *mut ::std::os::raw::c_int,
        ) {
            Color_GetColor(self, _r, _g, _b, _a)
        }
        #[inline]
        pub unsafe fn GetValue(&self, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int {
            Color_GetValue(self, index)
        }
        #[inline]
        pub unsafe fn SetRawColor(&mut self, color32: ::std::os::raw::c_int) {
            Color_SetRawColor(self, color32)
        }
        #[inline]
        pub unsafe fn GetRawColor(&self) -> ::std::os::raw::c_int {
            Color_GetRawColor(self)
        }
        #[inline]
        pub unsafe fn r(&self) -> ::std::os::raw::c_int {
            Color_r(self)
        }
        #[inline]
        pub unsafe fn g(&self) -> ::std::os::raw::c_int {
            Color_g(self)
        }
        #[inline]
        pub unsafe fn b(&self) -> ::std::os::raw::c_int {
            Color_b(self)
        }
        #[inline]
        pub unsafe fn a(&self) -> ::std::os::raw::c_int {
            Color_a(self)
        }
        #[inline]
        pub unsafe fn ToColor32(&self) -> root::color32 {
            Color_ToColor32(self)
        }
        #[inline]
        pub unsafe fn ToSourceColor(&mut self) -> root::SourceColor {
            Color_ToSourceColor(self)
        }
        #[inline]
        pub unsafe fn new(
            r: ::std::os::raw::c_int,
            g: ::std::os::raw::c_int,
            b: ::std::os::raw::c_int,
            a: ::std::os::raw::c_int,
        ) -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            Color_Color(__bindgen_tmp.as_mut_ptr(), r, g, b, a);
            __bindgen_tmp.assume_init()
        }
    }
    pub mod NS {
        #[allow(unused_imports)]
        use self::super::super::root;
        pub mod Colors {
            #[allow(unused_imports)]
            use self::super::super::super::root;
            extern "C" {
                #[link_name = "\u{1}?SCRIPT_UI@Colors@NS@@3VColor@@A"]
                pub static mut SCRIPT_UI: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?SCRIPT_CL@Colors@NS@@3VColor@@A"]
                pub static mut SCRIPT_CL: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?SCRIPT_SV@Colors@NS@@3VColor@@A"]
                pub static mut SCRIPT_SV: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?NATIVE_UI@Colors@NS@@3VColor@@A"]
                pub static mut NATIVE_UI: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?NATIVE_CL@Colors@NS@@3VColor@@A"]
                pub static mut NATIVE_CL: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?NATIVE_SV@Colors@NS@@3VColor@@A"]
                pub static mut NATIVE_SV: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?NATIVE_ENGINE@Colors@NS@@3VColor@@A"]
                pub static mut NATIVE_ENGINE: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?FILESYSTEM@Colors@NS@@3VColor@@A"]
                pub static mut FILESYSTEM: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?RPAK@Colors@NS@@3VColor@@A"]
                pub static mut RPAK: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?NORTHSTAR@Colors@NS@@3VColor@@A"]
                pub static mut NORTHSTAR: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?ECHO@Colors@NS@@3VColor@@A"]
                pub static mut ECHO: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?PLUGINSYS@Colors@NS@@3VColor@@A"]
                pub static mut PLUGINSYS: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?PLUGIN@Colors@NS@@3VColor@@A"]
                pub static mut PLUGIN: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?TRACE@Colors@NS@@3VColor@@A"]
                pub static mut TRACE: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?DEBUG@Colors@NS@@3VColor@@A"]
                pub static mut DEBUG: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?INFO@Colors@NS@@3VColor@@A"]
                pub static mut INFO: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?WARN@Colors@NS@@3VColor@@A"]
                pub static mut WARN: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?ERR@Colors@NS@@3VColor@@A"]
                pub static mut ERR: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?CRIT@Colors@NS@@3VColor@@A"]
                pub static mut CRIT: root::Color;
            }
            extern "C" {
                #[link_name = "\u{1}?OFF@Colors@NS@@3VColor@@A"]
                pub static mut OFF: root::Color;
            }
        }
    }
    pub type FnChangeCallback_t = ::std::option::Option<
        unsafe extern "C" fn(
            var: *mut root::ConVar,
            pOldValue: *const ::std::os::raw::c_char,
            flOldValue: f32,
        ),
    >;
    #[repr(C)]
    pub struct ConVar {
        pub m_ConCommandBase: root::ConCommandBase,
        pub m_pszDefaultValue: *const ::std::os::raw::c_char,
        pub m_Value: root::ConVar_CVValue_t,
        pub m_bHasMin: bool,
        pub m_fMinVal: f32,
        pub m_bHasMax: bool,
        pub m_fMaxVal: f32,
        pub m_pMalloc: *mut ::std::os::raw::c_void,
        pub m_pPad80: [::std::os::raw::c_char; 10usize],
    }
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct ConVar_CVValue_t {
        pub m_pszString: *const ::std::os::raw::c_char,
        pub m_iStringLength: i64,
        pub m_fValue: f32,
        pub m_nValue: ::std::os::raw::c_int,
    }
    #[test]
    fn bindgen_test_layout_ConVar_CVValue_t() {
        const UNINIT: ::std::mem::MaybeUninit<ConVar_CVValue_t> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<ConVar_CVValue_t>(),
            24usize,
            concat!("Size of: ", stringify!(ConVar_CVValue_t))
        );
        assert_eq!(
            ::std::mem::align_of::<ConVar_CVValue_t>(),
            8usize,
            concat!("Alignment of ", stringify!(ConVar_CVValue_t))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pszString) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar_CVValue_t),
                "::",
                stringify!(m_pszString)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_iStringLength) as usize - ptr as usize },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar_CVValue_t),
                "::",
                stringify!(m_iStringLength)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_fValue) as usize - ptr as usize },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar_CVValue_t),
                "::",
                stringify!(m_fValue)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_nValue) as usize - ptr as usize },
            20usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar_CVValue_t),
                "::",
                stringify!(m_nValue)
            )
        );
    }
    #[test]
    fn bindgen_test_layout_ConVar() {
        const UNINIT: ::std::mem::MaybeUninit<ConVar> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<ConVar>(),
            136usize,
            concat!("Size of: ", stringify!(ConVar))
        );
        assert_eq!(
            ::std::mem::align_of::<ConVar>(),
            8usize,
            concat!("Alignment of ", stringify!(ConVar))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_ConCommandBase) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_ConCommandBase)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pszDefaultValue) as usize - ptr as usize },
            64usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_pszDefaultValue)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_Value) as usize - ptr as usize },
            72usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_Value)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_bHasMin) as usize - ptr as usize },
            96usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_bHasMin)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_fMinVal) as usize - ptr as usize },
            100usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_fMinVal)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_bHasMax) as usize - ptr as usize },
            104usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_bHasMax)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_fMaxVal) as usize - ptr as usize },
            108usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_fMaxVal)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pMalloc) as usize - ptr as usize },
            112usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_pMalloc)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pPad80) as usize - ptr as usize },
            120usize,
            concat!(
                "Offset of field: ",
                stringify!(ConVar),
                "::",
                stringify!(m_pPad80)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}?GetBaseName@ConVar@@QEBAPEBDXZ"]
        pub fn ConVar_GetBaseName(this: *const root::ConVar) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?GetHelpText@ConVar@@QEBAPEBDXZ"]
        pub fn ConVar_GetHelpText(this: *const root::ConVar) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?AddFlags@ConVar@@QEAAXH@Z"]
        pub fn ConVar_AddFlags(this: *mut root::ConVar, nFlags: ::std::os::raw::c_int);
    }
    extern "C" {
        #[link_name = "\u{1}?RemoveFlags@ConVar@@QEAAXH@Z"]
        pub fn ConVar_RemoveFlags(this: *mut root::ConVar, nFlags: ::std::os::raw::c_int);
    }
    extern "C" {
        #[link_name = "\u{1}?GetBool@ConVar@@QEBA_NXZ"]
        pub fn ConVar_GetBool(this: *const root::ConVar) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?GetFloat@ConVar@@QEBAMXZ"]
        pub fn ConVar_GetFloat(this: *const root::ConVar) -> f32;
    }
    extern "C" {
        #[link_name = "\u{1}?GetInt@ConVar@@QEBAHXZ"]
        pub fn ConVar_GetInt(this: *const root::ConVar) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?GetColor@ConVar@@QEBA?AVColor@@XZ"]
        pub fn ConVar_GetColor(this: *const root::ConVar) -> root::Color;
    }
    extern "C" {
        #[link_name = "\u{1}?GetString@ConVar@@QEBAPEBDXZ"]
        pub fn ConVar_GetString(this: *const root::ConVar) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?GetMin@ConVar@@QEBA_NAEAM@Z"]
        pub fn ConVar_GetMin(this: *const root::ConVar, flMinValue: *mut f32) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?GetMax@ConVar@@QEBA_NAEAM@Z"]
        pub fn ConVar_GetMax(this: *const root::ConVar, flMaxValue: *mut f32) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?GetMinValue@ConVar@@QEBAMXZ"]
        pub fn ConVar_GetMinValue(this: *const root::ConVar) -> f32;
    }
    extern "C" {
        #[link_name = "\u{1}?GetMaxValue@ConVar@@QEBAMXZ"]
        pub fn ConVar_GetMaxValue(this: *const root::ConVar) -> f32;
    }
    extern "C" {
        #[link_name = "\u{1}?HasMin@ConVar@@QEBA_NXZ"]
        pub fn ConVar_HasMin(this: *const root::ConVar) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?HasMax@ConVar@@QEBA_NXZ"]
        pub fn ConVar_HasMax(this: *const root::ConVar) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?SetValue@ConVar@@QEAAXH@Z"]
        pub fn ConVar_SetValue(this: *mut root::ConVar, nValue: ::std::os::raw::c_int);
    }
    extern "C" {
        #[link_name = "\u{1}?SetValue@ConVar@@QEAAXM@Z"]
        pub fn ConVar_SetValue1(this: *mut root::ConVar, flValue: f32);
    }
    extern "C" {
        #[link_name = "\u{1}?SetValue@ConVar@@QEAAXPEBD@Z"]
        pub fn ConVar_SetValue2(this: *mut root::ConVar, pszValue: *const ::std::os::raw::c_char);
    }
    extern "C" {
        #[link_name = "\u{1}?SetValue@ConVar@@QEAAXVColor@@@Z"]
        pub fn ConVar_SetValue3(this: *mut root::ConVar, clValue: root::Color);
    }
    extern "C" {
        #[link_name = "\u{1}?ChangeStringValue@ConVar@@QEAAXPEBDM@Z"]
        pub fn ConVar_ChangeStringValue(
            this: *mut root::ConVar,
            pszTempValue: *const ::std::os::raw::c_char,
            flOldValue: f32,
        );
    }
    extern "C" {
        #[link_name = "\u{1}?SetColorFromString@ConVar@@QEAA_NPEBD@Z"]
        pub fn ConVar_SetColorFromString(
            this: *mut root::ConVar,
            pszValue: *const ::std::os::raw::c_char,
        ) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?ClampValue@ConVar@@QEAA_NAEAM@Z"]
        pub fn ConVar_ClampValue(this: *mut root::ConVar, value: *mut f32) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?IsRegistered@ConVar@@QEBA_NXZ"]
        pub fn ConVar_IsRegistered(this: *const root::ConVar) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?IsCommand@ConVar@@QEBA_NXZ"]
        pub fn ConVar_IsCommand(this: *const root::ConVar) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?IsFlagSet@ConVar@@QEBA_NH@Z"]
        pub fn ConVar_IsFlagSet(this: *const root::ConVar, nFlags: ::std::os::raw::c_int) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}??0ConVar@@QEAA@XZ"]
        pub fn ConVar_ConVar(this: *mut root::ConVar);
    }
    extern "C" {
        #[link_name = "\u{1}??0ConVar@@QEAA@PEBD0H0@Z"]
        pub fn ConVar_ConVar1(
            this: *mut root::ConVar,
            pszName: *const ::std::os::raw::c_char,
            pszDefaultValue: *const ::std::os::raw::c_char,
            nFlags: ::std::os::raw::c_int,
            pszHelpString: *const ::std::os::raw::c_char,
        );
    }
    extern "C" {
        #[link_name = "\u{1}??0ConVar@@QEAA@PEBD0H0_NM1MP6AXPEAV0@0M@Z@Z"]
        pub fn ConVar_ConVar2(
            this: *mut root::ConVar,
            pszName: *const ::std::os::raw::c_char,
            pszDefaultValue: *const ::std::os::raw::c_char,
            nFlags: ::std::os::raw::c_int,
            pszHelpString: *const ::std::os::raw::c_char,
            bMin: bool,
            fMin: f32,
            bMax: bool,
            fMax: f32,
            pCallback: root::FnChangeCallback_t,
        );
    }
    extern "C" {
        #[link_name = "\u{1}??_DConVar@@QEAAXXZ"]
        pub fn ConVar_ConVar_destructor(this: *mut root::ConVar);
    }
    impl ConVar {
        #[inline]
        pub unsafe fn GetBaseName(&self) -> *const ::std::os::raw::c_char {
            ConVar_GetBaseName(self)
        }
        #[inline]
        pub unsafe fn GetHelpText(&self) -> *const ::std::os::raw::c_char {
            ConVar_GetHelpText(self)
        }
        #[inline]
        pub unsafe fn AddFlags(&mut self, nFlags: ::std::os::raw::c_int) {
            ConVar_AddFlags(self, nFlags)
        }
        #[inline]
        pub unsafe fn RemoveFlags(&mut self, nFlags: ::std::os::raw::c_int) {
            ConVar_RemoveFlags(self, nFlags)
        }
        #[inline]
        pub unsafe fn GetBool(&self) -> bool {
            ConVar_GetBool(self)
        }
        #[inline]
        pub unsafe fn GetFloat(&self) -> f32 {
            ConVar_GetFloat(self)
        }
        #[inline]
        pub unsafe fn GetInt(&self) -> ::std::os::raw::c_int {
            ConVar_GetInt(self)
        }
        #[inline]
        pub unsafe fn GetColor(&self) -> root::Color {
            ConVar_GetColor(self)
        }
        #[inline]
        pub unsafe fn GetString(&self) -> *const ::std::os::raw::c_char {
            ConVar_GetString(self)
        }
        #[inline]
        pub unsafe fn GetMin(&self, flMinValue: *mut f32) -> bool {
            ConVar_GetMin(self, flMinValue)
        }
        #[inline]
        pub unsafe fn GetMax(&self, flMaxValue: *mut f32) -> bool {
            ConVar_GetMax(self, flMaxValue)
        }
        #[inline]
        pub unsafe fn GetMinValue(&self) -> f32 {
            ConVar_GetMinValue(self)
        }
        #[inline]
        pub unsafe fn GetMaxValue(&self) -> f32 {
            ConVar_GetMaxValue(self)
        }
        #[inline]
        pub unsafe fn HasMin(&self) -> bool {
            ConVar_HasMin(self)
        }
        #[inline]
        pub unsafe fn HasMax(&self) -> bool {
            ConVar_HasMax(self)
        }
        #[inline]
        pub unsafe fn SetValue(&mut self, nValue: ::std::os::raw::c_int) {
            ConVar_SetValue(self, nValue)
        }
        #[inline]
        pub unsafe fn SetValue1(&mut self, flValue: f32) {
            ConVar_SetValue1(self, flValue)
        }
        #[inline]
        pub unsafe fn SetValue2(&mut self, pszValue: *const ::std::os::raw::c_char) {
            ConVar_SetValue2(self, pszValue)
        }
        #[inline]
        pub unsafe fn SetValue3(&mut self, clValue: root::Color) {
            ConVar_SetValue3(self, clValue)
        }
        #[inline]
        pub unsafe fn ChangeStringValue(
            &mut self,
            pszTempValue: *const ::std::os::raw::c_char,
            flOldValue: f32,
        ) {
            ConVar_ChangeStringValue(self, pszTempValue, flOldValue)
        }
        #[inline]
        pub unsafe fn SetColorFromString(
            &mut self,
            pszValue: *const ::std::os::raw::c_char,
        ) -> bool {
            ConVar_SetColorFromString(self, pszValue)
        }
        #[inline]
        pub unsafe fn ClampValue(&mut self, value: *mut f32) -> bool {
            ConVar_ClampValue(self, value)
        }
        #[inline]
        pub unsafe fn IsRegistered(&self) -> bool {
            ConVar_IsRegistered(self)
        }
        #[inline]
        pub unsafe fn IsCommand(&self) -> bool {
            ConVar_IsCommand(self)
        }
        #[inline]
        pub unsafe fn IsFlagSet(&self, nFlags: ::std::os::raw::c_int) -> bool {
            ConVar_IsFlagSet(self, nFlags)
        }
        #[inline]
        pub unsafe fn new() -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            ConVar_ConVar(__bindgen_tmp.as_mut_ptr());
            __bindgen_tmp.assume_init()
        }
        #[inline]
        pub unsafe fn new1(
            pszName: *const ::std::os::raw::c_char,
            pszDefaultValue: *const ::std::os::raw::c_char,
            nFlags: ::std::os::raw::c_int,
            pszHelpString: *const ::std::os::raw::c_char,
        ) -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            ConVar_ConVar1(
                __bindgen_tmp.as_mut_ptr(),
                pszName,
                pszDefaultValue,
                nFlags,
                pszHelpString,
            );
            __bindgen_tmp.assume_init()
        }
        #[inline]
        pub unsafe fn new2(
            pszName: *const ::std::os::raw::c_char,
            pszDefaultValue: *const ::std::os::raw::c_char,
            nFlags: ::std::os::raw::c_int,
            pszHelpString: *const ::std::os::raw::c_char,
            bMin: bool,
            fMin: f32,
            bMax: bool,
            fMax: f32,
            pCallback: root::FnChangeCallback_t,
        ) -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            ConVar_ConVar2(
                __bindgen_tmp.as_mut_ptr(),
                pszName,
                pszDefaultValue,
                nFlags,
                pszHelpString,
                bMin,
                fMin,
                bMax,
                fMax,
                pCallback,
            );
            __bindgen_tmp.assume_init()
        }
        #[inline]
        pub unsafe fn destruct(&mut self) {
            ConVar_ConVar_destructor(self)
        }
    }
    pub type ConVarRegisterType = unsafe extern "C" fn(
        pConVar: *mut root::ConVar,
        pszName: *const ::std::os::raw::c_char,
        pszDefaultValue: *const ::std::os::raw::c_char,
        nFlags: ::std::os::raw::c_int,
        pszHelpString: *const ::std::os::raw::c_char,
        bMin: bool,
        fMin: f32,
        bMax: bool,
        fMax: f32,
        pCallback: FnChangeCallback_t,
    );
    extern "C" {
        #[link_name = "\u{1}?conVarRegister@@3P6AXPEAVConVar@@PEBD1H1_NM2MPEAX@ZEA"]
        pub static mut conVarRegister: root::ConVarRegisterType;
    }
    pub type ConVarMallocType = unsafe extern "C" fn(
        pConVarMaloc: *mut ::std::os::raw::c_void,
        a2: ::std::os::raw::c_int,
        a3: ::std::os::raw::c_int,
    );
    extern "C" {
        #[link_name = "\u{1}?conVarMalloc@@3P6AXPEAXHH@ZEA"]
        pub static mut conVarMalloc: root::ConVarMallocType;
    }
    extern "C" {
        #[link_name = "\u{1}?g_pConVar_Vtable@@3PEAXEA"]
        pub static mut g_pConVar_Vtable: *mut ::std::os::raw::c_void;
    }
    extern "C" {
        #[link_name = "\u{1}?g_pIConVar_Vtable@@3PEAXEA"]
        pub static mut g_pIConVar_Vtable: *mut ::std::os::raw::c_void;
    }
}