@ work in progress, may not compile

This commit is contained in:
codeimp 2009-02-20 12:29:37 +00:00
parent 6cb509d90c
commit 370bdca6fd
2 changed files with 9 additions and 0 deletions

View file

@ -575,6 +575,11 @@ namespace CodeImp.DoomBuilder.Map
MemoryStream stream = new MemoryStream(512000); MemoryStream stream = new MemoryStream(512000);
SerializerStream serializer = new SerializerStream(stream); SerializerStream serializer = new SerializerStream(stream);
// Index the sidedefs
int sidedefindex = 0;
foreach(Sidedef sd in sidedefs)
sd.SerializedIndex = sidedefindex++;
// Write private data // Write private data
serializer.wInt(lastsectorindex); serializer.wInt(lastsectorindex);
serializer.wInt(indexholes.Count); serializer.wInt(indexholes.Count);

View file

@ -59,6 +59,9 @@ namespace CodeImp.DoomBuilder.Map
private long longtexnamemid; private long longtexnamemid;
private long longtexnamelow; private long longtexnamelow;
// Clone
private int serializedindex;
#endregion #endregion
#region ================== Properties #region ================== Properties
@ -77,6 +80,7 @@ namespace CodeImp.DoomBuilder.Map
public long LongHighTexture { get { return longtexnamehigh; } } public long LongHighTexture { get { return longtexnamehigh; } }
public long LongMiddleTexture { get { return longtexnamemid; } } public long LongMiddleTexture { get { return longtexnamemid; } }
public long LongLowTexture { get { return longtexnamelow; } } public long LongLowTexture { get { return longtexnamelow; } }
internal int SerializedIndex { get { return serializedindex; } set { serializedindex = value; } }
#endregion #endregion