当前位置: 首页>>代码示例>>C#>>正文


C# hsStream.ReadBool方法代码示例

本文整理汇总了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();
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:8,代码来源:NetMsgSDLState.cs

示例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();
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:9,代码来源:NetMsgLoadClone.cs

示例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);
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:12,代码来源:ResManager.cs

示例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);
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:10,代码来源:LinkEffectsTriggerMsg.cs

示例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();
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:20,代码来源:LoadCloneMsg.cs

示例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);
            }
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:22,代码来源:StateDescriptor.cs

示例7: IRead

 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fFacer = mgr.ReadKey(s);
     fFacee = mgr.ReadKey(s);
     fDot = s.ReadFloat();
     fEnabled = s.ReadBool();
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:7,代码来源:NotifyMsg.cs

示例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();
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:25,代码来源:ClientGuid.cs

示例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);
            }
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:12,代码来源:Vault2Cli.cs

示例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);
            }
        }
开发者ID:Hoikas,项目名称:PlasmaDotNet,代码行数:17,代码来源:StateDescriptor.cs

示例11: Read

 public override void Read(hsStream s, hsResMgr mgr)
 {
     base.Read(s, mgr);
     if (s.ReadBool())
         fDeliveryTime = plUnifiedTime.Read(s);
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:6,代码来源:NetMsgGameMessage.cs

示例12: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     fIsPatcher = s.ReadBool();
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:5,代码来源:Cli2Gate.cs

示例13: Read

 public void Read(hsStream s)
 {
     fGroupID.Read(s);
     fOwnIt = s.ReadBool();
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:5,代码来源:NetGroupId.cs

示例14: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     if (s.ReadBool()) {
         fPattern = new pnVaultNode();
         fPattern.Read(s);
     }
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:8,代码来源:Cli2Vault.cs


注:本文中的Plasma.hsStream.ReadBool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。