提交Unity 联机Pro

This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-17 14:27:18 +08:00
parent f00193b000
commit 894100ae37
7448 changed files with 854473 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using Entitas;
using JNGame.Util.Types;
namespace JNGame.EntitasExtend
{
public abstract class JNLookup
{
private int _index = 0;
public int Count => _index + 1;
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.EntitasExtend
{
public class JNSystemLoad : ISystem
{
public virtual async UniTask Init(){}
}
}

View File

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