-
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed as duplicate of#951
Closed as duplicate of#951
Copy link
Labels
status: duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
I am trying to organize the code and avoid a huge library with the entire game and data logic in a single file.
Let's say I have a crate_a with a class/resource and a crate_b that needs to refer to this class for any reason.
Just by adding use crate_a::class_name in the crate_b library, it stops working. However, it compiles and runs the game.
The error is: ERROR: Attempt to register extension class 'InputManager', which appears to be already registered.
My guess is that the class is being registered when the library_a is loaded and it is being registered again when library_b is loaded.
Is this a user error? How to avoid it?
Metadata
Metadata
Assignees
Labels
status: duplicateThis issue or pull request already existsThis issue or pull request already exists