-
-
Save carbon198/d15c8299c389ac6c0f9fd241e7216652 to your computer and use it in GitHub Desktop.
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
private void ValidateGameModel(GameModel model) | |
{ | |
if (model.GetType().Assembly == GetType().Assembly) { return; } | |
if (!model.GetType().BaseType.IsAbstract) | |
{ | |
TextObject error = new("{=I2LlBDKr}Game Model Error: Please move "+GetType().Assembly.GetName().Name+" below "+model.GetType().Assembly.GetName().Name+ " in your load order to ensure mod compatibility"); | |
InformationManager.DisplayMessage(new InformationMessage(error.ToString(),Colors.Red)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment