PixelPilot.Core
1.1.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PixelPilot.Core --version 1.1.2
NuGet\Install-Package PixelPilot.Core -Version 1.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PixelPilot.Core" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PixelPilot.Core --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PixelPilot.Core, 1.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PixelPilot.Core as a Cake Addin #addin nuget:?package=PixelPilot.Core&version=1.1.2 // Install PixelPilot.Core as a Cake Tool #tool nuget:?package=PixelPilot.Core&version=1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pixel Pilot
A C# library for interacting with the game PixelWalker
Features
- Strongly typed packets.
- PixelPilotCore has minor abstractions.
- Split into multiple projects. Use only what you need.
Projects:
- PixelPilotCore: The core of the project. Bare minimum client to interact with the game.
- PixelPilotTests: All test related to the project.
- PixelPilotExample: An example bot.
To-Do's:
- Implement all packets.
- Implement common World and Player abstractions (seperate package)
Example
using Microsoft.Extensions.Configuration;
using PixelPilot.Models;
using PixelPilot.PixelGameClient;
using PixelPilot.PixelGameClient.Messages.Received;
using PixelPilot.PixelGameClient.Messages.Send;
using PixelPilotExample;
// Load the configuration. Don't store your account token in the code :)
var config = new ConfigurationBuilder()
.AddJsonFile("config.json")
.AddEnvironmentVariables()
.Build().Get<BasicConfig>();
if (config == null)
{
Console.WriteLine("The configuration file could not be loaded.");
return;
}
// Create a client.
var client = new PixelPilotClient(config.AccountToken, false);
await client.Connect(RoomType.Pixelwalker3, "r082b210d67df52");
// Executed when the client receives a packet!
client.OnPacketReceived += (_, packet) =>
{
// Use strongly typed packets!
if (packet is PlayerChatPacket chat)
{
if (chat.Message.Equals(".stop"))
{
client.Disconnect();
Environment.Exit(0);
return;
}
if (chat.Message.Equals(".ping")) client.Send(new PlayerChatOutPacket("Pong!"));
}
};
// Executed once the client receives INIT
// Make a platform and do some silly loops.
client.OnClientConnected += (_) =>
{
client.Send(new PlayerChatOutPacket("Hello world using the PixelPilot API."));
PlatformUtil.GetThread(client).Start();
client.Send(new PlayerMoveOutPacket(592, 1056, 0, 0, 0, 0, 0, 0, false, false, 100));
};
// Don't terminate.
Thread.Sleep(-1);
Enjoy the library? Leave a ⭐
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Websocket.Client (>= 5.1.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on PixelPilot.Core:
Package | Downloads |
---|---|
PixelPilot.ChatCommands
Chat commands for PixelPilot |
|
PixelPilot.Structures
Save and load structures. Easily paste them into your world. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.9.8 | 105 | 10/17/2024 |
1.9.7 | 83 | 10/16/2024 |
1.9.6 | 83 | 10/15/2024 |
1.9.5 | 108 | 10/10/2024 |
1.9.4 | 103 | 10/8/2024 |
1.9.3 | 105 | 9/21/2024 |
1.9.2 | 144 | 9/4/2024 |
1.9.1 | 117 | 9/3/2024 |
1.9.0 | 131 | 8/26/2024 |
1.8.3 | 140 | 8/22/2024 |
1.8.2 | 141 | 8/22/2024 |
1.8.1 | 132 | 8/17/2024 |
1.8.0 | 138 | 8/15/2024 |
1.7.9 | 72 | 7/31/2024 |
1.7.8 | 75 | 7/29/2024 |
1.7.7 | 91 | 7/29/2024 |
1.7.6 | 95 | 7/28/2024 |
1.7.5 | 98 | 7/26/2024 |
1.7.4 | 90 | 7/23/2024 |
1.7.3 | 126 | 7/21/2024 |
1.7.2 | 117 | 7/21/2024 |
1.7.1 | 116 | 7/21/2024 |
1.7.0 | 109 | 7/20/2024 |
1.6.5 | 146 | 7/5/2024 |
1.6.4 | 141 | 6/20/2024 |
1.6.3 | 137 | 6/15/2024 |
1.6.2 | 148 | 6/15/2024 |
1.6.1 | 124 | 6/14/2024 |
1.6.0 | 115 | 6/14/2024 |
1.5.2 | 112 | 6/11/2024 |
1.5.1 | 97 | 6/11/2024 |
1.5.0 | 119 | 6/6/2024 |
1.4.1 | 123 | 6/5/2024 |
1.4.0 | 126 | 6/3/2024 |
1.3.0 | 120 | 5/29/2024 |
1.2.0 | 105 | 5/20/2024 |
1.1.9 | 125 | 5/4/2024 |
1.1.8 | 61 | 5/3/2024 |
1.1.7 | 67 | 5/3/2024 |
1.1.6 | 103 | 4/30/2024 |
1.1.5 | 110 | 4/30/2024 |
1.1.4 | 109 | 4/29/2024 |
1.1.3 | 95 | 4/29/2024 |
1.1.2 | 96 | 4/28/2024 |
1.1.1 | 102 | 4/28/2024 |
1.1.0 | 93 | 4/28/2024 |
1.0.2 | 82 | 4/28/2024 |
1.0.1 | 103 | 4/27/2024 |
1.0.0 | 137 | 4/27/2024 |
This update adds support for World interactions (block placement).