Git Product home page Git Product logo

Comments (8)

DJKarlHarris avatar DJKarlHarris commented on June 21, 2024

使用pb.loadfile成功了,但是为什么loadfile没有被作者挂出来呢

from lua-protobuf.

starwing avatar starwing commented on June 21, 2024

因为用这个库的很多人是在Unity里用的,他们不知道当前目录的概念,解释起来太麻烦,所以干脆在文档里删掉了所有文件相关的API,会用的人肯定知道怎么用。

你可以用io.open()读取你的.pb文件内容,然后用pb.load()载入

from lua-protobuf.

DJKarlHarris avatar DJKarlHarris commented on June 21, 2024

谢谢作者!

from lua-protobuf.

DJKarlHarris avatar DJKarlHarris commented on June 21, 2024

请问一下,在开发环境中,一般是将所有pb load进内存,还是用到一个load一个

from lua-protobuf.

starwing avatar starwing commented on June 21, 2024

最好当然是上来就load,然后就不动了

from lua-protobuf.

DJKarlHarris avatar DJKarlHarris commented on June 21, 2024

好的!

from lua-protobuf.

DJKarlHarris avatar DJKarlHarris commented on June 21, 2024

作者,请问有什么方案可以让多个lua文件,共享pb.so加载的协议吗?
在skynet中可以额外开多一个服务来存储这些协议,然后其他服务与其通信。

from lua-protobuf.

starwing avatar starwing commented on June 21, 2024

考虑一下pb.state(),unsafe里面有shared state的支持。

from lua-protobuf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.