示例#1
0
        public override void Read(hsStream s, hsResMgr mgr)
        {
            base.Read(s, mgr);

            fIsInitialState = s.ReadBool();
            fPersistOnServer = s.ReadBool();
            fIsAvatarState = s.ReadBool();
        }
示例#2
0
        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
0
        /// <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);
        }
        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
0
        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
0
        public override void Read(hsStream s, hsResMgr mgr)
        {
            base.Read(s, mgr);

            fCloneKey = mgr.ReadKey(s);
            fRequestorKey = mgr.ReadKey(s);
            fOriginatingPlayerID = s.ReadUInt();
            fUserData = s.ReadUInt();
            fValidMsg = s.ReadBool();
            fIsLoading = s.ReadBool();

            plCreatable tMsg = mgr.ReadCreatable(s);
            if (tMsg is plMessage)
                fTriggerMsg = (plMessage)tMsg;
            else if (tMsg != null)
                plDebugLog.GetLog("ResManager").Warn(
                    String.Format("plLoadCloneMsg: TriggerMsg should be a plMessage, but we got a '{0}'",
                    plFactory.ClassName(tMsg)));
        }
示例#7
0
        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);
            }
        }
示例#8
0
 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fFacer = mgr.ReadKey(s);
     fFacee = mgr.ReadKey(s);
     fDot = s.ReadFloat();
     fEnabled = s.ReadBool();
 }
示例#9
0
 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fPicker = mgr.ReadKey(s);
     fPicked = mgr.ReadKey(s);
     fEnabled = s.ReadBool();
     fHitPoint.Read(s);
 }
示例#10
0
 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fContained = mgr.ReadKey(s);
     fContainer = mgr.ReadKey(s);
     fEntering = s.ReadBool();
 }
示例#11
0
 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fControlKey = s.ReadInt();
     fDown = s.ReadBool();
 }
示例#12
0
        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();
        }
示例#13
0
 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fEnter = s.ReadBool();
     fHitter = mgr.ReadKey(s);
     fHittee = mgr.ReadKey(s);
 }
示例#14
0
        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);
            }
        }
示例#15
0
        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);
            }
        }
示例#16
0
 public override void Read(hsStream s, hsResMgr mgr)
 {
     base.Read(s, mgr);
     if (s.ReadBool())
         fDeliveryTime = plUnifiedTime.Read(s);
 }
示例#17
0
 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     fIsPatcher = s.ReadBool();
 }
示例#18
0
 public void Read(hsStream s)
 {
     fGroupID.Read(s);
     fOwnIt = s.ReadBool();
 }
示例#19
0
 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fActive = s.ReadBool();
     fActivate = s.ReadBool();
 }
示例#20
0
 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     if (s.ReadBool()) {
         fPattern = new pnVaultNode();
         fPattern.Read(s);
     }
 }