Codex实装,RegularGridFloor
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
[System.Serializable]
|
||||
public class DTMRegularGridFloor_BM : EnvironmentObject_BM
|
||||
{
|
||||
public float gridSizeX = 100f;
|
||||
public float gridSizeY = 100f;
|
||||
public float gridDensity = 1f;
|
||||
public float lineThickness = 0.05f;
|
||||
public float edgeSoftness;
|
||||
public float moveVectorX;
|
||||
public float moveVectorY;
|
||||
|
||||
public bool enableOuterBorder = true;
|
||||
public float outerBorderColorR = 1f;
|
||||
public float outerBorderColorG = 1f;
|
||||
public float outerBorderColorB = 1f;
|
||||
public float outerBorderColorA = 1f;
|
||||
public float outerBorderWidth = 0.005f;
|
||||
|
||||
public DTMRegularGridFloor_BM()
|
||||
{
|
||||
}
|
||||
|
||||
public DTMRegularGridFloor_BM(string elementName, Guid elementGuid, List<string> tags, GameElement_BM attachedElement,
|
||||
string themeBundleName, string objectName, bool isStatic,
|
||||
float gridSizeX, float gridSizeY, float gridDensity,
|
||||
float lineThickness, float edgeSoftness, float moveVectorX, float moveVectorY,
|
||||
bool enableOuterBorder, Color outerColor, float outerBorderWidth)
|
||||
: base(elementName, elementGuid, tags, attachedElement, themeBundleName, objectName, isStatic)
|
||||
{
|
||||
this.gridSizeX = gridSizeX;
|
||||
this.gridSizeY = gridSizeY;
|
||||
this.gridDensity = gridDensity;
|
||||
this.lineThickness = lineThickness;
|
||||
this.edgeSoftness = edgeSoftness;
|
||||
this.moveVectorX = moveVectorX;
|
||||
this.moveVectorY = moveVectorY;
|
||||
|
||||
this.enableOuterBorder = enableOuterBorder;
|
||||
this.outerBorderColorR = outerColor.r;
|
||||
this.outerBorderColorG = outerColor.g;
|
||||
this.outerBorderColorB = outerColor.b;
|
||||
this.outerBorderColorA = outerColor.a;
|
||||
this.outerBorderWidth = outerBorderWidth;
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
Color outerColor = new Color(outerBorderColorR, outerBorderColorG, outerBorderColorB, outerBorderColorA);
|
||||
|
||||
matchedElement = DTMRegularGridFloor.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isStatic,
|
||||
gridSizeX, gridSizeY, gridDensity,
|
||||
lineThickness, edgeSoftness, moveVectorX, moveVectorY,
|
||||
enableOuterBorder, outerColor, outerBorderWidth);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ad518678d80432788eb0ed64b0ab344
|
||||
Reference in New Issue
Block a user