mirror of
https://github.com/HoonTB/Project-AS.git
synced 2025-12-26 11:51:21 +09:00
- **Introduce Variable System**
- Added singleton class for variable management
- Implemented script commands `[var]` and `[add]` for variable control
- Supported variable substitution (`{variable}`) in dialogue and choices
- **Expand Script Features**
- Added `[scene]` command for scene transition (load scene and link next script)
- **Improve Character Presentation**
- Refactored character object hierarchy for better animation control
- Applied mask-based soft transition effect (Soft Wipe) for expression changes
14 lines
394 B
C#
14 lines
394 B
C#
using System.Collections.Generic;
|
|
|
|
public class ScriptAction
|
|
{
|
|
public string Type { get; set; }
|
|
public Dictionary<string, object> Params { get; set; } = new();
|
|
public List<Dictionary<string, string>> Choices { get; set; }
|
|
|
|
public string GetParam(string key, string defaultValue = "")
|
|
{
|
|
return Params.ContainsKey(key) ? Params[key].ToString() : defaultValue;
|
|
}
|
|
}
|