添加了教育平台

This commit is contained in:
CortexCore
2023-06-29 01:01:52 +08:00
parent 254e8ccde8
commit dd10fb59e5
128 changed files with 5270 additions and 166 deletions

View File

@@ -145,6 +145,10 @@
***
## Getting Started 使用指南
所有注释和指南都包括在代码中,用例正在编写中
### 基本设置
你需要在`项目设置` `自动加载`中添加一个挂载`BITAppForGodot`的节点
然后就OK了
### 依赖注入
基于`Microsoft.Extensions.DependencyInjection`的依赖注入服务
用例:
@@ -153,8 +157,11 @@
public interface IService{}
public class MyService:Node,IService
{
//注入服务
BITApp.ServiceCollection.AddSingleton<IService>(this);
public MyService()
{
//注入服务
BITApp.ServiceCollection.AddSingleton<IService>(this);
}
}
```
#### 注入服务