Esempio n. 1
0
        public override void Write(hsStream s, hsResMgr mgr)
        {
            base.Write(s, mgr);

            s.WriteBool(fIsInitialState);
            s.WriteBool(fPersistOnServer);
            s.WriteBool(fIsAvatarState);
        }
Esempio n. 2
0
        public override void Write(hsStream s, hsResMgr mgr)
        {
            base.Write(s, mgr);

            mgr.WriteUoid(s, fObjectHelper);
            s.WriteBool(fIsPlayer);
            s.WriteBool(fIsLoading);
            s.WriteBool(fIsInitialState);
        }
Esempio n. 3
0
        public override void Write(hsStream s, hsResMgr mgr)
        {
            base.Write(s, mgr);

            s.WriteBool(fDeliveryTime.HasValue);
            if (fDeliveryTime.HasValue)
                plUnifiedTime.Write(s, fDeliveryTime.Value);
        }
Esempio n. 4
0
        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);
        }
        public override void Write(hsStream s, hsResMgr mgr)
        {
            base.Write(s, mgr);

            s.WriteInt(fInvisLevel);
            s.WriteBool(fLeavingAge);
            mgr.WriteKey(s, fLinkKey);
            s.WriteInt(fEffects);
            mgr.WriteKey(s, fLinkAnimKey);
        }
Esempio n. 6
0
        public override void Write(hsStream s, hsResMgr mgr)
        {
            base.Write(s, mgr);

            mgr.WriteKey(s, fCloneKey);
            mgr.WriteKey(s, fRequestorKey);
            s.WriteUInt(fOriginatingPlayerID);
            s.WriteUInt(fUserData);
            s.WriteBool(fValidMsg);
            s.WriteBool(fIsLoading);
            mgr.WriteCreatable(s, fTriggerMsg);
        }
Esempio n. 7
0
 protected override void IWrite(hsStream s, hsResMgr mgr)
 {
     mgr.WriteKey(s, fPicker);
     mgr.WriteKey(s, fPicked);
     s.WriteBool(fEnabled);
     fHitPoint.Write(s);
 }
Esempio n. 8
0
 protected override void IWrite(hsStream s, hsResMgr mgr)
 {
     mgr.WriteKey(s, fFacer);
     mgr.WriteKey(s, fFacee);
     s.WriteFloat(fDot);
     s.WriteBool(fEnabled);
 }
Esempio n. 9
0
 protected override void IWrite(hsStream s, hsResMgr mgr)
 {
     s.WriteInt(fControlKey);
     s.WriteBool(fDown);
 }
Esempio n. 10
0
 protected override void IWrite(hsStream s, hsResMgr mgr)
 {
     mgr.WriteKey(s, fContained);
     mgr.WriteKey(s, fContainer);
     s.WriteBool(fEntering);
 }
Esempio n. 11
0
 protected override void IWrite(hsStream s, hsResMgr mgr)
 {
     s.WriteBool(fActive);
     s.WriteBool(fActivate);
 }
Esempio n. 12
0
 public override void Write(hsStream s)
 {
     s.WriteUInt(fTransID);
     s.WriteBool(fIsPatcher);
 }
Esempio n. 13
0
 public void WriteKey(hsStream s, plKey key)
 {
     if (s.Version.IsPlasma20) {
         if (key == null) {
             s.WriteBool(false);
             return;
         } else {
             s.WriteBool(true);
             key.Uoid.Write(s);
         }
     } else {
         if (key == null)
             new plUoid().Write(s); // Invalid...
         else
             key.Uoid.Write(s);
     }
 }
Esempio n. 14
0
        public override void Write(hsStream s, hsResMgr mgr)
        {
            s.WriteShort((short)fFlags);

            if (HasAccount)
                s.WriteBytes(fAcctUUID.ToByteArray());
            if (HasPlayerID)
                s.WriteUInt(fPlayerID);
            if (HasPlayerName)
                s.WriteStdString(fPlayerName);
            if (HasCCRLevel)
                s.WriteByte(fCCRLevel);
            if (HasProtectedLogin)
                s.WriteBool(fProtectedLogin);
            if (HasBuildType)
                s.WriteByte(fBuildType);
            if (HasSrcAddr)
                s.WriteUInt(fSrcAddr);
            if (HasSrcPort)
                s.WriteUShort(fSrcPort);
            if (HasReserved)
                s.WriteUShort(fReserved);
            if (HasClientKey)
                s.WriteStdString(fClientKey);
        }
Esempio n. 15
0
 public override void Write(hsStream s)
 {
     s.WriteUInt(fTransID);
     s.WriteInt((int)fResult);
     s.WriteBool(fNode != null);
     if (fNode != null)
         fNode.Write(s);
 }
Esempio n. 16
0
 protected override void IWrite(hsStream s, hsResMgr mgr)
 {
     s.WriteBool(fEnter);
     mgr.WriteKey(s, fHitter);
     mgr.WriteKey(s, fHittee);
 }
Esempio n. 17
0
 public override void Write(hsStream s)
 {
     s.WriteUInt(fTransID);
     s.WriteBool(fPattern != null);
     if (fPattern != null)
         fPattern.Write(s);
 }