mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-11-13 00:55:55 +08:00
Merge branch 'dev' of github.com:DCFApixels/DragonECS into dev
This commit is contained in:
commit
cd045f3002
@ -8,7 +8,7 @@
|
|||||||
"displayName": "DragonECS",
|
"displayName": "DragonECS",
|
||||||
"description": "C# Entity Component System Framework",
|
"description": "C# Entity Component System Framework",
|
||||||
"unity": "2020.3",
|
"unity": "2020.3",
|
||||||
"version": "0.8.50",
|
"version": "0.8.51",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/DCFApixels/DragonECS.git"
|
"url": "https://github.com/DCFApixels/DragonECS.git"
|
||||||
|
|||||||
@ -17,7 +17,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
if (MetaID.IsGenericID(id) == false)
|
if (MetaID.IsGenericID(id) == false)
|
||||||
{
|
{
|
||||||
Throw.ArgumentException($"Иентификатор {id} содержит не допустимые символы: ,<>");
|
Throw.ArgumentException($"Identifier {id} contains invalid characters: ,<>");
|
||||||
}
|
}
|
||||||
id = string.Intern(id);
|
id = string.Intern(id);
|
||||||
ID = id;
|
ID = id;
|
||||||
|
|||||||
@ -176,6 +176,10 @@ namespace DCFApixels.DragonECS
|
|||||||
#region AddModule IEcsModule
|
#region AddModule IEcsModule
|
||||||
public Builder AddModule(IEcsModule module, AddParams parameters)
|
public Builder AddModule(IEcsModule module, AddParams parameters)
|
||||||
{
|
{
|
||||||
|
if(module is IEcsProcess system)
|
||||||
|
{
|
||||||
|
return AddSystem_Internal(system, parameters);
|
||||||
|
}
|
||||||
return AddModule_Internal(module, parameters);
|
return AddModule_Internal(module, parameters);
|
||||||
}
|
}
|
||||||
private Builder AddModule_Internal(IEcsModule module, AddParams settedAddParams)
|
private Builder AddModule_Internal(IEcsModule module, AddParams settedAddParams)
|
||||||
@ -564,7 +568,8 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
if (AreMatchingOrderIdentical(listA, listB) == false)
|
if (AreMatchingOrderIdentical(listA, listB) == false)
|
||||||
{
|
{
|
||||||
Throw.Exception("Для слияния списков слоев, нужно чтобы названия слоев, присутствующие в обоих списках, появлялись в одном и том же порядке в обоих списках");
|
//Для слияния списков слоев, нужно чтобы названия слоев, присутствующие в обоих списках, появлялись в одном и том же порядке в обоих списках
|
||||||
|
Throw.Exception("To merge layer lists, the names of the layers present in both lists must appear in the same order in both lists.");
|
||||||
}
|
}
|
||||||
|
|
||||||
HashSet<string> seen = new HashSet<string>();
|
HashSet<string> seen = new HashSet<string>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user