]> git.lizzy.rs Git - mtmap.git/commitdiff
added funktion MapBlk.PokeNode as reverse of MapBlk.PeekNode 1/head
authorRiley <riley@e926.de>
Sat, 16 Jul 2022 23:09:31 +0000 (01:09 +0200)
committerRiley <riley@e926.de>
Sat, 16 Jul 2022 23:09:31 +0000 (01:09 +0200)
tools.go

index 2cf2da400989408f1f7b1bbe1e23eca65fe808a8..8e4f35ac55b465e2bd98491ae4f89923a0a91f1a 100644 (file)
--- a/tools.go
+++ b/tools.go
@@ -11,3 +11,9 @@ func (mb *MapBlk) PeekNode(i int) mt.Node {
                Param2: mb.Param2[i],
        }
 }
+
+func (mb *MapBlk) PokeNode(i int, node mt.Node) {
+       mb.Param0[i] = node.Param0
+       mb.Param1[i] = node.Param1
+       mb.Param2[i] = node.Param2
+}