Comments (4)
目的不是为了检查是否有update方法,是为了检测是否继承了IConditional接口,不过ts目前不支持判断是否继承接口所以当时先用这种比较不明确的方式来做了处理
from behaviourtree-ai.
所以预期是只有实现了继承了IConditional接口才会返回true,类似工程里的ExecuteActionConditional、RandomProbability和ConditionalDecorator这几个类。而其他类似Decorator、Selector这种只继承Behavior不实现IConditional接口应该返回false。可以这样理解吗?
from behaviourtree-ai.
是的,这个接口现在看来是有问题的,是需要找一个新的替代方案
from behaviourtree-ai.
目前先这样处理,如果有更好的方法可以替换,用一个限定的类型来作为判定
from behaviourtree-ai.
Related Issues (2)
- 请问这个库是egret团队的成员写的吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behaviourtree-ai.