1
This commit is contained in:
28
Assets/Scripts/Story/StoryData.cs
Normal file
28
Assets/Scripts/Story/StoryData.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user