mirror of
https://github.com/HoonTB/Project-AS.git
synced 2025-12-26 20:01:21 +09:00
feat: Add core VN system scripts, package dependencies, and initial project settings.
This commit is contained in:
15
Assets/_MAIN/Scripts/Core/ScriptResult.cs
Normal file
15
Assets/_MAIN/Scripts/Core/ScriptResult.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
/// <summary>스크립트 실행 결과 - 흐름 제어</summary>
|
||||
public struct ScriptResult
|
||||
{
|
||||
public enum ResultType { Continue, Wait, Jump, End }
|
||||
|
||||
public ResultType Type;
|
||||
public int NextIndex;
|
||||
|
||||
public static ScriptResult Continue => new() { Type = ResultType.Continue };
|
||||
public static ScriptResult Wait => new() { Type = ResultType.Wait };
|
||||
public static ScriptResult End => new() { Type = ResultType.End };
|
||||
|
||||
public static ScriptResult JumpTo(int index) =>
|
||||
new() { Type = ResultType.Jump, NextIndex = index };
|
||||
}
|
||||
Reference in New Issue
Block a user