-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unity Build, add editor target, improve file structure and naming
- Consolidate to a single translation unit by only compiling wwise_gdextension_main.cpp. This simplifies the build script and reduces complexity. - Introduce an 'editor' target to differentiate between editor, debug, and release builds. This separation ensures that distinct libraries are used for editor and game builds, reducing potential issues. - Rename classes for improved readability and consistency. - Reorganize source files into a more logical directory structure.
- Loading branch information
1 parent
44a3e50
commit c6ae2b7
Showing
62 changed files
with
732 additions
and
1,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "ak_cookie.h" | ||
|
||
void AkCookie::_bind_methods() | ||
{ | ||
ClassDB::bind_method(D_METHOD("set_cookie", "cookie"), &AkCookie::set_cookie); | ||
ClassDB::bind_method(D_METHOD("get_cookie"), &AkCookie::get_cookie); | ||
|
||
ADD_PROPERTY(PropertyInfo(Variant::CALLABLE, "cookie", PROPERTY_HINT_NONE), "set_cookie", "get_cookie"); | ||
} | ||
|
||
AkCookie::AkCookie(const Callable& cookie) : cookie(cookie) {} | ||
|
||
void AkCookie::set_cookie(const Callable& cookie) { this->cookie = cookie; } | ||
|
||
Callable AkCookie::get_cookie() const { return cookie; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class AkCookie : public Object | ||
{ | ||
GDCLASS(AkCookie, Object); | ||
|
||
protected: | ||
static void _bind_methods(); | ||
|
||
private: | ||
Callable cookie{}; | ||
|
||
public: | ||
AkCookie(){}; | ||
AkCookie(const Callable& cookie); | ||
|
||
void set_cookie(const Callable& cookie); | ||
Callable get_cookie() const; | ||
}; |
4 changes: 1 addition & 3 deletions
4
addons/Wwise/native/src/wwise_godot_io.cpp → ...ns/Wwise/native/src/common/ak_io_hook.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
addons/Wwise/native/src/ak_utils.cpp → addons/Wwise/native/src/common/ak_utils.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.