rdiscord_sdk 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +13 -0
  3. data/.vscode/c_cpp_properties.json +24 -0
  4. data/.vscode/settings.json +102 -0
  5. data/Gemfile +11 -0
  6. data/Gemfile.lock +46 -0
  7. data/INTERNALS.md +0 -0
  8. data/LICENSE +674 -0
  9. data/README.md +187 -0
  10. data/Rakefile +17 -0
  11. data/bin/console +15 -0
  12. data/bin/setup +8 -0
  13. data/ext/rdiscord_sdk/activity.cpp +297 -0
  14. data/ext/rdiscord_sdk/activity.h +17 -0
  15. data/ext/rdiscord_sdk/common.cpp +65 -0
  16. data/ext/rdiscord_sdk/common.h +88 -0
  17. data/ext/rdiscord_sdk/extconf.rb +54 -0
  18. data/ext/rdiscord_sdk/gem_activity_manager.cpp +273 -0
  19. data/ext/rdiscord_sdk/gem_activity_manager.h +8 -0
  20. data/ext/rdiscord_sdk/gem_user_manager.cpp +114 -0
  21. data/ext/rdiscord_sdk/gem_user_manager.h +8 -0
  22. data/ext/rdiscord_sdk/rdiscord_sdk.cpp +77 -0
  23. data/ext/rdiscord_sdk/rdiscord_sdk.h +17 -0
  24. data/ext/rdiscord_sdk/user.cpp +98 -0
  25. data/ext/rdiscord_sdk/user.h +19 -0
  26. data/lib/rdiscord_sdk/enums.rb +162 -0
  27. data/lib/rdiscord_sdk/rdiscord_sdk.so +0 -0
  28. data/lib/rdiscord_sdk/version.rb +16 -0
  29. data/lib/rdiscord_sdk.rb +3 -0
  30. data/rdiscord_sdk.gemspec +34 -0
  31. data/third-party/include/achievement_manager.cpp +98 -0
  32. data/third-party/include/achievement_manager.h +34 -0
  33. data/third-party/include/activity_manager.cpp +177 -0
  34. data/third-party/include/activity_manager.h +42 -0
  35. data/third-party/include/application_manager.cpp +78 -0
  36. data/third-party/include/application_manager.h +30 -0
  37. data/third-party/include/core.cpp +182 -0
  38. data/third-party/include/core.h +64 -0
  39. data/third-party/include/discord.h +16 -0
  40. data/third-party/include/event.h +59 -0
  41. data/third-party/include/ffi.h +942 -0
  42. data/third-party/include/image_manager.cpp +57 -0
  43. data/third-party/include/image_manager.h +28 -0
  44. data/third-party/include/lobby_manager.cpp +547 -0
  45. data/third-party/include/lobby_manager.h +88 -0
  46. data/third-party/include/network_manager.cpp +103 -0
  47. data/third-party/include/network_manager.h +63 -0
  48. data/third-party/include/overlay_manager.cpp +112 -0
  49. data/third-party/include/overlay_manager.h +33 -0
  50. data/third-party/include/relationship_manager.cpp +90 -0
  51. data/third-party/include/relationship_manager.h +32 -0
  52. data/third-party/include/storage_manager.cpp +158 -0
  53. data/third-party/include/storage_manager.h +46 -0
  54. data/third-party/include/store_manager.cpp +160 -0
  55. data/third-party/include/store_manager.h +38 -0
  56. data/third-party/include/types.cpp +769 -0
  57. data/third-party/include/types.h +492 -0
  58. data/third-party/include/user_manager.cpp +80 -0
  59. data/third-party/include/user_manager.h +31 -0
  60. data/third-party/include/voice_manager.cpp +124 -0
  61. data/third-party/include/voice_manager.h +37 -0
  62. data/third-party/lib/x86/discord_game_sdk.dll +0 -0
  63. data/third-party/lib/x86/discord_game_sdk.dll.lib +0 -0
  64. data/third-party/lib/x86_64/discord_game_sdk.bundle +0 -0
  65. data/third-party/lib/x86_64/discord_game_sdk.dll +0 -0
  66. data/third-party/lib/x86_64/discord_game_sdk.dll.lib +0 -0
  67. data/third-party/lib/x86_64/discord_game_sdk.dylib +0 -0
  68. data/third-party/lib/x86_64/discord_game_sdk.so +0 -0
  69. metadata +114 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 59a94f08d97089f6680144bf0ce256826b3f4ea2cec5d11f1b8f911eecd87b7f
4
+ data.tar.gz: 83f15af9437acd1c2723d444b50bba6fe6109929f4a7c9d27f1bbd8d9961c949
5
+ SHA512:
6
+ metadata.gz: afc945ab00ec2106cc0b590e2af30b6de702160af959f73cdb3dfae2c92e564963cc866b0420d2da65fb93ddecf1a5de31987597600e2de891e6bb6168bbd4bf
7
+ data.tar.gz: 07ef99cda3316b89d7fa31888c4dd78c7b99eec08cf57559c1e693108bd8e26a3fb6214fdefad1a5d2afd692f3e25c463d101426ac010b24eadb8667e47409d6
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
@@ -0,0 +1,24 @@
1
+ {
2
+ "configurations": [
3
+ {
4
+ "name": "Win32",
5
+ "includePath": [
6
+ "${workspaceFolder}/**",
7
+ // "/usr/local/lib/ruby/**",
8
+ // "/usr/local/include/ruby-3.0.0/**",
9
+ "C:\\Ruby31-x64\\**",
10
+ ],
11
+ "defines": [
12
+ "_DEBUG",
13
+ "UNICODE",
14
+ "_UNICODE"
15
+ ],
16
+ "windowsSdkVersion": "10.0.19041.0",
17
+ "compilerPath": "/usr/bin/gcc",
18
+ "cStandard": "c17",
19
+ "cppStandard": "c++17",
20
+ "intelliSenseMode": "windows-msvc-x64"
21
+ }
22
+ ],
23
+ "version": 4
24
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "files.associations": {
3
+ "*.inc": "cpp",
4
+ "*.ipp": "cpp",
5
+ "iostream": "cpp",
6
+ "cctype": "cpp",
7
+ "clocale": "cpp",
8
+ "cmath": "cpp",
9
+ "csignal": "cpp",
10
+ "cstdarg": "cpp",
11
+ "cstddef": "cpp",
12
+ "cstdio": "cpp",
13
+ "cstdlib": "cpp",
14
+ "cstring": "cpp",
15
+ "ctime": "cpp",
16
+ "cwchar": "cpp",
17
+ "cwctype": "cpp",
18
+ "any": "cpp",
19
+ "array": "cpp",
20
+ "atomic": "cpp",
21
+ "bit": "cpp",
22
+ "*.tcc": "cpp",
23
+ "bitset": "cpp",
24
+ "chrono": "cpp",
25
+ "cinttypes": "cpp",
26
+ "codecvt": "cpp",
27
+ "compare": "cpp",
28
+ "complex": "cpp",
29
+ "concepts": "cpp",
30
+ "condition_variable": "cpp",
31
+ "cstdint": "cpp",
32
+ "deque": "cpp",
33
+ "list": "cpp",
34
+ "map": "cpp",
35
+ "set": "cpp",
36
+ "string": "cpp",
37
+ "unordered_map": "cpp",
38
+ "unordered_set": "cpp",
39
+ "vector": "cpp",
40
+ "exception": "cpp",
41
+ "algorithm": "cpp",
42
+ "functional": "cpp",
43
+ "iterator": "cpp",
44
+ "memory": "cpp",
45
+ "memory_resource": "cpp",
46
+ "numeric": "cpp",
47
+ "optional": "cpp",
48
+ "random": "cpp",
49
+ "ratio": "cpp",
50
+ "regex": "cpp",
51
+ "source_location": "cpp",
52
+ "string_view": "cpp",
53
+ "system_error": "cpp",
54
+ "tuple": "cpp",
55
+ "type_traits": "cpp",
56
+ "utility": "cpp",
57
+ "fstream": "cpp",
58
+ "future": "cpp",
59
+ "initializer_list": "cpp",
60
+ "iomanip": "cpp",
61
+ "iosfwd": "cpp",
62
+ "istream": "cpp",
63
+ "limits": "cpp",
64
+ "mutex": "cpp",
65
+ "new": "cpp",
66
+ "numbers": "cpp",
67
+ "ostream": "cpp",
68
+ "semaphore": "cpp",
69
+ "sstream": "cpp",
70
+ "stdexcept": "cpp",
71
+ "stop_token": "cpp",
72
+ "streambuf": "cpp",
73
+ "thread": "cpp",
74
+ "typeindex": "cpp",
75
+ "typeinfo": "cpp",
76
+ "variant": "cpp",
77
+ "*.rh": "cpp",
78
+ "charconv": "cpp",
79
+ "format": "cpp",
80
+ "forward_list": "cpp",
81
+ "ios": "cpp",
82
+ "locale": "cpp",
83
+ "queue": "cpp",
84
+ "stack": "cpp",
85
+ "xfacet": "cpp",
86
+ "xhash": "cpp",
87
+ "xiosbase": "cpp",
88
+ "xlocale": "cpp",
89
+ "xlocbuf": "cpp",
90
+ "xlocinfo": "cpp",
91
+ "xlocmes": "cpp",
92
+ "xlocmon": "cpp",
93
+ "xlocnum": "cpp",
94
+ "xloctime": "cpp",
95
+ "xmemory": "cpp",
96
+ "xstddef": "cpp",
97
+ "xstring": "cpp",
98
+ "xtr1common": "cpp",
99
+ "xtree": "cpp",
100
+ "xutility": "cpp"
101
+ }
102
+ }
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in rdiscord-sdk.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+ gem "rice", "~> 4.0.3"
10
+ gem "rubocop", "~> 1.21"
11
+ gem "rake-compiler"
data/Gemfile.lock ADDED
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rdiscord_sdk (1.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ parallel (1.22.0)
11
+ parser (3.1.1.0)
12
+ ast (~> 2.4.1)
13
+ rainbow (3.1.1)
14
+ rake (13.0.6)
15
+ rake-compiler (1.1.9)
16
+ rake
17
+ regexp_parser (2.2.1)
18
+ rexml (3.2.5)
19
+ rice (4.0.3)
20
+ rubocop (1.26.1)
21
+ parallel (~> 1.10)
22
+ parser (>= 3.1.0.0)
23
+ rainbow (>= 2.2.2, < 4.0)
24
+ regexp_parser (>= 1.8, < 3.0)
25
+ rexml
26
+ rubocop-ast (>= 1.16.0, < 2.0)
27
+ ruby-progressbar (~> 1.7)
28
+ unicode-display_width (>= 1.4.0, < 3.0)
29
+ rubocop-ast (1.16.0)
30
+ parser (>= 3.1.1.0)
31
+ ruby-progressbar (1.11.0)
32
+ unicode-display_width (2.1.0)
33
+
34
+ PLATFORMS
35
+ x64-mingw-ucrt
36
+ x86_64-linux
37
+
38
+ DEPENDENCIES
39
+ rake (~> 13.0)
40
+ rake-compiler
41
+ rdiscord_sdk!
42
+ rice (~> 4.0.3)
43
+ rubocop (~> 1.21)
44
+
45
+ BUNDLED WITH
46
+ 2.3.3
data/INTERNALS.md ADDED
File without changes