riversong code showcase
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class DisableDiscoveryAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
15
Source/Engine/Core/Attributes/GameSystemGroupAttribute.cs
Normal file
15
Source/Engine/Core/Attributes/GameSystemGroupAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class GameSystemGroupAttribute : Attribute
|
||||
{
|
||||
public GameSystemGroupAttribute(Type systemGroupType)
|
||||
{
|
||||
SystemGroupType = systemGroupType;
|
||||
}
|
||||
|
||||
public Type SystemGroupType { get; set; }
|
||||
}
|
||||
}
|
||||
15
Source/Engine/Core/Attributes/InjectServiceAttribute.cs
Normal file
15
Source/Engine/Core/Attributes/InjectServiceAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class InjectServiceAttribute : Attribute
|
||||
{
|
||||
public InjectServiceAttribute(Type serviceType = null)
|
||||
{
|
||||
ServiceType = serviceType;
|
||||
}
|
||||
|
||||
public Type ServiceType { get; set; }
|
||||
}
|
||||
}
|
||||
15
Source/Engine/Core/Attributes/ServiceAttribute.cs
Normal file
15
Source/Engine/Core/Attributes/ServiceAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public class ServiceAttribute : Attribute
|
||||
{
|
||||
public ServiceAttribute(Type serviceType = null)
|
||||
{
|
||||
ServiceType = serviceType;
|
||||
}
|
||||
|
||||
public Type ServiceType { get; set; }
|
||||
}
|
||||
}
|
||||
57
Source/Engine/Core/Attributes/SortingAttributes.cs
Normal file
57
Source/Engine/Core/Attributes/SortingAttributes.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public class SortingAttribute : Attribute
|
||||
{
|
||||
protected SortingAttribute(Type systemType)
|
||||
{
|
||||
SystemType = systemType;
|
||||
}
|
||||
|
||||
public Type SystemType { get; set; }
|
||||
}
|
||||
|
||||
public class InitializeAfterAttribute : SortingAttribute
|
||||
{
|
||||
public InitializeAfterAttribute(Type systemType) : base(systemType)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class InitializeBeforeAttribute : SortingAttribute
|
||||
{
|
||||
public InitializeBeforeAttribute(Type systemType) : base(systemType)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class UpdateAfterAttribute : SortingAttribute
|
||||
{
|
||||
public UpdateAfterAttribute(Type systemType) : base(systemType)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class UpdateBeforeAttribute : SortingAttribute
|
||||
{
|
||||
public UpdateBeforeAttribute(Type systemType) : base(systemType)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class DisposeAfterAttribute : SortingAttribute
|
||||
{
|
||||
public DisposeAfterAttribute(Type systemType) : base(systemType)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class DisposeBeforeAttribute : SortingAttribute
|
||||
{
|
||||
public DisposeBeforeAttribute(Type systemType) : base(systemType)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user