From 3ec537762ab6ea61e798e5c79abfccb75741d98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Tue, 27 Sep 2022 00:01:05 +0200 Subject: [PATCH] Overload '->' operator for TreeNode --- GlitchyEngine/src/Collections/TreeNode.bf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GlitchyEngine/src/Collections/TreeNode.bf b/GlitchyEngine/src/Collections/TreeNode.bf index bfc6f87..2324f36 100644 --- a/GlitchyEngine/src/Collections/TreeNode.bf +++ b/GlitchyEngine/src/Collections/TreeNode.bf @@ -44,6 +44,11 @@ namespace GlitchyEngine.Collections return null; } + + public static ref T operator ->(TreeNode node) + { + return ref node.Value; + } } static