Entitas
0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Entitas
Entitas
Extensions
TypeExtension.cs
1
using
System
;
2
using
System
.Linq;
3
4
namespace
Entitas
{
5
6
public
static
class
TypeExtension
{
7
8
/// Determines whether the type implements the specified interface
9
/// and is not an interface itself.
10
public
static
bool
ImplementsInterface<T>
(
this
Type type) {
11
if
(!type.IsInterface && type.GetInterfaces().Contains(typeof(T))) {
12
return
true
;
13
}
14
15
return
false
;
16
}
17
}
18
}
Entitas
Definition:
EntitasCache.cs:3
System
Entitas.TypeExtension
Definition:
TypeExtension.cs:6
Entitas.TypeExtension.ImplementsInterface< T >
static bool ImplementsInterface< T >(this Type type)
Definition:
TypeExtension.cs:10
Generated by
1.8.12