mirror of
https://github.com/HoonTB/Project-AS.git
synced 2025-12-26 11:51:21 +09:00
feat: add ScriptManager for VN Gaming
This commit is contained in:
13
Assets/_MAIN/Scripts/Core/ScriptAction.cs
Normal file
13
Assets/_MAIN/Scripts/Core/ScriptAction.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user