BlyZe
BlyZe
CC#
Created by BlyZe on 4/12/2024 in #help
2D array doesn't initialize the correct size (Checked with breakpoints)
In the ConsoleGraphic ctor I initialize a new 2D Glyph array. When the _console.Buffer.Width is 960 and _console.Buffer.Height is 360 the array gets initialized as 256, 144. Why could this happen?
internal ConsoleGraphic(CmdConsole console, ConsoleGameSettings settings)
{
_console = console;
_settings = settings;

glyphBuffer = new Glyph[_console.Buffer.Width, _console.Buffer.Height];

BackgroundIndex = 0;
}
internal ConsoleGraphic(CmdConsole console, ConsoleGameSettings settings)
{
_console = console;
_settings = settings;

glyphBuffer = new Glyph[_console.Buffer.Width, _console.Buffer.Height];

BackgroundIndex = 0;
}
You can find the file with the code on Github: https://github.com/BlyZeYT/ConsoleNexus-Engine/blob/master/ConsoleGraphic.cs
2 replies
CC#
Created by BlyZe on 11/21/2023 in #help
How to get the data of an adapter using MQTTnet
This is the documentation: https://docs.service.sicon.eco/sicon.os/2023.19.x/adapter-protocol-smqtt I don't get how to get the data of an adapter using MQTTnet. Can anyone explain it to me?
1 replies
CC#
Created by BlyZe on 11/14/2023 in #help
Can someone explain how I use MQTTnet and how MQTT in general works?
MQTTnet: https://github.com/dotnet/MQTTnet Help would be really appreciated, thank you :)
3 replies