Added position functions to sunWriter
This commit is contained in:
parent
6292c2f9c5
commit
16cba6c798
1 changed files with 13 additions and 3 deletions
|
@ -10,13 +10,23 @@ namespace arookas {
|
||||||
this.mWriter = writer;
|
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 sunPoint OpenPoint() { return new sunPoint(Offset); }
|
||||||
public void ClosePoint(sunPoint point) { ClosePoint(point, (uint)mWriter.Position); }
|
public void ClosePoint(sunPoint point) { ClosePoint(point, (uint)mWriter.Position); }
|
||||||
public void ClosePoint(sunPoint point, uint offset) {
|
public void ClosePoint(sunPoint point, uint offset) {
|
||||||
mWriter.Keep();
|
Keep();
|
||||||
mWriter.Goto(point.Offset);
|
Goto(point.Offset);
|
||||||
mWriter.Write32(offset);
|
mWriter.Write32(offset);
|
||||||
mWriter.Back();
|
Back();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteINT(int value) {
|
public void WriteINT(int value) {
|
||||||
|
|
Loading…
Reference in a new issue