From 2aeea20c3c4c74d249c5b18191edd0943f23192c Mon Sep 17 00:00:00 2001 From: huyufei Date: Wed, 30 Aug 2023 12:26:45 +0800 Subject: [PATCH] update: initcommit --- Editor.meta | 8 ++++++ Editor/__PLACEHOLDER__ | 0 Editor/__PLACEHOLDER__.meta | 3 +++ README.md | 41 +++++++++++++++++++++++++++++ README.md.meta | 3 +++ Runtime.meta | 8 ++++++ Runtime/GuruKCP.Runtime.asmdef | 16 +++++++++++ Runtime/GuruKCP.Runtime.asmdef.meta | 7 +++++ Runtime/GuruKCP.cs | 13 +++++++++ Runtime/GuruKCP.cs.meta | 3 +++ Runtime/__PLACEHOLDER__ | 0 Runtime/__PLACEHOLDER__.meta | 3 +++ package.json | 11 ++++++++ package.json.meta | 3 +++ ~Samples.meta | 3 +++ ~Samples/__PLACEHOLDER__ | 0 ~Samples/__PLACEHOLDER__.meta | 3 +++ 17 files changed, 125 insertions(+) create mode 100644 Editor.meta create mode 100644 Editor/__PLACEHOLDER__ create mode 100644 Editor/__PLACEHOLDER__.meta create mode 100644 README.md create mode 100644 README.md.meta create mode 100644 Runtime.meta create mode 100644 Runtime/GuruKCP.Runtime.asmdef create mode 100644 Runtime/GuruKCP.Runtime.asmdef.meta create mode 100644 Runtime/GuruKCP.cs create mode 100644 Runtime/GuruKCP.cs.meta create mode 100644 Runtime/__PLACEHOLDER__ create mode 100644 Runtime/__PLACEHOLDER__.meta create mode 100644 package.json create mode 100644 package.json.meta create mode 100644 ~Samples.meta create mode 100644 ~Samples/__PLACEHOLDER__ create mode 100644 ~Samples/__PLACEHOLDER__.meta diff --git a/Editor.meta b/Editor.meta new file mode 100644 index 0000000..bab7cfd --- /dev/null +++ b/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d28fd9758a191431c890011f3987ffc8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/__PLACEHOLDER__ b/Editor/__PLACEHOLDER__ new file mode 100644 index 0000000..e69de29 diff --git a/Editor/__PLACEHOLDER__.meta b/Editor/__PLACEHOLDER__.meta new file mode 100644 index 0000000..b5b54aa --- /dev/null +++ b/Editor/__PLACEHOLDER__.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 68f75ad8b6624e2ca86deea09d90452e +timeCreated: 1693367821 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e25188c --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +# GURU KCP + +### VERSION 0.0.1 + +## 插件介绍 + +基于DotNetty版本实现的kcp(包含fec功能的实现). + +KCP是一个基于udp的快速可靠协议(rudp),能以比 TCP浪费10%-20%的带宽的代价,换取平均延迟降低 30%-40%,且最大延迟降低三倍的传输效果 + +主要用于构建unity客户端网络层. + + +## 安装和接入 + +### 插件引入 + +- 本插件需要使用公司内部的Gitlab加载对应的repo, 详见 [Castbox内部git服务器Gitea使用指南](https://docs.google.com/document/d/1DiGPDD5Teu2QcYaBhqAcsqMbb3DJ5sdnTQMuvVzJSUk/edit#heading=h.w9tkkzwwyjxf) +- 根据文档部署好本机配置后, 请在Unity内部配置如下参数 + - TBD + - TBD + - TBD + + +## 逻辑实现 + +- TBD + + + + +## 问题答疑 + +- Q +> A + +- Q +> A + +- Q +> A \ No newline at end of file diff --git a/README.md.meta b/README.md.meta new file mode 100644 index 0000000..c49e3e0 --- /dev/null +++ b/README.md.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 293ea24319fb4fcfb0095218b973bbbb +timeCreated: 1693367723 \ No newline at end of file diff --git a/Runtime.meta b/Runtime.meta new file mode 100644 index 0000000..704fd19 --- /dev/null +++ b/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 16ec203675cc3446b99268e544551ec7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/GuruKCP.Runtime.asmdef b/Runtime/GuruKCP.Runtime.asmdef new file mode 100644 index 0000000..4086920 --- /dev/null +++ b/Runtime/GuruKCP.Runtime.asmdef @@ -0,0 +1,16 @@ +{ + "name": "GuruKCP.Runtime", + "rootNamespace": "Guru", + "references": [], + "includePlatforms": [], + "excludePlatforms": [ + "Editor" + ], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Runtime/GuruKCP.Runtime.asmdef.meta b/Runtime/GuruKCP.Runtime.asmdef.meta new file mode 100644 index 0000000..1bd1b77 --- /dev/null +++ b/Runtime/GuruKCP.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 832e7ae06a4304a17a11ca2f7b21373d +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/GuruKCP.cs b/Runtime/GuruKCP.cs new file mode 100644 index 0000000..9b7d960 --- /dev/null +++ b/Runtime/GuruKCP.cs @@ -0,0 +1,13 @@ +namespace Guru +{ + public class GuruKCP + { + + public const string Version = "0.0.1"; + + public static void StartConnect(string host, string port) + { + // TODO Auto-generated constructor stub + } + } +} \ No newline at end of file diff --git a/Runtime/GuruKCP.cs.meta b/Runtime/GuruKCP.cs.meta new file mode 100644 index 0000000..c2be64b --- /dev/null +++ b/Runtime/GuruKCP.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 5527c7388144477ca22db2088137d31a +timeCreated: 1693369076 \ No newline at end of file diff --git a/Runtime/__PLACEHOLDER__ b/Runtime/__PLACEHOLDER__ new file mode 100644 index 0000000..e69de29 diff --git a/Runtime/__PLACEHOLDER__.meta b/Runtime/__PLACEHOLDER__.meta new file mode 100644 index 0000000..f77dba7 --- /dev/null +++ b/Runtime/__PLACEHOLDER__.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 0cce6bb95d7a4c62a10114242afa5176 +timeCreated: 1693367793 \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..bee0c9b --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "com.guru.unity.gurukcp", + "displayName": "GuruKCP", + "version": "0.0.1", + "description": "基于DotNetty版本实现的kcp", + "unity": "2020.3", + "license": "MIT", + "category": "Game tool", + "dependencies": { + } +} \ No newline at end of file diff --git a/package.json.meta b/package.json.meta new file mode 100644 index 0000000..96a79dd --- /dev/null +++ b/package.json.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 910a5bb10172460fbbd5a37fb2165116 +timeCreated: 1693367664 \ No newline at end of file diff --git a/~Samples.meta b/~Samples.meta new file mode 100644 index 0000000..2ced5c4 --- /dev/null +++ b/~Samples.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: f431bc69c3f04069bb4b8e08592c5c83 +timeCreated: 1693369217 \ No newline at end of file diff --git a/~Samples/__PLACEHOLDER__ b/~Samples/__PLACEHOLDER__ new file mode 100644 index 0000000..e69de29 diff --git a/~Samples/__PLACEHOLDER__.meta b/~Samples/__PLACEHOLDER__.meta new file mode 100644 index 0000000..7e44380 --- /dev/null +++ b/~Samples/__PLACEHOLDER__.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 8dcd280e8a1f4d47a0797e0ed7fdf7de +timeCreated: 1693369233 \ No newline at end of file