fix ITemplateInternal

This commit is contained in:
Mikhail 2024-03-11 05:59:57 +08:00
parent 60b6cb6a67
commit f2d2274b61
4 changed files with 15 additions and 11 deletions

View File

@ -88,9 +88,9 @@ namespace DCFApixels.DragonECS
{ {
get { return _monoTemplates; } get { return _monoTemplates; }
} }
public IEnumerable<ITemplateInternal> AllTemplates public IEnumerable<ITemplate> AllTemplates
{ {
get { return ((IEnumerable<ITemplateInternal>)_scriptableTemplates).Concat(_monoTemplates); } get { return ((IEnumerable<ITemplate>)_scriptableTemplates).Concat(_monoTemplates); }
} }
#endregion #endregion

View File

@ -9,13 +9,6 @@
//void Add(ITemplateNode template); //void Add(ITemplateNode template);
//void Remove(ITemplateNode template); //void Remove(ITemplateNode template);
} }
public interface ITemplateInternal : ITemplate
{
string ComponentsPropertyName { get; }
//EntityTemplateInheritanceMatrix InheritanceMatrix { get; }
}
public static class ITemplateExtensions public static class ITemplateExtensions
{ {
public static int NewEntity(this EcsWorld world, ITemplateNode template) public static int NewEntity(this EcsWorld world, ITemplateNode template)
@ -55,3 +48,12 @@
// #endregion // #endregion
//} //}
} }
namespace DCFApixels.DragonECS.Unity.Internal
{
internal interface ITemplateInternal : ITemplate
{
string ComponentsPropertyName { get; }
//EntityTemplateInheritanceMatrix InheritanceMatrix { get; }
}
}

View File

@ -1,4 +1,5 @@
using System; using DCFApixels.DragonECS.Unity.Internal;
using System;
using UnityEngine; using UnityEngine;
namespace DCFApixels.DragonECS namespace DCFApixels.DragonECS

View File

@ -1,4 +1,5 @@
using System; using DCFApixels.DragonECS.Unity.Internal;
using System;
using UnityEngine; using UnityEngine;
namespace DCFApixels.DragonECS namespace DCFApixels.DragonECS