提交编辑器确定数据

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-21 03:15:02 +08:00
parent cbacd5a501
commit 0371576f87
35 changed files with 11621 additions and 16049 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using JNGame.Math;
using Sirenix.OdinInspector;
using UnityEngine;
@@ -54,11 +55,11 @@ namespace GAS.Runtime
[InfoBox("计算逻辑与ScalableFloatModCalculation一致, 公式AttributeValue * k + b")]
[TabGroup("Default", "AttributeBasedModCalculation")]
[LabelText("系数(k)")]
public float k = 1;
public LFloat k = 1;
[TabGroup("Default", "AttributeBasedModCalculation")]
[LabelText("常量(b)")]
public float b = 0;
public LFloat b = 0;
public override float CalculateMagnitude(GameplayEffectSpec spec, float modifierMagnitude)
{

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 49241b5db40b450f934fb9de0841b2fc
timeCreated: 1729415696

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 7f1317ff9b314419b0e48ae76657c960
timeCreated: 1729415730

View File

@@ -1,28 +0,0 @@
using System;
using JNGame.Math;
using Sirenix.OdinInspector;
using UnityEngine;
namespace JNGame.Runtime.Odin.TypeCustomize
{
[Serializable]
public class OdinLVector3
{
[LabelText("X (x1000)")]
public int X;
[LabelText("Y (x1000)")]
public int Y;
[LabelText("Z (x1000)")]
public int Z;
public Vector3 ToVector3()
{
return (new LVector3(true, X * LFloat.RateOfOldPrecision, Y * LFloat.RateOfOldPrecision, Z * LFloat.RateOfOldPrecision)).ToVector3();
}
public LVector3 ToLVector3()
{
return (new LVector3(true, X * LFloat.RateOfOldPrecision, Y * LFloat.RateOfOldPrecision, Z * LFloat.RateOfOldPrecision));
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: bfdfa8bae636419282b29d0cfb4d9239
timeCreated: 1729415750