本文整理匯總了C#中BlamLib.WriteTag方法的典型用法代碼示例。如果您正苦於以下問題:C# BlamLib.WriteTag方法的具體用法?C# BlamLib.WriteTag怎麽用?C# BlamLib.WriteTag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BlamLib
的用法示例。
在下文中一共展示了BlamLib.WriteTag方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Write
public void Write(BlamLib.IO.EndianWriter s)
{
s.WriteTag(Ext);
int count = Names.Count;
s.Write(count);
for (int x = 0; x < count; x++)
{
s.Write(Names[x]);
s.Write(Scenarios[x]);
}
}
示例2: Write
public override void Write(BlamLib.IO.EndianWriter s)
{
CacheFile cf = s.Owner as CacheFile;
if (cf.EngineVersion == BlamVersion.Halo2_PC) return;
if (cf.EngineVersion == BlamVersion.Halo2_Alpha) return;
s.WriteTag((char[])MiscGroups.head);
s.Write(8);
s.Write(fileLength);
s.Write(0);
s.Write(offsetToIndex);
s.Write(indexStreamSize);
s.Write(tagBufferSize);
s.Write(0); // needs to be calc'd
s.Write(new byte[256]);
s.Write("02.09.27.09809", false);
s.Write((int)cacheType);
s.Write(0); // needs to be calc'd
s.Write(0); // needs to be calc'd
s.Write(0); s.Write(0);
s.Write(0); // needs to be calc'd
s.Write(0); // needs to be calc'd
s.Write(0); // needs to be calc'd
s.Write(/*stringIdsBufferAlignedOffset*/0);
s.Write(stringIdsCount);
s.Write(stringIdsBufferSize);
s.Write(stringIdIndicesOffset);
s.Write(stringIdsBufferOffset);
s.Write(0); // 4 bools
s.Write(Filetime.dwHighDateTime); s.Write(Filetime.dwHighDateTime);
// mainmenu
s.Write(SharedFiletimes[0].dwHighDateTime); s.Write(SharedFiletimes[0].dwHighDateTime);
// shared
s.Write(SharedFiletimes[1].dwHighDateTime); s.Write(SharedFiletimes[1].dwHighDateTime);
// shared sp
s.Write(SharedFiletimes[2].dwHighDateTime); s.Write(SharedFiletimes[2].dwHighDateTime);
s.Write(name, false);
s.Write(0);
s.Write(scenarioPath, 256);
s.Write(Convert.ToInt32(needsShared));
s.Write(tagNamesCount);
s.Write(tagNamesBufferOffset);
s.Write(tagNamesBufferSize);
s.Write(tagNameIndicesOffset);
s.Write(0); // checksum
s.Write(new byte[1320]);
s.WriteTag((char[])MiscGroups.foot);
}