动作(Action):状态转换时执行的操作 讨论抽象状态对象的实现模式:将对象的状态分离并封装到专用的状态类,使得对象状态可灵活变化,当状态改变时会相应改变对象的行为。 封装状态类 localEventDispatcher = {}---指定事件输入当前状态对象触发回调动作---这里回调需要的上下文从外部传入,确保状态对象设计无状态functionEvent...
我们可以使用github-action-setup-xmake在 Github Action 上实现跨平台安装集成 Xmake。 uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: latest 谁在使用 Xmake? 请点击用户列表查看完整用户使用列表。 如果您在使用 xmake,也欢迎通过 PR 将信息提交至上面的列表,让更多的用户了解有多少用户在...
高性能伪事务之Lua in Redis EVAL简介 Redis2.6加入了对Lua脚本的支持。Lua脚本可以被用来扩展Redis的功能,并提供更好的性能。 在《Redis拾遗》中曾经引用了《Redis in Action》中的一套悲观锁的实现,使用Lua脚本实现同样的功能,性能提高1倍以上。在另一个自动补全的例子中,使用Lua脚本比WATH/MULTI/EXEC快了20倍...
local sequence=cc.Sequence:create(delay, cc.CallFunc:create(callback)) node:runAction(sequence)returnsequence end
for rf in rs: targets.append(rf) return targets def main(): from optparse import OptionParser parser = OptionParser("usage: %prog [options]") parser.add_option("-s", action="store", type="string", dest="source", help="specifies the source folder") ...
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Terms of the BSD 3-Clause ...
Lua.runtime.builtin 启用或禁用标准库。有时你使用的环境禁用了诸如 debug os 等内置库,你可以在这里也把它们关掉。 Lua.runtime.fileEncoding 设置你工作区中的文件编码,默认为 utf8。这个会影响语言服务在后台分析工作区文件时如何处理识别中文。 Lua.runtime.nonstandardSymbol 非标准符号的支持。如果你使用的...
透明结点是指getOpacity() == 0的结点,透明节点会增加drawcall的数量同时增加GPU的渲染负担(注:GPU并不会主动丢弃全透明的像素而不参与blend操作),有两种常用的方式来产生透明结点: 1.setOpacity(0),主动设置为透明。 2. 通过cc.Action由引擎设置为透明。
[CppLog] Return callTimesss:2 func:function: 0x00b6a598 linedefined:806 funName:zxjFunE ]] if action == "line" then self.cache_lineInfo.source = caller_info.source; --记录最近一次逐行调用信息 self.cache_lineInfo.line = caller_info.currentline; self.lineProfiler_cost_time = self.line...
Replace code deprecated in Lua 5.2 Feb 4, 2023 tests add luacov action Dec 7, 2024 tools chore: update-certs withhttps://curl.se/ca/cacert.pem Jan 28, 2024 .gitattributes add a .gitattributes for batch files Jul 23, 2015 .gitignore ...