本文整理匯總了C#中Plasma.hsStream.WriteSafeString方法的典型用法代碼示例。如果您正苦於以下問題:C# hsStream.WriteSafeString方法的具體用法?C# hsStream.WriteSafeString怎麽用?C# hsStream.WriteSafeString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plasma.hsStream
的用法示例。
在下文中一共展示了hsStream.WriteSafeString方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Write
public void Write(hsStream s)
{
ContentsFlags contents = IGetContentFlags(s.Version);
s.WriteByte((byte)contents);
fLocation.Write(s);
if (s.Version.IsPlasma20)
if ((contents & ContentsFlags.kHasLoadMask) != 0)
fLoadMask.Write(s);
plManagedType.Write(s, fClassType);
if (s.Version.IsUruLive || s.Version.IsPlasma21)
s.WriteUInt(fObjectID.Value);
s.WriteSafeString(fObjectName);
if (s.Version.IsPlasma20)
if ((contents & ContentsFlags.kHasCloneIDs) != 0) {
s.WriteUInt(fCloneID);
s.WriteUInt(fClonePlayerID);
}
if (s.Version.IsPlasma21)
if ((contents & (ContentsFlags.kHasLoadMask | ContentsFlags.kHasLoadMask2)) != 0)
fLoadMask.Write(s);
}
示例2: IWrite
protected override void IWrite(hsStream s, hsResMgr mgr)
{
s.WriteSafeString(fName);
s.WriteInt((int)fDataType);
s.WriteFloat(fNumber);
mgr.WriteKey(s, fKey);
}
示例3: Write
public override void Write(hsStream s, hsResMgr mgr)
{
base.Write(s, mgr);
s.WriteBool(fIsPlayer);
mgr.WriteKey(s, fSpawnPoint);
// Cyan is really quite stupid sometimes...
if (fInitialTask == null)
s.WriteBool(false);
else {
s.WriteBool(true);
mgr.WriteCreatable(s, fInitialTask);
}
if (s.Version.IsMystOnline)
s.WriteSafeString(fUserStr);
}
示例4: Write
public override void Write(hsStream s, hsResMgr mgr)
{
base.Write(s, mgr);
s.WriteByte((byte)fCommand);
s.WriteSafeString(fUser);
s.WriteUInt(fPlayerID);
s.WriteSafeWString(fString);
s.WriteInt((int)fFlags);
s.WriteFloat(fDelay);
s.WriteInt(fValue);
}