同步
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
[System.Serializable]
|
||||
public class DTMConstellation_BM : EnvironmentObject_BM
|
||||
{
|
||||
// Constellation Settings
|
||||
public int maxParticles = 10;
|
||||
public int maxLineCount = 12;
|
||||
public Vector3 spreadSize = new Vector3(20f, 20f, 20f);
|
||||
public int maxConnectionsPerStar = 3;
|
||||
|
||||
// Visual Settings
|
||||
public float maxConnectionDistance = 20f;
|
||||
public float activeStarSize = 1f;
|
||||
public float lineWidth = 0.1f;
|
||||
|
||||
// Particle Motion Settings
|
||||
public Vector3 orbitalVelocity = Vector3.one * 0.1f;
|
||||
public float angularVelocity = 60f;
|
||||
|
||||
// 颜色由 ColorSubmodule_BM 统一管理,此处不存储
|
||||
|
||||
public DTMConstellation_BM()
|
||||
{
|
||||
}
|
||||
|
||||
public DTMConstellation_BM(
|
||||
string elementName, Guid elementGuid, List<string> tags, GameElement_BM attachedElement,
|
||||
string themeBundleName, string objectName, bool isStatic,
|
||||
int maxParticles, int maxLineCount,
|
||||
Vector3 spreadSize, int maxConnectionsPerStar,
|
||||
float maxConnectionDistance, float activeStarSize, float lineWidth,
|
||||
Vector3 orbitalVelocity, float angularVelocity)
|
||||
: base(elementName, elementGuid, tags, attachedElement, themeBundleName, objectName, isStatic)
|
||||
{
|
||||
this.maxParticles = maxParticles;
|
||||
this.maxLineCount = maxLineCount;
|
||||
this.spreadSize = spreadSize;
|
||||
this.maxConnectionsPerStar = maxConnectionsPerStar;
|
||||
|
||||
this.maxConnectionDistance = maxConnectionDistance;
|
||||
this.activeStarSize = activeStarSize;
|
||||
this.lineWidth = lineWidth;
|
||||
|
||||
this.orbitalVelocity = orbitalVelocity;
|
||||
this.angularVelocity = angularVelocity;
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMConstellation.GenerateElement(
|
||||
elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isStatic,
|
||||
maxParticles, maxLineCount,
|
||||
spreadSize, maxConnectionsPerStar,
|
||||
maxConnectionDistance, activeStarSize, lineWidth,
|
||||
orbitalVelocity, angularVelocity);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a1ccbb5854a4bc408bf64aeb4e002bf
|
||||
Reference in New Issue
Block a user