rdiscord_sdk 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +13 -0
- data/.vscode/c_cpp_properties.json +24 -0
- data/.vscode/settings.json +102 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +46 -0
- data/INTERNALS.md +0 -0
- data/LICENSE +674 -0
- data/README.md +187 -0
- data/Rakefile +17 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/ext/rdiscord_sdk/activity.cpp +297 -0
- data/ext/rdiscord_sdk/activity.h +17 -0
- data/ext/rdiscord_sdk/common.cpp +65 -0
- data/ext/rdiscord_sdk/common.h +88 -0
- data/ext/rdiscord_sdk/extconf.rb +54 -0
- data/ext/rdiscord_sdk/gem_activity_manager.cpp +273 -0
- data/ext/rdiscord_sdk/gem_activity_manager.h +8 -0
- data/ext/rdiscord_sdk/gem_user_manager.cpp +114 -0
- data/ext/rdiscord_sdk/gem_user_manager.h +8 -0
- data/ext/rdiscord_sdk/rdiscord_sdk.cpp +77 -0
- data/ext/rdiscord_sdk/rdiscord_sdk.h +17 -0
- data/ext/rdiscord_sdk/user.cpp +98 -0
- data/ext/rdiscord_sdk/user.h +19 -0
- data/lib/rdiscord_sdk/enums.rb +162 -0
- data/lib/rdiscord_sdk/rdiscord_sdk.so +0 -0
- data/lib/rdiscord_sdk/version.rb +16 -0
- data/lib/rdiscord_sdk.rb +3 -0
- data/rdiscord_sdk.gemspec +34 -0
- data/third-party/include/achievement_manager.cpp +98 -0
- data/third-party/include/achievement_manager.h +34 -0
- data/third-party/include/activity_manager.cpp +177 -0
- data/third-party/include/activity_manager.h +42 -0
- data/third-party/include/application_manager.cpp +78 -0
- data/third-party/include/application_manager.h +30 -0
- data/third-party/include/core.cpp +182 -0
- data/third-party/include/core.h +64 -0
- data/third-party/include/discord.h +16 -0
- data/third-party/include/event.h +59 -0
- data/third-party/include/ffi.h +942 -0
- data/third-party/include/image_manager.cpp +57 -0
- data/third-party/include/image_manager.h +28 -0
- data/third-party/include/lobby_manager.cpp +547 -0
- data/third-party/include/lobby_manager.h +88 -0
- data/third-party/include/network_manager.cpp +103 -0
- data/third-party/include/network_manager.h +63 -0
- data/third-party/include/overlay_manager.cpp +112 -0
- data/third-party/include/overlay_manager.h +33 -0
- data/third-party/include/relationship_manager.cpp +90 -0
- data/third-party/include/relationship_manager.h +32 -0
- data/third-party/include/storage_manager.cpp +158 -0
- data/third-party/include/storage_manager.h +46 -0
- data/third-party/include/store_manager.cpp +160 -0
- data/third-party/include/store_manager.h +38 -0
- data/third-party/include/types.cpp +769 -0
- data/third-party/include/types.h +492 -0
- data/third-party/include/user_manager.cpp +80 -0
- data/third-party/include/user_manager.h +31 -0
- data/third-party/include/voice_manager.cpp +124 -0
- data/third-party/include/voice_manager.h +37 -0
- data/third-party/lib/x86/discord_game_sdk.dll +0 -0
- data/third-party/lib/x86/discord_game_sdk.dll.lib +0 -0
- data/third-party/lib/x86_64/discord_game_sdk.bundle +0 -0
- data/third-party/lib/x86_64/discord_game_sdk.dll +0 -0
- data/third-party/lib/x86_64/discord_game_sdk.dll.lib +0 -0
- data/third-party/lib/x86_64/discord_game_sdk.dylib +0 -0
- data/third-party/lib/x86_64/discord_game_sdk.so +0 -0
- metadata +114 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
#pragma once
|
2
|
+
|
3
|
+
#include "types.h"
|
4
|
+
|
5
|
+
namespace discord {
|
6
|
+
|
7
|
+
class VoiceManager final {
|
8
|
+
public:
|
9
|
+
~VoiceManager() = default;
|
10
|
+
|
11
|
+
Result GetInputMode(InputMode* inputMode);
|
12
|
+
void SetInputMode(InputMode inputMode, std::function<void(Result)> callback);
|
13
|
+
Result IsSelfMute(bool* mute);
|
14
|
+
Result SetSelfMute(bool mute);
|
15
|
+
Result IsSelfDeaf(bool* deaf);
|
16
|
+
Result SetSelfDeaf(bool deaf);
|
17
|
+
Result IsLocalMute(Snowflake userId, bool* mute);
|
18
|
+
Result SetLocalMute(Snowflake userId, bool mute);
|
19
|
+
Result GetLocalVolume(Snowflake userId, std::uint8_t* volume);
|
20
|
+
Result SetLocalVolume(Snowflake userId, std::uint8_t volume);
|
21
|
+
|
22
|
+
Event<> OnSettingsUpdate;
|
23
|
+
|
24
|
+
private:
|
25
|
+
friend class Core;
|
26
|
+
|
27
|
+
VoiceManager() = default;
|
28
|
+
VoiceManager(VoiceManager const& rhs) = delete;
|
29
|
+
VoiceManager& operator=(VoiceManager const& rhs) = delete;
|
30
|
+
VoiceManager(VoiceManager&& rhs) = delete;
|
31
|
+
VoiceManager& operator=(VoiceManager&& rhs) = delete;
|
32
|
+
|
33
|
+
IDiscordVoiceManager* internal_;
|
34
|
+
static IDiscordVoiceEvents events_;
|
35
|
+
};
|
36
|
+
|
37
|
+
} // namespace discord
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rdiscord_sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Lyons
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- matthew@nowaffles.com
|
16
|
+
executables: []
|
17
|
+
extensions:
|
18
|
+
- ext/rdiscord_sdk/extconf.rb
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- ".rubocop.yml"
|
22
|
+
- ".vscode/c_cpp_properties.json"
|
23
|
+
- ".vscode/settings.json"
|
24
|
+
- Gemfile
|
25
|
+
- Gemfile.lock
|
26
|
+
- INTERNALS.md
|
27
|
+
- LICENSE
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- bin/console
|
31
|
+
- bin/setup
|
32
|
+
- ext/rdiscord_sdk/activity.cpp
|
33
|
+
- ext/rdiscord_sdk/activity.h
|
34
|
+
- ext/rdiscord_sdk/common.cpp
|
35
|
+
- ext/rdiscord_sdk/common.h
|
36
|
+
- ext/rdiscord_sdk/extconf.rb
|
37
|
+
- ext/rdiscord_sdk/gem_activity_manager.cpp
|
38
|
+
- ext/rdiscord_sdk/gem_activity_manager.h
|
39
|
+
- ext/rdiscord_sdk/gem_user_manager.cpp
|
40
|
+
- ext/rdiscord_sdk/gem_user_manager.h
|
41
|
+
- ext/rdiscord_sdk/rdiscord_sdk.cpp
|
42
|
+
- ext/rdiscord_sdk/rdiscord_sdk.h
|
43
|
+
- ext/rdiscord_sdk/user.cpp
|
44
|
+
- ext/rdiscord_sdk/user.h
|
45
|
+
- lib/rdiscord_sdk.rb
|
46
|
+
- lib/rdiscord_sdk/enums.rb
|
47
|
+
- lib/rdiscord_sdk/rdiscord_sdk.so
|
48
|
+
- lib/rdiscord_sdk/version.rb
|
49
|
+
- rdiscord_sdk.gemspec
|
50
|
+
- third-party/include/achievement_manager.cpp
|
51
|
+
- third-party/include/achievement_manager.h
|
52
|
+
- third-party/include/activity_manager.cpp
|
53
|
+
- third-party/include/activity_manager.h
|
54
|
+
- third-party/include/application_manager.cpp
|
55
|
+
- third-party/include/application_manager.h
|
56
|
+
- third-party/include/core.cpp
|
57
|
+
- third-party/include/core.h
|
58
|
+
- third-party/include/discord.h
|
59
|
+
- third-party/include/event.h
|
60
|
+
- third-party/include/ffi.h
|
61
|
+
- third-party/include/image_manager.cpp
|
62
|
+
- third-party/include/image_manager.h
|
63
|
+
- third-party/include/lobby_manager.cpp
|
64
|
+
- third-party/include/lobby_manager.h
|
65
|
+
- third-party/include/network_manager.cpp
|
66
|
+
- third-party/include/network_manager.h
|
67
|
+
- third-party/include/overlay_manager.cpp
|
68
|
+
- third-party/include/overlay_manager.h
|
69
|
+
- third-party/include/relationship_manager.cpp
|
70
|
+
- third-party/include/relationship_manager.h
|
71
|
+
- third-party/include/storage_manager.cpp
|
72
|
+
- third-party/include/storage_manager.h
|
73
|
+
- third-party/include/store_manager.cpp
|
74
|
+
- third-party/include/store_manager.h
|
75
|
+
- third-party/include/types.cpp
|
76
|
+
- third-party/include/types.h
|
77
|
+
- third-party/include/user_manager.cpp
|
78
|
+
- third-party/include/user_manager.h
|
79
|
+
- third-party/include/voice_manager.cpp
|
80
|
+
- third-party/include/voice_manager.h
|
81
|
+
- third-party/lib/x86/discord_game_sdk.dll
|
82
|
+
- third-party/lib/x86/discord_game_sdk.dll.lib
|
83
|
+
- third-party/lib/x86_64/discord_game_sdk.bundle
|
84
|
+
- third-party/lib/x86_64/discord_game_sdk.dll
|
85
|
+
- third-party/lib/x86_64/discord_game_sdk.dll.lib
|
86
|
+
- third-party/lib/x86_64/discord_game_sdk.dylib
|
87
|
+
- third-party/lib/x86_64/discord_game_sdk.so
|
88
|
+
homepage: https://github.com/Speak2Erase/rdiscord_sdk
|
89
|
+
licenses: []
|
90
|
+
metadata:
|
91
|
+
homepage_uri: https://github.com/Speak2Erase/rdiscord_sdk
|
92
|
+
source_code_uri: https://github.com/Speak2Erase/rdiscord_sdk
|
93
|
+
changelog_uri: https://github.com/Speak2Erase/rdiscord_sdk
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options: []
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
- ext
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.6.0
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubygems_version: 3.3.3
|
111
|
+
signing_key:
|
112
|
+
specification_version: 4
|
113
|
+
summary: Ruby bindings for the Discord Game SDK
|
114
|
+
test_files: []
|