scripting system, hue fixes and such

This commit is contained in:
2023-08-29 00:06:57 +02:00
parent da8fd03e8a
commit 8776ed6df3
48 changed files with 1128 additions and 72 deletions
+1
View File
@@ -2,6 +2,7 @@ package device
type Resolver interface {
Resolve(pattern string) []Pointer
CompileMatcher(pattern string) PointerMatcher
}
type SceneMap interface {
+7
View File
@@ -2,6 +2,7 @@ package device
import (
"git.aiterp.net/lucifer3/server/internal/gentools"
"log"
"strings"
)
@@ -69,6 +70,12 @@ func (p *Pointer) Name() string {
}
func (p *Pointer) Matches(matcher PointerMatcher) bool {
defer func() {
if err := recover(); err != nil {
log.Println("[PANIC]", err)
}
}()
if matcher.Match(p.ID) {
return true
}