-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
AssemblyCSharp.dll
which is useful for l…
…ibrary design (#7)
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "GenericSerializeReference.Sample.Library", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:e68bcd447d2cc4be2b6d31311e6ca7e9", | ||
"GUID:bb7127c6ea4789d41b77cdef13d93652" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "GenericSerializeReference.Sample.Library.Implement", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:bb7127c6ea4789d41b77cdef13d93652" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
public class LibIntObject : ILibInterface<int> {} | ||
public class LibGenericObject<T> : ILibInterface<T> {} | ||
public class LibGenericObject_2<T> : ILibInterface<T> {} | ||
public class LibFloatObject : ILibInterface<float> {} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "GenericSerializeReference.Sample.Library.Interface", | ||
"rootNamespace": "", | ||
"references": [], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public interface ILibInterface<T> {} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using GenericSerializeReference; | ||
using UnityEngine; | ||
|
||
[assembly: GenericSerializeReferenceLoggerAttribute(LogLevel.Debug)] | ||
public class LibBehavior : MonoBehaviour | ||
{ | ||
[GenericSerializeReference(mode: GenerateMode.AssemblyCSharp)] | ||
public ILibInterface<int> Int { get; set; } | ||
|
||
[GenericSerializeReference(mode: GenerateMode.AssemblyCSharp)] | ||
public ILibInterface<float> Float { get; set; } | ||
|
||
private void Awake() | ||
{ | ||
Debug.Log($"{nameof(LibBehavior)}.{nameof(Int)} is {Int.GetType()}"); | ||
Debug.Log($"{nameof(LibBehavior)}.{nameof(Float)} is {Float.GetType()}"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace GenericSerializeReference.Library.CodeGen | ||
{ | ||
internal static class ___ {} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.