mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptEngine work and cleanup
This commit is contained in:
@@ -562,9 +562,9 @@ public class DeserializationObject
|
||||
if (id == UUID.Zero)
|
||||
return null;
|
||||
|
||||
string fullTypeName = Encoding.UTF8.GetString(data.FullTypeName, (int)data.FullTypeNameLength);
|
||||
string? fullTypeName = data.FullTypeName != null ? Encoding.UTF8.GetString(data.FullTypeName, (int)data.FullTypeNameLength) : null;
|
||||
|
||||
Type? type = GetTypeFromName(fullTypeName);
|
||||
Type? type = fullTypeName is not null ? GetTypeFromName(fullTypeName) : null;
|
||||
|
||||
if (type == null)
|
||||
return NoValueDeserialized;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
using GlitchyEngine.Editor;
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Editor;
|
||||
using GlitchyEngine.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Extensions;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace GlitchyEngine.Serialization;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user