mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
提交
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18d28ad812b25de4487b5bb2f1f3ac22
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public class CleanupAttribute : Attribute
|
||||
{
|
||||
public readonly CleanupMode cleanupMode;
|
||||
|
||||
public CleanupAttribute(CleanupMode cleanupMode)
|
||||
{
|
||||
this.cleanupMode = cleanupMode;
|
||||
}
|
||||
}
|
||||
|
||||
public enum CleanupMode
|
||||
{
|
||||
RemoveComponent,
|
||||
DestroyEntity
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b30c1f54c5881874194ac30ebf4fcb53
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public class ComponentNameAttribute : Attribute
|
||||
{
|
||||
public readonly string[] componentNames;
|
||||
|
||||
public ComponentNameAttribute(params string[] componentNames)
|
||||
{
|
||||
this.componentNames = componentNames;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[Obsolete("Use [ComponentName] instead", false)]
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public class CustomComponentNameAttribute : Attribute
|
||||
{
|
||||
public readonly string[] componentNames;
|
||||
|
||||
public CustomComponentNameAttribute(params string[] componentNames)
|
||||
{
|
||||
this.componentNames = componentNames;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91438c4a9d7e43d4bb93f70d97aab1af
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = true)]
|
||||
public class ContextAttribute : Attribute
|
||||
{
|
||||
public readonly string contextName;
|
||||
|
||||
public ContextAttribute(string contextName)
|
||||
{
|
||||
this.contextName = contextName;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d71ffb2dcbd5f74db6ed1c155550869
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class)]
|
||||
public class CustomEntityIndexAttribute : Attribute
|
||||
{
|
||||
public readonly Type contextType;
|
||||
|
||||
public CustomEntityIndexAttribute(Type contextType)
|
||||
{
|
||||
this.contextType = contextType;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a6ace52d57684a4ba332408572c445f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public class DontGenerateAttribute : Attribute
|
||||
{
|
||||
public readonly bool generateIndex;
|
||||
|
||||
public DontGenerateAttribute(bool generateIndex = true)
|
||||
{
|
||||
this.generateIndex = generateIndex;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4a5c7a560fbe67641942f827dd8c3ee3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58d2df893a4de1b42aba52402241032e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7070af680c0e054587249160ec2ed4f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
public abstract class AbstractEntityIndexAttribute : Attribute
|
||||
{
|
||||
public readonly EntityIndexType entityIndexType;
|
||||
|
||||
protected AbstractEntityIndexAttribute(EntityIndexType entityIndexType)
|
||||
{
|
||||
this.entityIndexType = entityIndexType;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 328654a052ab586468aca6796b64660f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class)]
|
||||
public class EntityIndexAttribute : AbstractEntityIndexAttribute
|
||||
{
|
||||
public EntityIndexAttribute() : base(EntityIndexType.EntityIndex) { }
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94e47cb2ce2aa81409d8bbdd8f5f2f1e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class EntityIndexGetMethodAttribute : Attribute { }
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 126d23e5686b9f94d8adba76e51b4825
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,8 @@
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
public enum EntityIndexType
|
||||
{
|
||||
EntityIndex,
|
||||
PrimaryEntityIndex
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a4ae2d181ed328408e34f5519dd54c4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class)]
|
||||
public class PrimaryEntityIndexAttribute : AbstractEntityIndexAttribute
|
||||
{
|
||||
public PrimaryEntityIndexAttribute() : base(EntityIndexType.PrimaryEntityIndex) { }
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9d37872e44a5f4429058c7ee98bc617
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = true)]
|
||||
public class EventAttribute : Attribute
|
||||
{
|
||||
public readonly EventTarget eventTarget;
|
||||
public readonly EventType eventType;
|
||||
public readonly int priority;
|
||||
|
||||
public EventAttribute(EventTarget eventTarget, EventType eventType = EventType.Added, int priority = 0)
|
||||
{
|
||||
this.eventTarget = eventTarget;
|
||||
this.eventType = eventType;
|
||||
this.priority = priority;
|
||||
}
|
||||
}
|
||||
|
||||
public enum EventTarget
|
||||
{
|
||||
Any,
|
||||
Self
|
||||
}
|
||||
|
||||
public enum EventType
|
||||
{
|
||||
Added,
|
||||
Removed
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18e9505d0ba252c428346e532badefbd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public class FlagPrefixAttribute : Attribute
|
||||
{
|
||||
public readonly string prefix;
|
||||
|
||||
public FlagPrefixAttribute(string prefix)
|
||||
{
|
||||
this.prefix = prefix;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65a79b4eb4b023749b382aa64d65ec59
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class PostConstructorAttribute : Attribute { }
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a5375902151f26647a3d3db944058d7f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Entitas.CodeGeneration.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public class UniqueAttribute : Attribute { }
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d8e600a008fe094fb6d65d56cf5b331
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user