mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
提交GAS
This commit is contained in:
@@ -61,7 +61,7 @@ namespace GAS.Editor
|
||||
{
|
||||
if (frameIndex < startFrame || frameIndex > endFrame) return;
|
||||
var ongoingAbilityTask = TaskClipData.Load();
|
||||
ongoingAbilityTask.OnEditorPreview( frameIndex, startFrame, endFrame);
|
||||
ongoingAbilityTask.OnEditorPreview( AbilityTimelineEditorWindow.Instance.PreviewObject,frameIndex, startFrame, endFrame);
|
||||
}
|
||||
|
||||
public override UnityEngine.Object DataInspector => TaskClipEditor.Create(this);
|
||||
|
@@ -174,14 +174,16 @@ namespace GAS.Editor
|
||||
var assembly = assemblies[i];
|
||||
if (assembly == null) { continue; }
|
||||
var assName = assembly.GetName().Name;
|
||||
if (!"GAS.UnityExt.Runtime".Equals(assName)) { continue; }
|
||||
if ("JNGame.Runtime".Equals(assName)) { continue; }
|
||||
if ("JNGame.Root".Equals(assName)) { continue; }
|
||||
if ("JNGame.Editor".Equals(assName)) { continue; }
|
||||
// 筛选非抽象的ModifierMagnitudeCalculation派生类
|
||||
var lst = assembly.GetTypes().Where(
|
||||
clsType => !clsType.IsAbstract && clsType.IsSubclassOf(typeof(ModifierMagnitudeCalculation)) && outFilter.IndexOf(clsType.Name) < 0
|
||||
);
|
||||
subTypeFromScriptableMMC.AddRange(lst);
|
||||
}
|
||||
var dir = "Assets/GameScript/HotFix/GAS.UnityExt/Runtime/CodeGen";// gasSetting.LogicCodeGeneratePath;
|
||||
var dir = gasSetting.LogicCodeGeneratePath;// gasSetting.LogicCodeGeneratePath;
|
||||
CodeGenScriptableMMCInjecter.GenCode(new CodeGenInfo()
|
||||
{
|
||||
codeGenNameSpace = "JNGame.GAS",
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
using JNGame.Serialization;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GAS.Runtime
|
||||
{
|
||||
@@ -13,10 +14,11 @@ namespace GAS.Runtime
|
||||
/// 编辑器预览用
|
||||
/// 【注意】 覆写时,记得用UNITY_EDITOR宏包裹,这是预览表现用的函数,不该被编译。
|
||||
/// </summary>
|
||||
/// <param name="preview"></param>
|
||||
/// <param name="frame"></param>
|
||||
/// <param name="startFrame"></param>
|
||||
/// <param name="endFrame"></param>
|
||||
public virtual void OnEditorPreview(int frame, int startFrame, int endFrame)
|
||||
public virtual void OnEditorPreview(GameObject preview,int frame, int startFrame, int endFrame)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
@@ -18,7 +18,7 @@ namespace JNGame.Runtime.GAS.Runtime
|
||||
#endif
|
||||
|
||||
//---------------- 全局信息 ------------------------------------------------------------------------------------------
|
||||
private static int _TimeLineAbilityTickTime = 20;
|
||||
private static int _TimeLineAbilityTickTime = 100;
|
||||
public static int TimeLineAbilityTickTime => _TimeLineAbilityTickTime;
|
||||
public static int FrameRateValue => 1000 / _TimeLineAbilityTickTime;
|
||||
|
||||
|
Reference in New Issue
Block a user