Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Library/
Packages/
ResLibrary/
Temp/
*.meta
ResLibrary.meta

# Packages #
############
Expand Down
Binary file added Exercises/Base_chapter1/Animal/Animal.dll
Binary file not shown.
Binary file added Exercises/Base_chapter1/Animal/Animal2.dll
Binary file not shown.
11 changes: 11 additions & 0 deletions Exercises/Base_chapter1/Animal/Cat.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
namespace Animal
{
public class Cat
{
public void Print()
{
Console.WriteLine("cat");
}
}
}
Binary file added Exercises/Base_chapter1/Animal/Cat.netmodule
Binary file not shown.
11 changes: 11 additions & 0 deletions Exercises/Base_chapter1/Animal/Dog.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
namespace Animal
{
public class Dog
{
public void Print()
{
Console.WriteLine("dog");
}
}
}
Binary file added Exercises/Base_chapter1/Animal/Dog.netmodule
Binary file not shown.
10 changes: 10 additions & 0 deletions Exercises/Base_chapter1/Animal/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Animal;
public class Program
{

static void Main(string[] args)
{
new Cat().Print();
new Dog().Print();
}
}
Binary file added Exercises/Base_chapter1/Animal/Program.dll
Binary file not shown.
Binary file added Exercises/Base_chapter1/Animal/Program.exe
Binary file not shown.
Binary file added Exercises/Base_chapter1/Animal/Program2.exe
Binary file not shown.
Binary file added Exercises/Base_chapter1/Animal/Program3.exe
Binary file not shown.
9 changes: 9 additions & 0 deletions Exercises/Base_chapter1/Animal/ProgramNetcore.cs_bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;
public class ProgramNetcore
{

static void Main(string[] args)
{
Console.WriteLine("dotnet dog");
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\liaox\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\liaox\\.nuget\\packages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "5.0.0"
}
}
}
8 changes: 8 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/MainProgram.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
class MainProgram
{
static void Main()
{
MyClass.PrintSth();
}
}
Binary file not shown.
5 changes: 5 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/MainProgram.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#引用程序集
/r:.\Bin\MyClass.dll

#编译输出exe
/out:MainProgram.exe MainProgram.cs
9 changes: 9 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/ModuleProgram.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;
class ModuleProgram
{
static void Main()
{
MyFirstModule.Hello();
MySecondModule.Hello();
}
}
6 changes: 6 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/ModuleProgram.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#引用Module
/addmodule:.\Bin\MyFirstModule.netmodule
/addmodule:.\Bin\MySecondModule.netmodule

#编译输出exe
/out:.\Bin\ModuleProgram.exe ModuleProgram.cs
8 changes: 8 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/MyClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
public class MyClass
{
public static void PrintSth()
{
Console.WriteLine("Hello");
}
}
8 changes: 8 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/MyFirstModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
class MyFirstModule
{
public static void Hello()
{
Console.WriteLine("来自module 1的问候~");
}
}
9 changes: 9 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/MyILClass.il
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.assembly MyILClassAssembly {}
.assembly extern mscorlib {}
.class public MyILClass extends [mscorlib]system.object{
.method public static void PrintSth() cil managed{
ldstr "hello from IL"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
}
8 changes: 8 additions & 0 deletions Exercises/Base_chapter1/MainAndModule/MySecondModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
class MySecondModule
{
public static void Hello()
{
Console.WriteLine("来自module 2的问候~");
}
}
9 changes: 9 additions & 0 deletions Unity/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#过滤数据库文件、sln解决方案文件、配置文件
*.mdb
*.ldb
*.config

# unity files #
######################
*.csproj
*.sln
649 changes: 0 additions & 649 deletions Unity/Assembly-CSharp-Editor.csproj

This file was deleted.

639 changes: 0 additions & 639 deletions Unity/Assembly-CSharp-firstpass.csproj

This file was deleted.

663 changes: 0 additions & 663 deletions Unity/Assembly-CSharp.csproj

This file was deleted.

8 changes: 8 additions & 0 deletions Unity/Assets/ETFramework.meta

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

8 changes: 8 additions & 0 deletions Unity/Assets/ETFramework/Bundles.meta

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

8 changes: 8 additions & 0 deletions Unity/Assets/ETFramework/Bundles/Config.meta

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

7 changes: 7 additions & 0 deletions Unity/Assets/ETFramework/Bundles/Config/BuffConfig.txt.meta

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

8 changes: 4 additions & 4 deletions Unity/Assets/ETFramework/Bundles/Config/Config.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 2174699427824568170}
- component: {fileID: 7958208329950818460}
- component: {fileID: 6513676542614510153}
m_Layer: 0
m_Name: Config
m_TagString: Untagged
Expand All @@ -31,7 +31,7 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7958208329950818460
--- !u!114 &6513676542614510153
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -40,9 +40,9 @@ MonoBehaviour:
m_GameObject: {fileID: 8092289572223391023}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 00d3fd602f2f86a4c900741174f2616b, type: 3}
m_Script: {fileID: 11500000, guid: 4bbc57b309c75a3488660bda01eb24dc, type: 3}
m_Name:
m_EditorClassIdentifier:
data:
- key: UnitConfig
gameObject: {fileID: 4900000, guid: 14b9dc64fea3702458ec864841b3e7be, type: 3}
gameObject: {fileID: 4900000, guid: b82d2bbaccc7f754380390f9ff326f88, type: 3}
7 changes: 7 additions & 0 deletions Unity/Assets/ETFramework/Bundles/Config/Config.prefab.meta

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

7 changes: 7 additions & 0 deletions Unity/Assets/ETFramework/Bundles/Config/GlobalProto.txt.meta

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.

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.

7 changes: 7 additions & 0 deletions Unity/Assets/ETFramework/Bundles/Config/UnitConfig.txt.meta

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

8 changes: 8 additions & 0 deletions Unity/Assets/ETFramework/ETCore.meta

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

8 changes: 8 additions & 0 deletions Unity/Assets/ETFramework/ETCore/Base.meta

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

8 changes: 8 additions & 0 deletions Unity/Assets/ETFramework/ETCore/Base/Async.meta

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.

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.

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

11 changes: 11 additions & 0 deletions Unity/Assets/ETFramework/ETCore/Base/Async/ETTask.cs.meta

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.

11 changes: 11 additions & 0 deletions Unity/Assets/ETFramework/ETCore/Base/Async/ETTaskFactory.cs.meta

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

11 changes: 11 additions & 0 deletions Unity/Assets/ETFramework/ETCore/Base/Async/ETVoid.cs.meta

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

Loading