Skip to content

Commit 6f3f7e2

Browse files
authored
Create EffectTypeProviderSO.cs
1 parent 0ff8bda commit 6f3f7e2

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// EffectTypeProviderSO.cs
2+
// ScriptableObject that contributes entries to the EffectType enum.
3+
// One of these per package/game that needs custom effect variants.
4+
5+
using System.Collections.Generic;
6+
using UnityEngine;
7+
using MidManStudio.Core.EditorUtils;
8+
9+
namespace MidManStudio.Core.FX.Generator
10+
{
11+
[CreateAssetMenu(
12+
fileName = "EffectTypeProvider",
13+
menuName = "MidManStudio/Utilities/Effect Type Provider",
14+
order = 181)]
15+
public class EffectTypeProviderSO : ScriptableObject
16+
{
17+
[Header("Identity")]
18+
public string packageId = "com.mygame";
19+
public string displayName = "My Game";
20+
21+
[Header("Block Priority")]
22+
public int priority = 100;
23+
24+
[Header("Entries")]
25+
[MID_NamedList]
26+
public List<FXEntryDefinition> entries = new List<FXEntryDefinition>();
27+
28+
public int EntryCount => entries?.Count ?? 0;
29+
}
30+
}

0 commit comments

Comments
 (0)