Add func to determine if we are using mono.
This commit is contained in:
parent
a2c04e0bfd
commit
fc52fe3236
@ -358,6 +358,15 @@ namespace EduNetworkBuilder
|
||||
return myresource;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determine if we are using Mono or .Net. Some things get killed using Mono.
|
||||
/// </summary>
|
||||
/// <returns>True if we are using Mono</returns>
|
||||
public static bool IsRunningOnMono()
|
||||
{
|
||||
return Type.GetType("Mono.Runtime") != null;
|
||||
}
|
||||
|
||||
public static Point GetSnapped(Point Location)
|
||||
{
|
||||
int x = (Location.X / NB.GridSize) * NB.GridSize;
|
||||
|
Loading…
Reference in New Issue
Block a user