This repository has been archived by the owner on Aug 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Warn and Message functions
- Loading branch information
Showing
3 changed files
with
748 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace OMODFramework.Scripting | ||
{ | ||
public interface IScriptFunctions | ||
{ | ||
/// <summary> | ||
/// Warn the user about something. This will only be called if Framework.EnableWarnings = true | ||
/// </summary> | ||
/// <param name="msg">The message, will always contain the line number</param> | ||
void Warn(string msg); | ||
|
||
/// <summary> | ||
/// Inform the user about something | ||
/// </summary> | ||
/// <param name="msg">The message to be displayed</param> | ||
void Message(string msg); | ||
|
||
/// <summary> | ||
/// Inform the user about something | ||
/// </summary> | ||
/// <param name="msg">The message to be displayed</param> | ||
/// <param name="title">The title of the popup</param> | ||
void Message(string msg, string title); | ||
} | ||
} |
Oops, something went wrong.