跳到正文
返回搜索

BedrockServerClientInterface

作者 OEOTYAN

wow

  • 3,604 次下载
  • 24 个星标
  • 更新于
  • 1 个项目依赖
26.60.0

README26.60.0

BedrockServerClientInterface

Use

Add in xmake.lua

add_repositories("OTOTYAN https://github.com/OEOTYAN/xmake-repo.git")
add_requires("bsci")

example

#include <bsci/GeometryGroup.h>

int main() {

    static auto geo = bsci::GeometryGroup::createDefault();

    geo->line(0, BlockPos{0, 70, 0}.center(), BlockPos{10, 73, 6}.center(), mce::Color::BLUE);

    geo->box(
        0,
        BoundingBox{
            {0,  70, 0},
            {10, 73, 6}
    },
        mce::Color::PINK
    );

    geo->circle(0, BlockPos{0, 73, 0}.center(), Vec3{1, 1, 1}.normalize(), 8);

    auto s = geo->sphere(0, BlockPos{0, 180, 0}.center(), 100, mce::Color::CYAN);

    std::thread([&, s] {
        std::this_thread::sleep_for(std::chrono::seconds{30});
        geo->remove(s);
    }).join();

    return 0;
}

Contributing

Ask questions by creating an issue.

PRs accepted.

License

AGPL v3.0

安装 BedrockServerClientInterface

运行端
  • 服务端
  • 客户端
平台
  • win-x64

在服务端目录中用 lip 运行:

lip install github.com/OEOTYAN/BedrockServerClientInterface@26.60.0

在客户端上,请通过以下方式安装: LeviLauncher

从 GitHub 下载