refactor: 同步化 Actor/Environment/Audio 快照还原接口
This commit is contained in:
@@ -86,9 +86,9 @@ namespace AibisDream
|
||||
return dto;
|
||||
}
|
||||
|
||||
public IEnumerator RestoreSnapshot(ActorSnapshotDto dto)
|
||||
public void RestoreSnapshot(ActorSnapshotDto dto)
|
||||
{
|
||||
if (dto?.actors == null) yield break;
|
||||
if (dto?.actors == null) return;
|
||||
|
||||
DestroyEditorTemp();
|
||||
|
||||
@@ -122,7 +122,6 @@ namespace AibisDream
|
||||
ApplyActorVisualState(actor, actorData);
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
|
||||
private static void ApplyActorVisualState(AbsActor actor, ActorData data)
|
||||
|
||||
@@ -39,9 +39,9 @@ namespace AibisDream
|
||||
};
|
||||
}
|
||||
|
||||
public IEnumerator RestoreSnapshot(EnvironmentSnapshotDto dto)
|
||||
public void RestoreSnapshot(EnvironmentSnapshotDto dto)
|
||||
{
|
||||
if (dto == null) yield break;
|
||||
if (dto == null) return;
|
||||
|
||||
if (!Enum.TryParse<TimesOfDay>(dto.curTime, out var time))
|
||||
{
|
||||
@@ -63,7 +63,6 @@ namespace AibisDream
|
||||
SetWeather(weather);
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
|
||||
public void InitEnvironment(TimesOfDay timeOfDay, Weather weather)
|
||||
|
||||
Reference in New Issue
Block a user