Note判定自定义模块
This commit is contained in:
@@ -79,7 +79,7 @@ namespace Ichni.RhythmGame
|
||||
var effectNameInputField = inspector.GenerateInputField(container, "Effect Name");
|
||||
var addEffectButton = inspector.GenerateButton(this, container, "Add Effect", () =>
|
||||
{
|
||||
if (IHaveEffectSubmodule.EffectCollection.TryGetValue(effectNameInputField.GetValue<string>(), out var newEffect))
|
||||
if (EffectSubmodule.EffectCollection.TryGetValue(effectNameInputField.GetValue<string>(), out var newEffect))
|
||||
{
|
||||
effectCollection[effect.Key].Add(newEffect);
|
||||
inspectorMain.SetInspector(attachedGameElement);
|
||||
@@ -100,13 +100,8 @@ namespace Ichni.RhythmGame
|
||||
Default,
|
||||
Note,
|
||||
}
|
||||
}
|
||||
|
||||
public interface IHaveEffectSubmodule
|
||||
{
|
||||
public EffectSubmodule effectSubmodule { get; set; }
|
||||
|
||||
public static Dictionary<string, EffectBase> EffectCollection { get; } =
|
||||
private static Dictionary<string, EffectBase> EffectCollection { get; } =
|
||||
new Dictionary<string, EffectBase>()
|
||||
{
|
||||
{ "Bloom", new BloomEffect(1, 2) },
|
||||
@@ -116,6 +111,11 @@ namespace Ichni.RhythmGame
|
||||
};
|
||||
}
|
||||
|
||||
public interface IHaveEffectSubmodule
|
||||
{
|
||||
public EffectSubmodule effectSubmodule { get; set; }
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class EffectSubmodule_BM : Submodule_BM
|
||||
|
||||
Reference in New Issue
Block a user