From 38b5b7f5fba29fc81e4e9e2e57d20bc8b0b07db3 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sat, 3 Dec 2022 20:34:01 +0100 Subject: [PATCH] Streaming ported to C#. --- scenes/AdaptiveWorldStream.cs | 59 +++++++------- scenes/AdaptiveWorldStream.tscn | 133 +++++++++++++++++++++----------- scenes/HexTile3D.tscn | 3 +- scenes/StreamContainer.cs | 120 ++++++++++++++++++++++------ 4 files changed, 218 insertions(+), 97 deletions(-) diff --git a/scenes/AdaptiveWorldStream.cs b/scenes/AdaptiveWorldStream.cs index ed7f1bc..03f519d 100644 --- a/scenes/AdaptiveWorldStream.cs +++ b/scenes/AdaptiveWorldStream.cs @@ -7,11 +7,14 @@ using Array = Godot.Collections.Array; public class AdaptiveWorldStream : Spatial { // ui elements + private Label _framesPerSecondLabel; private Label _tileLabel; private Label _tileOffsetLabel; private Label _numTilesLabel; private Label _mouseWorldLabel; private Label _mouseTileLabel; + private Label _numCoordsAddedLabel; + private Label _numCoordsRemovedLabel; // scene nodes private Spatial _tileHighlight; @@ -34,11 +37,14 @@ public class AdaptiveWorldStream : Spatial public override void _Ready() { // UI elements + _framesPerSecondLabel = GetNode