Files
Project-AS/Assets/_MAIN/Scripts/Core/ScriptAction.cs

14 lines
421 B
C#

using System.Collections.Generic;
public class ScriptAction
{
public string Type { get; set; }
public Dictionary<string, object> Params { get; set; } = new Dictionary<string, object>();
public List<Dictionary<string, string>> Choices { get; set; }
public string GetParam(string key, string defaultValue = "")
{
return Params.ContainsKey(key) ? Params[key].ToString() : defaultValue;
}
}