Skip to content

Instantly share code, notes, and snippets.

@carbon198
Last active March 4, 2024 15:04
Show Gist options
  • Save carbon198/d15c8299c389ac6c0f9fd241e7216652 to your computer and use it in GitHub Desktop.
Save carbon198/d15c8299c389ac6c0f9fd241e7216652 to your computer and use it in GitHub Desktop.
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