临时提交

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-19 03:51:59 +08:00
parent 425f2eabea
commit 1315802fa2
162 changed files with 16452 additions and 11111 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5ac3500978fa4ddea0bc31deeeb97fc8
timeCreated: 1729277104

View File

@@ -0,0 +1,46 @@
using System;
using JNGame.Math;
using UnityEngine;
namespace JNGame.Sync.System.Data.Type
{
[Serializable]
public class DValuePosition
{
public long x;
public long y;
public long z;
public Vector3 ToVector3()
{
return new Vector3()
{
x = new LFloat(true,x).ToFloat(),
y = new LFloat(true,y).ToFloat(),
z = new LFloat(true,z).ToFloat(),
};
}
public override bool Equals(object obj)
{
if (obj is not DValuePosition old) return false;
return old.x == x && old.y == y && old.z == z;
}
public LVector3 ToLVector3()
{
return new LVector3(new LFloat(true,x), new LFloat(true,y), new LFloat(true,z));
}
public static DValuePosition Build(LVector3 vec3)
{
return new DValuePosition()
{
x = vec3.x.rawValue,
y = vec3.y.rawValue,
z = vec3.z.rawValue,
};
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 61dc0f629c2e4039b3d0a3a09a6dd9e4
timeCreated: 1729277108

View File

@@ -0,0 +1,24 @@
using GAS.Runtime;
using JNGame.Sync.System;
namespace JNGame.Runtime.Sync.System.Logic
{
/// <summary>
/// GAS 系统
/// </summary>
public class JNGASSystem : SLogicSystem
{
/// <summary>
/// GAS 管理器
/// </summary>
private JexGasManager _gas = new JexGasManager();
public JexGasManager GAS => _gas;
public override void OnSyncStart()
{
base.OnSyncStart();
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a2ad6a2528004e829e468bd37c84b181
timeCreated: 1729280850

View File

@@ -132,7 +132,7 @@ namespace JNGame.Sync.System.View
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
public T Input<T>() where T : JNInputBase,new()
public T UIInput<T>() where T : JNInputBase,new()
{
lock (UIInputs)
{
@@ -145,10 +145,10 @@ namespace JNGame.Sync.System.View
}
/// <summary>
/// 移出输入
/// 移出 UI 输入
/// </summary>
/// <returns></returns>
public JNFrameInputs Dequeue()
public JNFrameInputs UIInputDequeue()
{
lock (UIInputs)
{
@@ -169,7 +169,7 @@ namespace JNGame.Sync.System.View
/// <summary>
/// 移入输入
/// </summary>
public void UpdateSInputs()
private void UpdateSInputs()
{
SInputs.Clear();

View File

@@ -49,13 +49,6 @@ namespace JNGame.Sync.System
//数据集
public ConcurrentDictionary<ulong, T> Data = new();
public virtual T[] Datas {
get
{
return Data.Values.ToArray();
}
}
public override void OnSyncStart()
{
//设置数据唯一Id

View File

@@ -3,7 +3,7 @@
namespace JNGame.Sync.System
{
/// <summary>
/// 帧同步 - 视图系统
/// 视图系统
/// </summary>
public class SViewSystem : SBaseSystem,IJNSyncCycle,IExecuteSystem
{