|
@@ -61,7 +61,7 @@ namespace ET
|
|
|
this.fibers = null;
|
|
this.fibers = null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public async ETTask<int> Create(SchedulerType schedulerType, int fiberId, int zone, SceneType sceneType, string name)
|
|
|
|
|
|
|
+ public async ETTask<int> Create(SchedulerType schedulerType, int fiberId, int zone, int sceneType, string name)
|
|
|
{
|
|
{
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
@@ -80,7 +80,7 @@ namespace ET
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
// 根据Fiber的SceneType分发Init,必须在Fiber线程中执行
|
|
// 根据Fiber的SceneType分发Init,必须在Fiber线程中执行
|
|
|
- await EventSystem.Instance.Invoke<FiberInit, ETTask>((long)sceneType, new FiberInit() {Fiber = fiber});
|
|
|
|
|
|
|
+ await EventSystem.Instance.Invoke<FiberInit, ETTask>(sceneType, new FiberInit() {Fiber = fiber});
|
|
|
tcs.SetResult(true);
|
|
tcs.SetResult(true);
|
|
|
}
|
|
}
|
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
@@ -98,7 +98,7 @@ namespace ET
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public async ETTask<int> Create(SchedulerType schedulerType, int zone, SceneType sceneType, string name)
|
|
|
|
|
|
|
+ public async ETTask<int> Create(SchedulerType schedulerType, int zone, int sceneType, string name)
|
|
|
{
|
|
{
|
|
|
int fiberId = Interlocked.Increment(ref this.idGenerator);
|
|
int fiberId = Interlocked.Increment(ref this.idGenerator);
|
|
|
return await this.Create(schedulerType, fiberId, zone, sceneType, name);
|
|
return await this.Create(schedulerType, fiberId, zone, sceneType, name);
|