Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
老鱼er
et
提交
cf17b5b4
E
et
项目概览
老鱼er
/
et
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
et
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cf17b5b4
编写于
1月 22, 2015
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
行为树节点按字母排序
上级
0a4f447f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
21 deletion
+9
-21
CSharp/App/Modules/BehaviorTreeModule/ListToStringConverter.cs
...p/App/Modules/BehaviorTreeModule/ListToStringConverter.cs
+2
-2
CSharp/App/Modules/BehaviorTreeModule/NodeDataEditor.xaml.cs
CSharp/App/Modules/BehaviorTreeModule/NodeDataEditor.xaml.cs
+7
-3
CSharp/Platform/Network/IService.cs
CSharp/Platform/Network/IService.cs
+0
-2
CSharp/Platform/TNet/TService.cs
CSharp/Platform/TNet/TService.cs
+0
-7
CSharp/Platform/UNet/UService.cs
CSharp/Platform/UNet/UService.cs
+0
-7
未找到文件。
CSharp/App/Modules/BehaviorTreeModule/ListToStringConverter.cs
浏览文件 @
cf17b5b4
...
...
@@ -15,7 +15,7 @@ namespace Modules.BehaviorTreeModule
{
return
""
;
}
var
list
=
(
List
<
string
>)
value
;
var
list
=
(
(
List
<
string
>)
value
)
;
return
String
.
Join
(
","
,
list
);
}
...
...
@@ -25,7 +25,7 @@ namespace Modules.BehaviorTreeModule
{
return
new
List
<
string
>();
}
var
s
=
(
string
)
value
;
string
s
=
(
string
)
value
;
s
=
s
.
Trim
();
if
(
s
==
""
)
{
...
...
CSharp/App/Modules/BehaviorTreeModule/NodeDataEditor.xaml.cs
浏览文件 @
cf17b5b4
using
System
;
using
System.Windows
;
using
System.Windows.Controls
;
using
Common.Helper
;
namespace
Modules.BehaviorTreeModule
{
...
...
@@ -10,11 +9,14 @@ namespace Modules.BehaviorTreeModule
/// </summary>
public
partial
class
NodeDataEditor
{
private
readonly
string
[]
nodeTypes
;
public
NodeDataEditor
()
{
this
.
InitializeComponent
();
string
[]
nodeTypes
=
Enum
.
GetNames
(
typeof
(
NodeType
));
nodeTypes
=
Enum
.
GetNames
(
typeof
(
NodeType
));
Array
.
Sort
(
nodeTypes
);
this
.
cbType
.
ItemsSource
=
nodeTypes
;
}
...
...
@@ -38,7 +40,9 @@ namespace Modules.BehaviorTreeModule
{
return
;
}
this
.
cbType
.
SelectedIndex
=
EnumHelper
.
EnumIndex
<
NodeType
>(
this
.
TreeNodeViewModel
.
Type
);
string
typeStr
=
((
NodeType
)
this
.
TreeNodeViewModel
.
Type
).
ToString
();
int
selectIndex
=
Array
.
IndexOf
(
nodeTypes
,
typeStr
);
this
.
cbType
.
SelectedIndex
=
selectIndex
;
}
private
void
CbType_OnSelectionChanged
(
object
sender
,
SelectionChangedEventArgs
e
)
...
...
CSharp/Platform/Network/IService.cs
浏览文件 @
cf17b5b4
...
...
@@ -19,8 +19,6 @@ namespace Network
Task
<
IChannel
>
GetChannel
(
string
host
,
int
port
);
Task
<
IChannel
>
GetChannel
(
string
address
);
Task
<
IChannel
>
GetChannel
();
void
Remove
(
IChannel
channel
);
...
...
CSharp/Platform/TNet/TService.cs
浏览文件 @
cf17b5b4
...
...
@@ -108,13 +108,6 @@ namespace TNet
return
await
ConnectAsync
(
host
,
port
);
}
public
async
Task
<
IChannel
>
GetChannel
(
string
address
)
{
string
[]
ss
=
address
.
Split
(
':'
);
int
port
=
Convert
.
ToInt32
(
ss
[
1
]);
return
await
GetChannel
(
ss
[
0
],
port
);
}
public
void
RunOnce
(
int
timeout
)
{
poller
.
Run
(
timeout
);
...
...
CSharp/Platform/UNet/UService.cs
浏览文件 @
cf17b5b4
...
...
@@ -67,13 +67,6 @@ namespace UNet
return
channel
;
}
public
async
Task
<
IChannel
>
GetChannel
(
string
address
)
{
string
[]
ss
=
address
.
Split
(
':'
);
int
port
=
Convert
.
ToInt32
(
ss
[
1
]);
return
await
GetChannel
(
ss
[
0
],
port
);
}
public
async
Task
<
IChannel
>
GetChannel
(
string
host
,
int
port
)
{
UChannel
channel
=
null
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录