mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-11-04 12:51:48 +00:00
Allow serialization of all generic types in scripts
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using GlitchyEngine;
|
||||
using GlitchyEngine.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TestProject.Assets.Scripts;
|
||||
|
||||
public class SimpleGenericClass<T>
|
||||
{
|
||||
public T MyField;
|
||||
}
|
||||
|
||||
public struct SimpleGenericStruct<T>
|
||||
{
|
||||
public T MyField;
|
||||
}
|
||||
|
||||
public class AdvancedSerializationTest : Entity
|
||||
{
|
||||
public (int Prim, float2 Struc, BClass Ref) LeTuple;
|
||||
|
||||
public List<(int Prim, float2 Struc, BClass Ref)> LeListDeTuple;
|
||||
|
||||
public SimpleGenericStruct<float> GenericStructField = new SimpleGenericStruct<float>();
|
||||
|
||||
public SimpleGenericClass<double> GenericClassField = new SimpleGenericClass<double>();
|
||||
}
|
||||
Reference in New Issue
Block a user