This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-14 03:07:34 +08:00
parent edafe4a058
commit d56c133a75
5989 changed files with 8767 additions and 441137 deletions

View File

@@ -0,0 +1,42 @@
using System;
using JNGame.Util.Types;
namespace JNGame.Runtime.Entitas
{
public abstract class JNLookup
{
private int _index = 0;
public int Count => _index;
public int Next()
{
return _index++;
}
private readonly KeyValue<int, Type> _types = new();
public JNLookup()
{
BindIndex();
BindType(_types);
}
protected abstract void BindIndex();
protected abstract void BindType(KeyValue<int, Type> types);
//查询下标
public int GetIndex(Type type)
{
return _types.Value2Key(type);
}
//查询下标
public int GetIndex<T>()
{
return _types.Value2Key(typeof(T));
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2bc1af669bc0434ba4c21616d82b4c40
timeCreated: 1720750362

View File

@@ -0,0 +1,10 @@
using Cysharp.Threading.Tasks;
using Entitas;
namespace JNGame.Runtime.Entitas
{
public class JNSystemLoad : ISystem
{
public virtual async UniTask Init(){}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: df35cc9e536a41b6901e0184f24421a4
timeCreated: 1715159481