mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
+ Some C# UUID stuff + Added some Mono functions + ScriptEngine: + ID -> ScriptInstance map in ScriptEngine + GetManagedInstance + Fixed Scene not visible after loading a new scene + Renamed OnViewportResize to SetViewportSize for Scene and SceneRenderer
23 lines
448 B
C#
23 lines
448 B
C#
namespace GlitchyEngine.Core;
|
|
|
|
public struct UUID
|
|
{
|
|
private ulong _uuid;
|
|
|
|
public UUID(ulong uuid)
|
|
{
|
|
_uuid = uuid;
|
|
}
|
|
|
|
public static UUID Zero = new UUID(0);
|
|
|
|
public static bool operator ==(UUID left, UUID right) => left._uuid == right._uuid;
|
|
|
|
public static bool operator !=(UUID left, UUID right) => left._uuid != right._uuid;
|
|
|
|
public override string ToString()
|
|
{
|
|
return _uuid.ToString();
|
|
}
|
|
}
|