Skip to content
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

Mod interaction #93

Merged
merged 41 commits into from
May 7, 2020
Merged

Mod interaction #93

merged 41 commits into from
May 7, 2020

Conversation

misternebula
Copy link
Member

@misternebula misternebula commented Apr 29, 2020

Closes #79

misternebula and others added 29 commits April 25, 2020 22:26
bring mod interaction up to date with load order
- Added null checker to method invoke
- Split ModDep into seperate file
- Made ModSorter non-static
- Removed invoke and set/get value, as they already exist...
- Added GetDependants() to ModBehaviour
- Added GetMod() to make mods simpler, with interface counterpart.
- Added a return-able version of Invoke.
- Changed ModInteraction to Interaction
- Removed "None" feature of dependencies
Add mod load order and mod interaction methods
Merging @misternebula's work to branch on this repo
- changed edge hashset declaration to use var
- added "public" to ModSorter
- removed false from ModManifest
@amazingalek amazingalek requested a review from Raicuparta April 29, 2020 22:22
var dependencies = new List<IModBehaviour>();
foreach (var dependency in _modList)
{
if (dependency.ModHelper.Manifest.Dependencies.Any() && dependency.ModHelper.Manifest.Dependencies.Contains(mod.ModHelper.Manifest.UniqueName))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure you can remove dependency.ModHelper.Manifest.Dependencies.Any() && and it'll work the same.

@amazingalek amazingalek mentioned this pull request May 1, 2020
@amazingalek
Copy link
Collaborator

Awesome, all that's left is testing. :)
Unit tests would be nice but it's not a requirement 🤷

Raicuparta
Raicuparta previously approved these changes May 5, 2020
Copy link
Collaborator

@amazingalek amazingalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@misternebula misternebula merged commit 373ad18 into master May 7, 2020
@misternebula misternebula deleted the mod-interaction branch May 7, 2020 17:57
amazingalek pushed a commit that referenced this pull request May 11, 2020
Added mod interaction methods, and improved Invoke method.
Raicuparta added a commit that referenced this pull request May 13, 2020
* Add VR patch for Outer Wilds update 1.0.6

* updated the readme (#87)

* Owml manifest (#88)

* owml manifest file

* fixed error messages in storage helper (#89)

* adaptations for the mod manager (#90)

* removed (slow) version checking
* added descriptions
* updated readme

* mods have separate logger and console objects (#91)

* mods have separate logger and console objects

* Logging some stuff to socket

* Sending absolutely everything to socket

* Cleanup

* Pick between file and socket consoles

* Console port argument constant

* Simpler argument get

* Add separate project for logging

* Move all logging-related stuff to Logging project

* Helper Output.cs

* Use public property instead of getter / setter.

* Simplified command line argument parsing

* Socket creation early return

* Exit console if socket port argument present

* Remove this line that I don't know why I had in the first place

* Use Output.OnWrite instead of ModConsole.OnConsole

* Simplify decrecated event

* Cleanup

* Make Mod*Output extend from ModConsole

* Mod interaction (#93)

Added mod interaction methods, and improved Invoke method.

* Simplify modsocketoutput constructor

* Remove unnecessary statics

* Revert "Remove unnecessary statics"

This reverts commit 8dc0c63.

* Revert ModConsole namespace

* Rename ModConsole to ModOutput

* Ouput factory

* Remove redundant elses

* Rename instance to OwmlOutput, remove deprecated

* Cleanup

* formatting, removed unused stuff

* .

* Using ExitConsole in two places

* Name / message separator as const

* version

* Move ModHelper.Logging to ModHelper

* Revert singletone instance

* Remove references to Logging project

* Rename protected variables

* protected ModConsole constructor

* Move logging stuff to Logging subdirectory

* Update OW.Unity.Dlls to 1.0.5

* Bump version

Co-authored-by: AmazingAlek <[email protected]>
Co-authored-by: Mister_Nebula <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mod dependencies
3 participants