Entitas
0.40.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Entitas
Entitas
Group
GroupSingleEntityException.cs
1
using
System
.Linq;
2
3
namespace
Entitas
{
4
5
public
class
GroupSingleEntityException
<TEntity> :
EntitasException
where TEntity : class,
IEntity
, new() {
6
7
public
GroupSingleEntityException
(
IGroup<TEntity>
group)
8
: base(
"Cannot get the single entity from "
+ group +
9
"!\nGroup contains "
+ group.count +
" entities:"
,
10
string
.Join(
"\n"
, group.GetEntities().Select(e => e.ToString()).ToArray())) {
11
}
12
}
13
}
Entitas
Definition:
Collector.cs:4
Entitas.GroupSingleEntityException
Definition:
GroupSingleEntityException.cs:5
Entitas.IGroup< TEntity >
System
Entitas.IEntity
Definition:
IEntity.cs:14
Entitas.EntitasException
Base exception used by Entitas.
Definition:
EntitasException.cs:6
Generated by
1.8.13