Files
ichni_Official/Assets/Scripts/Story/StoryData.cs
SoulliesOfficial db4d131192 1
2025-06-06 10:14:55 -04:00

28 lines
856 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections;
using System.Collections.Generic;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Ichni.Story
{
[CreateAssetMenu(fileName = "StoryData", menuName = "Ichni/Story/StoryData")]
public class StoryData : SerializedScriptableObject
{
public List<StoryBlockData> StoryBlockDatas; // 剧情单元格名称列表
public Dictionary<string, int> storyVariables; // 剧情变量字典键为变量名值为默认值如果Save中没有该变量则生成并使用默认值
}
[Serializable]
public class StoryBlockData
{
public string blockName;
public string blockID;
public StoryBlockData(string blockName, string blockID)
{
this.blockName = blockName;
this.blockID = blockID;
}
}
}