The server/client for community servers API.
Go to file
Julgers 2ab5710c11
Fix mistake in docker-compose.yml
2023-08-11 23:38:52 +02:00
BattleBitAPI Ability to change weapons - gadgets runtime. 2023-08-11 19:14:47 +03:00
.dockerignore Add docker support 2023-08-11 13:56:04 +02:00
.gitignore Add docker support 2023-08-11 13:56:04 +02:00
CommunityServerAPI.csproj First commit. 2023-03-03 15:15:17 +03:00
CommunityServerAPI.sln First commit. 2023-03-03 15:15:17 +03:00
Dockerfile Add docker support 2023-08-11 13:56:04 +02:00
LICENSE Initial commit 2023-03-03 15:09:34 +03:00
Program.cs Zombie Example 2023-08-11 22:48:28 +03:00
README.md zhCN Readme 2023-08-10 22:52:36 +08:00
docker-compose.yml Fix mistake in docker-compose.yml 2023-08-11 23:38:52 +02:00

README.md

BattleBit Remastered Community Server API

License: MIT

This repository provides an API that can be used to handle events on your community server(s) and manipulate them.

Getting started

Prerequisites

  • Your own community server within BattleBit Remastered with progression disabled and access to its launch options.
  • The ability to write and compile .NET 6.0 C# code.
  • (for production) A place to host this API on.

Writing

Documentation and examples can be found on the wiki.

The way to use this API is to make an instance of ServerListener and add your own handlers to certain events that happen on your server(s). The easiest way to do this, is to add/put your own code in Program.cs and then build the project.

Building

This project can either be built by using dotnet build on the command-line or by using the run / build options inside your preferred IDE.

Connecting to the gameserver

After writing and compiling this project. You will want to host it somewhere. This could be on the same server that the gameserver runs on, or somewhere completely different. We do recommend to keep the latency to the gameserver minimal for smoother and faster communication. The same ServerListener can be used for multiple gameservers at the same time. You can specify the API server (address & port) in the launch options of the gameserver.

Chinese Version

BBR服务器API

License: MIT

这个是BBR像素战地的服务端API

如何开始

系统需求

  • 拥有 BBR 服务端的开服权限,且满足开服条件。
  • 可以写基于 .NET 6.0 的 C# 代码.
  • 生产环境中可以部署此代码.

如何制作功能

查看维基 此页面.

使用这个 API 将开启一个ServerListener 的监听进程,来了解你的服务端中正在发生什么。 如果想给你的服务端添加功能,可以直接把功能写在 Program.cs 中,当然也可以按照框架规范进行其他的功能纂写。

编译

可以直接使用 dotnet build 的命令进行编译,或者在你的 VSC 等 IDE 中自定义编译.

连接服务端

当你将此项目的功能写完并进行了编译后,需要将此 API 进行部署。此服务可以部署在本地网络、本机网络或者广域网中。我们强烈建议以「最低延迟」为基准进行部署,以保证 ServerListener 可以同时监听多个游戏服务端。 你可以在游戏服务端的启动配置文件中对 API 的地址和端口进行设定。