This commit is contained in:
PC-20230316NUNE\Administrator
2024-09-29 20:18:48 +08:00
parent e822544d9c
commit c5700ce655
1797 changed files with 40580 additions and 23804 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