80 lines
3.0 KiB
C#
80 lines
3.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame.Beatmap;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
|
{
|
|
public partial class DTMNoteVisual : NoteVisualBase
|
|
{
|
|
public new static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
|
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement)
|
|
{
|
|
DTMNoteVisual noteVisual = SubstantialObject.GenerateElement(elementName, id, tags,
|
|
isFirstGenerated, themeBundleName, objectName, parentElement).GetComponent<DTMNoteVisual>();
|
|
|
|
return noteVisual;
|
|
}
|
|
|
|
public override void FirstSetUpObject(bool isFirstGenerated)
|
|
{
|
|
NoteBase note = parentElement as NoteBase;
|
|
if (note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
|
|
this.note = note;
|
|
note.noteVisual = this;
|
|
|
|
if (isFirstGenerated)
|
|
{
|
|
note.noteJudgeSubmodule.AddJudgeUnit("TouchArea");
|
|
//effectSubmodule.effectCollection["Generate"].Add(new BasicNoteGenerateExpand(this));
|
|
effectSubmodule.effectCollection["Perfect"].Add(new DTMNotePerfectBurst(this));
|
|
if (objectName.Contains("Tap"))
|
|
{
|
|
effectSubmodule.effectCollection["Good"].Add(new DTMNoteGoodBurst(this));
|
|
effectSubmodule.effectCollection["Bad"].Add(new DTMNoteBadBurst(this));
|
|
}
|
|
//effectSubmodule.effectCollection["Miss"].Add(new BasicNoteMissPale(this));
|
|
}
|
|
}
|
|
}
|
|
|
|
public partial class DTMNoteVisual
|
|
{
|
|
public override void SaveBM()
|
|
{
|
|
matchedBM = new Beatmap.DTMNoteVisual_BM(elementName, elementGuid, tags,
|
|
parentElement.matchedBM as GameElement_BM, themeBundleName, objectName);
|
|
}
|
|
}
|
|
|
|
namespace Beatmap
|
|
{
|
|
public class DTMNoteVisual_BM : SubstantialObject_BM
|
|
{
|
|
public DTMNoteVisual_BM()
|
|
{
|
|
|
|
}
|
|
|
|
public DTMNoteVisual_BM(string elementName, Guid id, List<string> tags,
|
|
GameElement_BM parent, string themeBundleName, string objectName) :
|
|
base(elementName, id, tags, parent, themeBundleName, objectName)
|
|
{
|
|
|
|
}
|
|
|
|
public override void ExecuteBM()
|
|
{
|
|
matchedElement = DTMNoteVisual.GenerateElement(elementName, elementGuid, tags, false,
|
|
themeBundleName, objectName, GetElement(attachedElementGuid));
|
|
}
|
|
|
|
public override GameElement DuplicateBM(GameElement parent)
|
|
{
|
|
return DTMNoteVisual.GenerateElement(elementName, Guid.NewGuid(), tags, false, themeBundleName,
|
|
objectName, parent);
|
|
}
|
|
}
|
|
}
|
|
} |