本文整理汇总了C#中Plasma.hsStream.ReadBool方法的典型用法代码示例。如果您正苦于以下问题:C# hsStream.ReadBool方法的具体用法?C# hsStream.ReadBool怎么用?C# hsStream.ReadBool使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plasma.hsStream
的用法示例。
在下文中一共展示了hsStream.ReadBool方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fIsInitialState = s.ReadBool();
fPersistOnServer = s.ReadBool();
fIsAvatarState = s.ReadBool();
}
示例2: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fObjectHelper = mgr.ReadUoid(s); // Yes, ReadUoid. Not ReadKey.
fIsPlayer = s.ReadBool();
fIsLoading = s.ReadBool();
fIsInitialState = s.ReadBool();
}
示例3: ReadKey
/// <summary>
/// Reads a key reference from the stream
/// </summary>
/// <param name="s">Stream containing a key reference</param>
/// <returns>The key referenced in the stream or null (if null reference)</returns>
public plKey ReadKey(hsStream s)
{
if (!s.Version.IsPlasma21)
if (!s.ReadBool()) return null;
return ReadUoid(s);
}
示例4: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fInvisLevel = s.ReadInt();
fLeavingAge = s.ReadBool();
fLinkKey = mgr.ReadKey(s);
fEffects = s.ReadInt();
fLinkAnimKey = mgr.ReadKey(s);
}
示例5: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fIsPlayer = s.ReadBool();
fSpawnPoint = mgr.ReadKey(s);
if (s.ReadBool()) {
plCreatable pCre = mgr.ReadCreatable(s);
if (pCre is plAvTask)
fInitialTask = (plAvTask)pCre;
else if (pCre != null)
plDebugLog.GetLog("ResManager").Warn(
String.Format("plLoadAvatarMsg: InitialTask should be a plAvTask, but we got a '{0}'",
plFactory.ClassName(pCre)));
}
if (s.Version.IsMystOnline)
fUserStr = s.ReadSafeString();
}
示例6: Read
public void Read(hsStream s)
{
if (s.ReadByte() != kIoVersion)
throw new NotSupportedException("Bad StateDescriptor IO Version");
fName = s.ReadSafeString();
fVersion = (int)s.ReadShort();
short count = s.ReadShort();
fVariables.Capacity = count; // Optimization
for (short i = 0; i < count; i++) {
plVarDescriptor var = null;
bool isSD = s.ReadBool();
if (isSD)
var = new plSDVarDescriptor();
else
var = new plSimpleVarDescriptor();
var.Read(s);
fVariables.Add(var);
}
}
示例7: IRead
protected override void IRead(hsStream s, hsResMgr mgr)
{
fFacer = mgr.ReadKey(s);
fFacee = mgr.ReadKey(s);
fDot = s.ReadFloat();
fEnabled = s.ReadBool();
}
示例8: 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();
}
示例9: Read
public override void Read(hsStream s)
{
fTransID = s.ReadUInt();
fResult = (ENetError)s.ReadInt();
// I'm not eap, so just embed the vault node into the stream
// Forget crazy buffer hacks.
if (s.ReadBool()) {
fNode = new pnVaultNode();
fNode.Read(s);
}
}
示例10: Read
public void Read(hsStream s)
{
if (s.ReadByte() != kIoVersion)
throw new NotSupportedException("Bad StateDescriptor IO Version");
fName = s.ReadSafeString();
fVersion = (int)s.ReadShort();
short count = s.ReadShort();
fVariables.Capacity = count; // Optimization
for (short i = 0; i < count; i++) {
plVarDescriptor var = new plVarDescriptor(s.ReadBool()
? plAtomicType.kStateDescriptor : plAtomicType.kNone);
var.Read(s);
fVariables.Add(var);
}
}
示例11: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
if (s.ReadBool())
fDeliveryTime = plUnifiedTime.Read(s);
}
示例12: Read
public override void Read(hsStream s)
{
fTransID = s.ReadUInt();
fIsPatcher = s.ReadBool();
}
示例13: Read
public void Read(hsStream s)
{
fGroupID.Read(s);
fOwnIt = s.ReadBool();
}
示例14: Read
public override void Read(hsStream s)
{
fTransID = s.ReadUInt();
if (s.ReadBool()) {
fPattern = new pnVaultNode();
fPattern.Read(s);
}
}