本文整理汇总了C#中Plasma.hsStream.ReadStdString方法的典型用法代码示例。如果您正苦于以下问题:C# hsStream.ReadStdString方法的具体用法?C# hsStream.ReadStdString怎么用?C# hsStream.ReadStdString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plasma.hsStream
的用法示例。
在下文中一共展示了hsStream.ReadStdString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fCommand = (Cmd)s.ReadInt();
fString = s.ReadStdString();
}
示例2: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fFlags = s.ReadByte();
fNumFrames = s.ReadByte();
fVoiceData = s.ReadStdString();
fReceivers.Capacity = (int)s.ReadByte();
for (int i = 0; i < fReceivers.Capacity; i++)
fReceivers.Insert(i, s.ReadUInt());
}
示例3: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fSynchFlags = (Flags)s.ReadInt();
if (s.Version.IsPlasma21)
fSynchFlags &= (Flags)~0x8;
if (s.Version.IsPlasma21 && (((int)fSynchFlags & 0x06) != 0) ||
(s.Version.IsPlasma20 && ExcludeStates)) {
short count = s.ReadShort();
for (short i = 0; i < count; i++)
fExcludeStates.Add((States)Enum.Parse(typeof(States), s.ReadStdString()));
}
//Plasma 2.1+ ends here...
if (s.Version.IsPlasma21) {
fSynchFlags = 0; // Synch Flags are pretty useless in Plasma21
return;
} else if (s.Version.IsPlasma20) {
if (VolatileStates) {
short count = s.ReadShort();
for (short i = 0; i < count; i++)
fVolatileStates.Add((States)Enum.Parse(typeof(States), s.ReadStdString()));
}
}
}
示例4: Read
public virtual void Read(hsStream s)
{
if (s.ReadByte() != kIoVersion)
throw new NotSupportedException("Bad VarDescriptor IO Version");
fName = s.ReadSafeString();
string displayOptions = s.ReadStdString(); // TODO
fCount = s.ReadInt();
fType = (plAtomicType)s.ReadByte();
Default = s.ReadSafeString();
fFlags = (Flags)s.ReadInt();
}
示例5: Read
public virtual void Read(hsStream s)
{
if (s.ReadByte() != kIoVersion)
throw new NotSupportedException("Bad VarDescriptor IO Version");
fName = s.ReadSafeString();
string displayOptions = s.ReadStdString(); // TODO
fCount = s.ReadInt();
fType = (plAtomicType)s.ReadByte();
Default = s.ReadSafeString();
fFlags = (Flags)s.ReadInt();
// Derived class in Cyan's code, but this is cleaner
if (IsStateDesc) {
fDescName = s.ReadSafeString();
fVersion = (int)s.ReadShort();
} else {
fAtomicCount = (int)s.ReadShort();
fAtomicType = (plAtomicType)s.ReadByte();
}
}
示例6: Read
public override void Read(hsStream s, hsResMgr mgr)
{
fFlags = (Flags)s.ReadShort();
if (HasAccount)
fAcctUUID = new Guid(s.ReadBytes(16));
if (HasPlayerID)
fPlayerID = s.ReadUInt();
if (HasPlayerName)
fPlayerName = s.ReadStdString();
if (HasCCRLevel)
fCCRLevel = s.ReadByte();
if (HasProtectedLogin)
fProtectedLogin = s.ReadBool();
if (HasBuildType)
fBuildType = s.ReadByte();
if (HasSrcAddr)
fSrcAddr = s.ReadUInt();
if (HasSrcPort)
fSrcPort = s.ReadUShort();
if (HasReserved)
fReserved = s.ReadUShort();
if (HasClientKey)
fClientKey = s.ReadStdString();
}