feat(battle-engine): close the AI-simulation subsystem (verbatim)
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.
This commit is contained in:
30
SVSim.BattleEngine/Engine/Wizard/QuestTweetTask.cs
Normal file
30
SVSim.BattleEngine/Engine/Wizard/QuestTweetTask.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class QuestTweetTask : BaseTask
|
||||
{
|
||||
public string Message { get; private set; }
|
||||
|
||||
public string ImagePath { get; private set; }
|
||||
|
||||
public QuestTweetTask()
|
||||
{
|
||||
base.type = ApiType.Type.QuestTweet;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
JsonData jsonData = base.ResponseData["data"];
|
||||
string format = jsonData["tweet_message"].ToString().Replace("\\n", "\n");
|
||||
ImagePath = jsonData["tweet_image"].ToString();
|
||||
string arg = jsonData["tweet_url"].ToString();
|
||||
Message = string.Format(format, arg);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user