-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oracle Refactor #549
Oracle Refactor #549
Conversation
Test fail is legit, I'mma look into it tomorrow. |
Fixed the test fail by removing the test In all honesty, I don't think it was ever necessary. |
Test fails are legitimate, but you can get rid of 2 out of 3 of the test fails by replacing your ComponentInit subscription with MapInitEvent. The reason for fail 2 & 3 is that you aren't actually allowed to modify an entity directly during MapInit(ComponentInit happens during MapInit!), because modifying entities will actually change the map file! Luckily, MapInitEvent can be treated just like ComponentInit for this purpose, except that it waits for the map to finish loading if it is already loading. Note that despite what the name implies, it also works like ComponentInit, in that an entity spawned during a round will still trigger its MapInitEvent subscription. |
I just removed the init event callback. Should work now, I had no idea this was related to the oracle system at all. |
do you plan to finish the toDo before you want reviews or is this okay to review? |
Content.IntegrationTests/Tests/Nyanotrasen/Oracle/OracleTest.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are also now taking maintainer responsibility for these previously Abandoned code systems, we are assuming code ownership of this system. Therefore per Einstein-Engines' agreement with the original code owner, we are to signify code ownership of these files by moving them out of the Nyanotrasen namespace.
Whatever I could find, I moved out of nyano folders. Cannot guarantee the server won't crash because of that. |
We're good here. Luckily, the Linters are designed to catch issues like that. It wouldn't have passed the checks if we were missing a redirected Using, or if a path didn't resolve to the correct location anymore. :) |
Description
Refactors the oracle system and component, making them more customizable and less trash.
Almost every oracle thing (except for throwing and the amount of liquid dispensed) can now be configured in the yaml prototype of the oracle.
TODO
Forget it
Media
8mb.video-oFJ-OpxTUx8J.mp4
Changelog
🆑