public override void Read(hsStream s, hsResMgr mgr) { base.Read(s, mgr); fIsInitialState = s.ReadBool(); fPersistOnServer = s.ReadBool(); fIsAvatarState = s.ReadBool(); }
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(); }
/// <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); }
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(); }
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))); }
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); } }
protected override void IRead(hsStream s, hsResMgr mgr) { fFacer = mgr.ReadKey(s); fFacee = mgr.ReadKey(s); fDot = s.ReadFloat(); fEnabled = s.ReadBool(); }
protected override void IRead(hsStream s, hsResMgr mgr) { fPicker = mgr.ReadKey(s); fPicked = mgr.ReadKey(s); fEnabled = s.ReadBool(); fHitPoint.Read(s); }
protected override void IRead(hsStream s, hsResMgr mgr) { fContained = mgr.ReadKey(s); fContainer = mgr.ReadKey(s); fEntering = s.ReadBool(); }
protected override void IRead(hsStream s, hsResMgr mgr) { fControlKey = s.ReadInt(); fDown = s.ReadBool(); }
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(); }
protected override void IRead(hsStream s, hsResMgr mgr) { fEnter = s.ReadBool(); fHitter = mgr.ReadKey(s); fHittee = mgr.ReadKey(s); }
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); } }
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); } }
public override void Read(hsStream s, hsResMgr mgr) { base.Read(s, mgr); if (s.ReadBool()) fDeliveryTime = plUnifiedTime.Read(s); }
public override void Read(hsStream s) { fTransID = s.ReadUInt(); fIsPatcher = s.ReadBool(); }
public void Read(hsStream s) { fGroupID.Read(s); fOwnIt = s.ReadBool(); }
protected override void IRead(hsStream s, hsResMgr mgr) { fActive = s.ReadBool(); fActivate = s.ReadBool(); }
public override void Read(hsStream s) { fTransID = s.ReadUInt(); if (s.ReadBool()) { fPattern = new pnVaultNode(); fPattern.Read(s); } }