28 lines
856 B
C#
28 lines
856 B
C#
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;
|
||
}
|
||
}
|
||
} |