reflection goes out of the window
This commit is contained in:
@ -2,8 +2,6 @@ package ecs
|
||||
|
||||
// ECS system by jcerise, github.com/jcerise/gogue
|
||||
|
||||
import "reflect"
|
||||
|
||||
// IntInSlice will return true if the integer value provided is present in the slice provided, false otherwise.
|
||||
func IntInSlice(a int, list []int) bool {
|
||||
for _, b := range list {
|
||||
@ -15,7 +13,7 @@ func IntInSlice(a int, list []int) bool {
|
||||
}
|
||||
|
||||
// TypeInSlice will return true if the reflect.Type provided is present in the slice provided, false otherwise.
|
||||
func TypeInSlice(a reflect.Type, list []reflect.Type) bool {
|
||||
func TypeInSlice(a string, list []string) bool {
|
||||
for _, b := range list {
|
||||
if b == a {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user