Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using System;
|
|
using Wizard.Story;
|
|
|
|
namespace Wizard;
|
|
|
|
public class StorySectionTask : BaseTask
|
|
{
|
|
public class StorySectionTaskParam : BaseParam
|
|
{
|
|
public bool is_disp_first_tips;
|
|
}
|
|
|
|
public StorySectionTask(SelectedStoryInfo storyInfo)
|
|
{
|
|
base.type = GetApiType(storyInfo.StoryEntranceType);
|
|
}
|
|
|
|
private static ApiType.Type GetApiType(StoryEntranceType storyType)
|
|
{
|
|
return storyType switch
|
|
{
|
|
StoryEntranceType.AllStory => ApiType.Type.AllStorySection,
|
|
StoryEntranceType.MainStory => ApiType.Type.MainStorySection,
|
|
StoryEntranceType.LimitedStory => ApiType.Type.LimitedStorySection,
|
|
StoryEntranceType.EventStory => ApiType.Type.EventStorySection,
|
|
_ => throw new NotImplementedException(),
|
|
};
|
|
}
|
|
|
|
public void SetParameter(bool isDispFirstTips)
|
|
{
|
|
StorySectionTaskParam storySectionTaskParam = new StorySectionTaskParam();
|
|
storySectionTaskParam.is_disp_first_tips = isDispFirstTips;
|
|
base.Params = storySectionTaskParam;
|
|
}
|
|
|
|
protected override int Parse()
|
|
{
|
|
int num = base.Parse();
|
|
if (num != 1)
|
|
{
|
|
return num;
|
|
}
|
|
Data.StoryWorldDataManager.SetData(base.ResponseData["data"]);
|
|
return num;
|
|
}
|
|
}
|