From 0dc29c0989531d87ba06582a2ffce5ddc1f27ad2 Mon Sep 17 00:00:00 2001 From: fivecdx Date: Thu, 10 Mar 2022 10:38:19 +0800 Subject: [PATCH] =?UTF-8?q?[o][=E4=BF=AE=E6=94=B9=E5=BC=95=E7=94=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actions/Error.go | 4 ++-- actions/Failer.go | 4 ++-- actions/Log.go | 6 +++--- actions/Runner.go | 4 ++-- actions/Succeeder.go | 4 ++-- actions/Wait.go | 6 +++--- composites/MemPriority.go | 4 ++-- composites/MemSequence.go | 4 ++-- composites/Priority.go | 4 ++-- composites/Sequence.go | 6 +++--- core/Action.go | 4 ++-- core/BaseNode.go | 4 ++-- core/BaseNodeWorker.go | 4 ++-- core/BehaviorTree.go | 4 ++-- core/Composite.go | 4 ++-- core/Condition.go | 4 ++-- core/Decorator.go | 4 ++-- core/SubTree.go | 4 ++-- decorators/Inverter.go | 4 ++-- decorators/Limiter.go | 6 +++--- decorators/MaxTime.go | 6 +++--- decorators/RepeatUnitilFailure.go | 6 +++--- decorators/RepeatUntilSuccess.go | 6 +++--- decorators/Repeater.go | 6 +++--- examples/load_from_project/main.go | 10 +++++----- examples/load_from_rawproject/main.go | 10 +++++----- examples/load_from_tree/main.go | 10 +++++----- examples/memsubtree/main.go | 10 +++++----- examples/share/share.go | 12 ++++++------ examples/share/value.go | 12 ++++++------ examples/subtree/main.go | 10 +++++----- loader/BevTreeFactory.go | 12 ++++++------ loader/loader_test.go | 12 ++++++------ 33 files changed, 105 insertions(+), 105 deletions(-) diff --git a/actions/Error.go b/actions/Error.go index baec284..1a5956b 100644 --- a/actions/Error.go +++ b/actions/Error.go @@ -1,8 +1,8 @@ package actions import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type Error struct { diff --git a/actions/Failer.go b/actions/Failer.go index 80567a9..dc7b354 100644 --- a/actions/Failer.go +++ b/actions/Failer.go @@ -1,8 +1,8 @@ package actions import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type Failer struct { diff --git a/actions/Log.go b/actions/Log.go index 0df4f8c..d193722 100644 --- a/actions/Log.go +++ b/actions/Log.go @@ -3,9 +3,9 @@ package actions import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) type Log struct { diff --git a/actions/Runner.go b/actions/Runner.go index ca4969e..f256139 100644 --- a/actions/Runner.go +++ b/actions/Runner.go @@ -1,8 +1,8 @@ package actions import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type Runner struct { diff --git a/actions/Succeeder.go b/actions/Succeeder.go index bb89ad6..c1105f4 100644 --- a/actions/Succeeder.go +++ b/actions/Succeeder.go @@ -1,8 +1,8 @@ package actions import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type Succeeder struct { diff --git a/actions/Wait.go b/actions/Wait.go index 64032d5..db6098f 100644 --- a/actions/Wait.go +++ b/actions/Wait.go @@ -1,9 +1,9 @@ package actions import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" "time" ) diff --git a/composites/MemPriority.go b/composites/MemPriority.go index 996711b..8c94e3d 100644 --- a/composites/MemPriority.go +++ b/composites/MemPriority.go @@ -1,8 +1,8 @@ package composites import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type MemPriority struct { diff --git a/composites/MemSequence.go b/composites/MemSequence.go index 839881c..54467e1 100644 --- a/composites/MemSequence.go +++ b/composites/MemSequence.go @@ -1,8 +1,8 @@ package composites import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type MemSequence struct { diff --git a/composites/Priority.go b/composites/Priority.go index 1a5c10d..1d9ea40 100644 --- a/composites/Priority.go +++ b/composites/Priority.go @@ -1,8 +1,8 @@ package composites import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) type Priority struct { diff --git a/composites/Sequence.go b/composites/Sequence.go index eb29c50..756fbb5 100644 --- a/composites/Sequence.go +++ b/composites/Sequence.go @@ -3,9 +3,9 @@ package composites import ( _ "fmt" - b3 "github.com/magicsea/behavior3go" - _ "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + _ "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) type Sequence struct { diff --git a/core/Action.go b/core/Action.go index 04f24e9..cfadaba 100644 --- a/core/Action.go +++ b/core/Action.go @@ -1,8 +1,8 @@ package core import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" ) type IAction interface { diff --git a/core/BaseNode.go b/core/BaseNode.go index 74e42e5..a82e1ed 100644 --- a/core/BaseNode.go +++ b/core/BaseNode.go @@ -3,8 +3,8 @@ package core import ( _ "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" ) type IBaseWrapper interface { diff --git a/core/BaseNodeWorker.go b/core/BaseNodeWorker.go index 270a53f..8401a11 100644 --- a/core/BaseNodeWorker.go +++ b/core/BaseNodeWorker.go @@ -4,8 +4,8 @@ import ( "fmt" _ "fmt" - b3 "github.com/magicsea/behavior3go" - _ "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + _ "github.com/walkon/behavior3go/config" ) type IBaseWorker interface { diff --git a/core/BehaviorTree.go b/core/BehaviorTree.go index c0ca7d3..daa26ea 100644 --- a/core/BehaviorTree.go +++ b/core/BehaviorTree.go @@ -3,8 +3,8 @@ package core import ( "fmt" - b3 "github.com/magicsea/behavior3go" - "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + "github.com/walkon/behavior3go/config" ) /** diff --git a/core/Composite.go b/core/Composite.go index af866ae..41f2d01 100644 --- a/core/Composite.go +++ b/core/Composite.go @@ -3,8 +3,8 @@ package core import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" ) type IComposite interface { diff --git a/core/Condition.go b/core/Condition.go index c5f3657..8d9f48d 100644 --- a/core/Condition.go +++ b/core/Condition.go @@ -1,8 +1,8 @@ package core import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" ) type ICondition interface { diff --git a/core/Decorator.go b/core/Decorator.go index da6f144..4d901d9 100644 --- a/core/Decorator.go +++ b/core/Decorator.go @@ -1,8 +1,8 @@ package core import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" ) type IDecorator interface { diff --git a/core/SubTree.go b/core/SubTree.go index c4b1da9..7a3bd88 100644 --- a/core/SubTree.go +++ b/core/SubTree.go @@ -1,8 +1,8 @@ package core import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" ) //子树,通过Name关联树ID查找 diff --git a/decorators/Inverter.go b/decorators/Inverter.go index 3175db1..83c956b 100644 --- a/decorators/Inverter.go +++ b/decorators/Inverter.go @@ -1,8 +1,8 @@ package decorators import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/core" ) /** diff --git a/decorators/Limiter.go b/decorators/Limiter.go index abc240e..718833c 100644 --- a/decorators/Limiter.go +++ b/decorators/Limiter.go @@ -1,9 +1,9 @@ package decorators import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) /** diff --git a/decorators/MaxTime.go b/decorators/MaxTime.go index 1c2fdcf..50e22ac 100644 --- a/decorators/MaxTime.go +++ b/decorators/MaxTime.go @@ -3,9 +3,9 @@ package decorators import ( "time" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) /** diff --git a/decorators/RepeatUnitilFailure.go b/decorators/RepeatUnitilFailure.go index b971b82..9fde447 100644 --- a/decorators/RepeatUnitilFailure.go +++ b/decorators/RepeatUnitilFailure.go @@ -1,9 +1,9 @@ package decorators import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) /** diff --git a/decorators/RepeatUntilSuccess.go b/decorators/RepeatUntilSuccess.go index 52c3c1c..ce084ef 100644 --- a/decorators/RepeatUntilSuccess.go +++ b/decorators/RepeatUntilSuccess.go @@ -1,9 +1,9 @@ package decorators import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) /** diff --git a/decorators/Repeater.go b/decorators/Repeater.go index 80d008f..b3dd68f 100644 --- a/decorators/Repeater.go +++ b/decorators/Repeater.go @@ -2,9 +2,9 @@ package decorators import ( - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" ) /** diff --git a/examples/load_from_project/main.go b/examples/load_from_project/main.go index 0cd793d..365c281 100644 --- a/examples/load_from_project/main.go +++ b/examples/load_from_project/main.go @@ -5,11 +5,11 @@ package main import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - . "github.com/magicsea/behavior3go/examples/share" - . "github.com/magicsea/behavior3go/loader" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + . "github.com/walkon/behavior3go/examples/share" + . "github.com/walkon/behavior3go/loader" ) func main() { diff --git a/examples/load_from_rawproject/main.go b/examples/load_from_rawproject/main.go index d6fdbe5..d5b444e 100644 --- a/examples/load_from_rawproject/main.go +++ b/examples/load_from_rawproject/main.go @@ -5,11 +5,11 @@ package main import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - . "github.com/magicsea/behavior3go/examples/share" - . "github.com/magicsea/behavior3go/loader" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + . "github.com/walkon/behavior3go/examples/share" + . "github.com/walkon/behavior3go/loader" ) func main() { diff --git a/examples/load_from_tree/main.go b/examples/load_from_tree/main.go index af90070..58c663b 100644 --- a/examples/load_from_tree/main.go +++ b/examples/load_from_tree/main.go @@ -5,11 +5,11 @@ package main import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - . "github.com/magicsea/behavior3go/examples/share" - . "github.com/magicsea/behavior3go/loader" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + . "github.com/walkon/behavior3go/examples/share" + . "github.com/walkon/behavior3go/loader" ) func main() { diff --git a/examples/memsubtree/main.go b/examples/memsubtree/main.go index 824daa1..d12ac7b 100644 --- a/examples/memsubtree/main.go +++ b/examples/memsubtree/main.go @@ -5,11 +5,11 @@ package main import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - . "github.com/magicsea/behavior3go/examples/share" - . "github.com/magicsea/behavior3go/loader" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + . "github.com/walkon/behavior3go/examples/share" + . "github.com/walkon/behavior3go/loader" "sync" "time" ) diff --git a/examples/share/share.go b/examples/share/share.go index 964caf8..595b0f6 100644 --- a/examples/share/share.go +++ b/examples/share/share.go @@ -2,12 +2,12 @@ package share import ( "fmt" - b3 "github.com/magicsea/behavior3go" - //. "github.com/magicsea/behavior3go/actions" - //. "github.com/magicsea/behavior3go/composites" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - //. "github.com/magicsea/behavior3go/decorators" + b3 "github.com/walkon/behavior3go" + //. "github.com/walkon/behavior3go/actions" + //. "github.com/walkon/behavior3go/composites" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + //. "github.com/walkon/behavior3go/decorators" ) //自定义action节点 diff --git a/examples/share/value.go b/examples/share/value.go index 0f1607d..0069af3 100644 --- a/examples/share/value.go +++ b/examples/share/value.go @@ -1,12 +1,12 @@ package share import ( - b3 "github.com/magicsea/behavior3go" - //. "github.com/magicsea/behavior3go/actions" - //. "github.com/magicsea/behavior3go/composites" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - //. "github.com/magicsea/behavior3go/decorators" + b3 "github.com/walkon/behavior3go" + //. "github.com/walkon/behavior3go/actions" + //. "github.com/walkon/behavior3go/composites" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + //. "github.com/walkon/behavior3go/decorators" ) //自定义action节点 diff --git a/examples/subtree/main.go b/examples/subtree/main.go index e045f41..cc5858b 100644 --- a/examples/subtree/main.go +++ b/examples/subtree/main.go @@ -5,11 +5,11 @@ package main import ( "fmt" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - . "github.com/magicsea/behavior3go/examples/share" - . "github.com/magicsea/behavior3go/loader" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + . "github.com/walkon/behavior3go/examples/share" + . "github.com/walkon/behavior3go/loader" "sync" ) diff --git a/loader/BevTreeFactory.go b/loader/BevTreeFactory.go index af25a90..24b5e09 100644 --- a/loader/BevTreeFactory.go +++ b/loader/BevTreeFactory.go @@ -4,12 +4,12 @@ import ( _ "fmt" _ "reflect" - b3 "github.com/magicsea/behavior3go" - . "github.com/magicsea/behavior3go/actions" - . "github.com/magicsea/behavior3go/composites" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - . "github.com/magicsea/behavior3go/decorators" + b3 "github.com/walkon/behavior3go" + . "github.com/walkon/behavior3go/actions" + . "github.com/walkon/behavior3go/composites" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + . "github.com/walkon/behavior3go/decorators" ) func createBaseStructMaps() *b3.RegisterStructMaps { diff --git a/loader/loader_test.go b/loader/loader_test.go index 8450e44..301d98e 100644 --- a/loader/loader_test.go +++ b/loader/loader_test.go @@ -5,12 +5,12 @@ import ( "reflect" "testing" - b3 "github.com/magicsea/behavior3go" - //. "github.com/magicsea/behavior3go/actions" - //. "github.com/magicsea/behavior3go/composites" - . "github.com/magicsea/behavior3go/config" - . "github.com/magicsea/behavior3go/core" - //. "github.com/magicsea/behavior3go/decorators" + b3 "github.com/walkon/behavior3go" + //. "github.com/walkon/behavior3go/actions" + //. "github.com/walkon/behavior3go/composites" + . "github.com/walkon/behavior3go/config" + . "github.com/walkon/behavior3go/core" + //. "github.com/walkon/behavior3go/decorators" ) type Test struct {