Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jinxin113437 committed May 24, 2017
1 parent 6b6f035 commit f62f344
Show file tree
Hide file tree
Showing 2,954 changed files with 910,983 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ILRuntime/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
.vs
*.suo
Library
Temp
UnityVS
AssetStoreTools
obj/*
/Assets/AssetStoreTools.meta
/Assets/UnityVS.meta
/*.csproj
*.o
10 changes: 10 additions & 0 deletions ILRuntime/Assets/DllEnv.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class DllEnv
{
public abstract IEnumerator Init(System.Action onDone);

public abstract object InvokeStatic(string type, string method, object p1);
}
12 changes: 12 additions & 0 deletions ILRuntime/Assets/DllEnv.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ILRuntime/Assets/ILRuntime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ILRuntime/Assets/ILRuntime/Adapters.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ILRuntime/Assets/ILRuntime/Adapters/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions ILRuntime/Assets/ILRuntime/Adapters/Editor/ILRuntimeCLRBinding.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
using System;
using System.Text;
using System.Collections.Generic;
[System.Reflection.Obfuscation(Exclude = true)]
public class ILRuntimeCLRBinding
{

[MenuItem("ILRuntime/Generate CLR Binding Code")]
static void GenerateCLRBinding()
{
List<Type> types = new List<Type>();
types.Add(typeof(int));
types.Add(typeof(float));
types.Add(typeof(long));
types.Add(typeof(object));
types.Add(typeof(string));
types.Add(typeof(Array));
types.Add(typeof(Vector2));
types.Add(typeof(Vector3));
types.Add(typeof(Quaternion));
types.Add(typeof(GameObject));
types.Add(typeof(UnityEngine.Object));
types.Add(typeof(SkinnedMeshRenderer));
types.Add(typeof(Input));
types.Add(typeof(Transform));
types.Add(typeof(RectTransform));
types.Add(typeof(Time));
types.Add(typeof(UserClass));
types.Add(typeof(Debug));
//所有DLL内的类型的真实C#类型都是ILTypeInstance
types.Add(typeof(List<ILRuntime.Runtime.Intepreter.ILTypeInstance>));


ILRuntime.Runtime.CLRBinding.BindingCodeGenerator.GenerateBindingCode(types, "Assets/ILRuntime/Generated");
}
}
#endif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ILRuntime/Assets/ILRuntime/CLR.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ILRuntime/Assets/ILRuntime/CLR/Method.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f62f344

Please sign in to comment.