[+] 接入ET8服务端

[+] 接入ET8服务端
This commit is contained in:
ALEXTANG
2023-07-13 12:23:48 +08:00
parent e0be062006
commit 336d4b2eb9
1316 changed files with 130657 additions and 626 deletions

View File

@@ -0,0 +1,15 @@
using System;
namespace ET
{
[AttributeUsage(AttributeTargets.Class)]
public class ChildOfAttribute : Attribute
{
public Type type;
public ChildOfAttribute(Type type = null)
{
this.type = type;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9e06bd31e846d9a4abe88d5864a0a4d3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,20 @@
using System;
namespace ET
{
/// <summary>
/// 组件类父级实体类型约束
/// 父级实体类型唯一的 标记指定父级实体类型[ComponentOf(typeof(parentType)]
/// 不唯一则标记[ComponentOf]
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class ComponentOfAttribute : Attribute
{
public Type Type;
public ComponentOfAttribute(Type type = null)
{
this.Type = type;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3e17786fd2fafce4f9d9fbdcdbf5b9fc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,15 @@
using System;
namespace ET
{
/// <summary>
/// 当方法或属性内需要访问Entity类的child和component时 使用此标签
/// 仅供必要时使用 大多数情况推荐通过Entity的子类访问
/// </summary>
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property)]
public class EnableAccessEntiyChildAttribute : Attribute
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5b4d17f76cb73474e94eb82e30be2560
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,6 @@
namespace ET
{
public class EnableClassAttribute: BaseAttribute
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 41028c857d1434bd78bb45a748e476e8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using System;
namespace ET
{
/// <summary>
/// 对于特殊实体类 允许类内部声明方法的标签
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class EnableMethodAttribute : Attribute
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ce20015df46fb774eaf1cacc7cd9e35b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,26 @@
using System;
namespace ET
{
[AttributeUsage(AttributeTargets.Class)]
public class EntitySystemOfAttribute: BaseAttribute
{
public Type type;
public EntitySystemOfAttribute(Type type)
{
this.type = type;
}
}
[AttributeUsage(AttributeTargets.Class)]
public class LSEntitySystemOfAttribute: BaseAttribute
{
public Type type;
public LSEntitySystemOfAttribute(Type type)
{
this.type = type;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 50901d1f8551c05499583f1a5d362d06
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,16 @@
using System;
namespace ET
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public class FriendOfAttribute : Attribute
{
public Type Type;
public FriendOfAttribute(Type type)
{
this.Type = type;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 516811198a72ec541a5f8f0e40454fa5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,36 @@
using System;
namespace ET
{
/// <summary>
/// 静态字段需加此标签
/// valueToAssign: 初始化时的字段值
/// assignNewTypeInstance: 从默认构造函数初始化
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class StaticFieldAttribute: Attribute
{
public readonly object valueToAssign;
public readonly bool assignNewTypeInstance;
public StaticFieldAttribute()
{
this.valueToAssign = null;
this.assignNewTypeInstance = false;
}
public StaticFieldAttribute(object valueToAssign )
{
this.valueToAssign = valueToAssign ;
this.assignNewTypeInstance = false;
}
public StaticFieldAttribute(bool assignNewTypeInstance)
{
this.valueToAssign = null;
this.assignNewTypeInstance = assignNewTypeInstance;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f0f1fd366c9df9c439b8e552ac26e607
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,24 @@
using System;
namespace ET
{
/// <summary>
/// 唯一Id标签
/// 使用此标签标记的类 会检测类内部的 const int 字段成员是否唯一
/// 可以指定唯一Id的最小值 最大值区间
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class UniqueIdAttribute : Attribute
{
public int Min;
public int Max;
public UniqueIdAttribute(int min = int.MinValue, int max = int.MaxValue)
{
this.Min = min;
this.Max = max;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 62584bd88ecb9ce439aeaaf2f76605f5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: