You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
572 B

using System;
using System.Collections.Generic;
namespace gaemstone.ECS;
[AttributeUsage(AttributeTargets.Class)]
public class ModuleAttribute : Attribute { }
public interface IModuleInitializer
{
void Initialize(EntityRef module);
}
// The following will be implemented on [Module]
// types automatically for you by source generators.
public interface IModule
{
static abstract string ModulePath { get; }
static abstract IEnumerable<string> Dependencies { get; }
}
public interface IModuleAutoRegisterComponents
{
void RegisterComponents(EntityRef module);
}