From 16cba6c79843a132ea665c5e90e9255180d3eb63 Mon Sep 17 00:00:00 2001 From: arookas Date: Sun, 31 Jan 2016 14:29:15 -0500 Subject: [PATCH] Added position functions to sunWriter --- ssc/writer.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ssc/writer.cs b/ssc/writer.cs index f37c710..96670fb 100644 --- a/ssc/writer.cs +++ b/ssc/writer.cs @@ -10,13 +10,23 @@ namespace arookas { this.mWriter = writer; } + public void Keep() { + mWriter.Keep(); + } + public void Back() { + mWriter.Back(); + } + public void Goto(uint offset) { + mWriter.Goto(offset); + } + public sunPoint OpenPoint() { return new sunPoint(Offset); } public void ClosePoint(sunPoint point) { ClosePoint(point, (uint)mWriter.Position); } public void ClosePoint(sunPoint point, uint offset) { - mWriter.Keep(); - mWriter.Goto(point.Offset); + Keep(); + Goto(point.Offset); mWriter.Write32(offset); - mWriter.Back(); + Back(); } public void WriteINT(int value) {