Files
ichni_Creator_Studio/Assets/Scripts/EditorGame/Base/BaseElement.cs

81 lines
1.8 KiB
C#
Raw Normal View History

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
2025-02-12 18:46:46 -05:00
using Ichni.Editor;
2025-02-02 08:34:54 -05:00
using Ichni.RhythmGame.Beatmap;
using Sirenix.OdinInspector;
using UniRx;
using UnityEngine;
namespace Ichni.RhythmGame
{
public interface IBaseElement
{
public BaseElement_BM matchedBM { get; set; }
2025-02-02 08:34:54 -05:00
/// <summary>
/// 用于生成存档
/// </summary>
public void SaveBM()
{
}
2025-02-12 18:46:46 -05:00
/// <summary>
/// 刷新物体的状态
/// </summary>
2025-02-17 14:46:14 -05:00
public void Refresh()
{
}
2025-02-12 18:46:46 -05:00
2025-02-02 08:34:54 -05:00
/// <summary>
/// 当物体被删除时执行的方法
/// </summary>
2025-02-08 23:09:50 -05:00
public void OnDelete()
{
throw new NotImplementedException();
}
2025-02-02 08:34:54 -05:00
/// <summary>
/// 删除物体,包括所有子物体
/// </summary>
2025-02-08 23:09:50 -05:00
public void Delete()
{
throw new NotImplementedException();
}
2025-02-12 18:46:46 -05:00
public void SetUpInspector()
{
}
2025-02-02 08:34:54 -05:00
}
// public virtual void SetTimeDuration()
// {
//
// }
//
// public void ApplyTimeDuration()
// {
// childElementList.ForEach(x => x.ApplyTimeDuration());
// timeDurationSubmodule?.SetDurationFromChildren(
// childElementList.Select(x => x.timeDurationSubmodule).ToList());
// }
//
2025-02-02 08:34:54 -05:00
namespace Beatmap
{
public abstract class BaseElement_BM
{
2025-03-01 12:50:13 -05:00
public Guid attachedElementGuid;
2025-02-08 23:09:50 -05:00
/// <summary>
/// 从存档类中生成游戏物体
/// </summary>
public abstract void ExecuteBM();
2025-02-02 08:34:54 -05:00
}
}
}