public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WritePackedUInt32((uint)this.stateHash); writer.Write(this.normalizedTime); writer.WriteBytesAndSize(this.parameters, this.parameters.Length); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.Write(this.assetId); writer.Write(this.position); writer.WriteBytesFull(this.payload); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WriteBytesFull(this.payload); writer.Write(this.teleport); writer.WritePackedUInt32((uint) this.time); }
public override void Serialize(NetworkWriter writer) { writer.Write((ushort) this.scripts.Length); foreach (CRCMessageEntry script in this.scripts) { writer.Write(script.name); writer.Write(script.channel); } }
public override void Serialize(NetworkWriter writer) { writer.Write((ushort)this.scripts.Length); CRCMessageEntry[] array = this.scripts; for (int i = 0; i < array.Length; i++) { CRCMessageEntry cRCMessageEntry = array[i]; writer.Write(cRCMessageEntry.name); writer.Write(cRCMessageEntry.channel); } }
public override void Serialize(NetworkWriter writer) { writer.WritePackedUInt32((uint) this.oldServerConnectionId); writer.Write((ushort) this.peers.Length); foreach (PeerInfoMessage peer in this.peers) peer.Serialize(writer); }
public override void Serialize(NetworkWriter writer) { writer.WritePackedUInt32((uint) this.oldConnectionId); writer.WritePackedUInt32((uint) this.playerControllerId); writer.Write(this.netId); writer.WriteBytesAndSize(this.msgData, this.msgSize); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); if (this.parameters == null) writer.WriteBytesAndSize(this.parameters, 0); else writer.WriteBytesAndSize(this.parameters, this.parameters.Length); }
public override void Serialize(NetworkWriter writer) { writer.WritePackedUInt32((uint) this.connectionId); writer.Write(this.address); writer.WritePackedUInt32((uint) this.port); writer.Write(this.isHost); writer.Write(this.isYou); if (this.playerIds == null) { writer.WritePackedUInt32(0U); } else { writer.WritePackedUInt32((uint) this.playerIds.Length); for (int index = 0; index < this.playerIds.Length; ++index) { writer.Write(this.playerIds[index].netId); writer.WritePackedUInt32((uint) this.playerIds[index].playerControllerId); } } }
public override void Serialize(NetworkWriter writer) { writer.Write((ushort) this.playerControllerId); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WriteBytesAndSize(this.parameters, this.parameters.Length); }
// Token: 0x060034E1 RID: 13537 RVA: 0x000E7C04 File Offset: 0x000E5E04 public static void _WriteSpinChargeState_LaserTurbineController(NetworkWriter writer, LaserTurbineController.SpinChargeState value) { writer.Write(value.initialCharge); writer.Write(value.initialSpin); GeneratedNetworkCode._WriteFixedTimeStamp_Run(writer, value.snapshotTime); }
private void SerializeModeWorm(NetworkWriter writer) { writer.Write(this.transform.position); this.m_PreviosPosition = this.transform.position;//this.mDirection; }
public override void Serialize(NetworkWriter writer) { base.Serialize(writer); writer.Write(ToClone); writer.Write(WorldPosition); }
// Token: 0x060034DE RID: 13534 RVA: 0x000E7BA3 File Offset: 0x000E5DA3 public static void _WriteHurtBoxReference_None(NetworkWriter writer, HurtBoxReference value) { writer.Write(value.rootObject); writer.WritePackedUInt32((uint)value.hurtBoxIndexPlusOne); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.slotId); writer.Write(this.readyState); }
public override void Serialize(NetworkWriter writer) { base.Serialize(writer); writer.Write(this.attacker); writer.Write(this.inflictor); writer.Write(this.damage); writer.Write(this.isCrit); writer.Write(this.procChainMask); writer.Write(this.procCoefficient); writer.Write(this.damageColorIndex); writer.Write(this.damageType); writer.Write(this.forceVector); writer.Write(this.pushAwayForce); writer.Write(this.upwardsForce); writer.WritePackedUInt32((uint)this.overlapInfoList.Count); foreach (ExtendedOverlapAttack.OverlapInfo overlapInfo in this.overlapInfoList) { writer.Write(HurtBoxReference.FromHurtBox(overlapInfo.hurtBox)); writer.Write(overlapInfo.hitPosition); writer.Write(overlapInfo.pushDirection); } }
public override void Serialize(NetworkWriter writer) { writer.Write(this.attackerGuid); writer.Write(this.targetGuid); }
public override void Serialize(NetworkWriter writer) { writer.Write(vector); }
//Easiest way you can just write damage info, by making a method that does it for you! public static void WriteDamageInfo(NetworkWriter writer, DamageInfo damageInfo) { writer.Write(damageInfo.damage); writer.Write(damageInfo.crit); writer.Write(damageInfo.attacker); writer.Write(damageInfo.inflictor); writer.Write(damageInfo.position); writer.Write(damageInfo.force); writer.Write(damageInfo.procChainMask.mask); writer.Write(damageInfo.procCoefficient); writer.Write((byte)damageInfo.damageType); writer.Write((byte)damageInfo.damageColorIndex); writer.Write((byte)(damageInfo.dotIndex + 1)); }
// Token: 0x060034FA RID: 13562 RVA: 0x000E80CF File Offset: 0x000E62CF public static void _WriteKeyFrame_WormBodyPositions2(NetworkWriter writer, WormBodyPositions2.KeyFrame value) { GeneratedNetworkCode._WriteCubicBezier3_None(writer, value.curve); writer.Write(value.length); writer.Write(value.time); }
// Token: 0x060034F2 RID: 13554 RVA: 0x000E7F28 File Offset: 0x000E6128 public static void _WriteRunStopwatch_Run(NetworkWriter writer, Run.RunStopwatch value) { writer.Write(value.offsetFromFixedTime); writer.Write(value.isPaused); }
// Token: 0x060034E4 RID: 13540 RVA: 0x000E7C99 File Offset: 0x000E5E99 public static void _WriteParentIdentifier_NetworkParent(NetworkWriter writer, NetworkParent.ParentIdentifier value) { writer.WritePackedUInt32((uint)value.indexInParentChildLocatorPlusOne); writer.Write(value.parentNetworkInstanceId); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WritePackedUInt32((uint)this.playerControllerId); }
public override void Serialize(NetworkWriter writer) { writer.StartMessage(MessageTypes.CSHelloMsgType); writer.Write(connectionID); writer.FinishMessage(); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); }
private void ParamToByte(NetworkWriter writer, object param) { if (param is System.Enum || param is System.Int32) { writer.Write("int"); writer.Write((int)param); } else if (param is Vector3) { writer.Write("Vector3"); writer.Write((Vector3)param); } else if (param is Vector2) { writer.Write("Vector2"); writer.Write((Vector2)param); } else if (param is System.Single) { writer.Write("Single"); writer.Write((System.Single)param); } else if (param is System.Boolean) { writer.Write("Boolean"); writer.Write((System.Boolean)param); } else if (param is System.String) { writer.Write("String"); writer.Write((System.String)param); } else if (param is Quaternion) { writer.Write("Quaternion"); writer.Write((Quaternion)param); } else { Debug.LogWarning("CAVE2RPCManager: Unknown param " + param.GetType()); } }
// Token: 0x0600142B RID: 5163 RVA: 0x000563AA File Offset: 0x000545AA public override bool OnSerialize(NetworkWriter writer, bool initialState) { writer.Write(this.teamIndex); return(initialState || base.syncVarDirtyBits > 0U); }
public override void Write(NetworkWriter W) { W.Write(PingId); }
public override void Serialize(NetworkWriter writer) { base.Serialize(writer); writer.Write((int)Direction); }
public override void Serialize(NetworkWriter writer) { writer.Write(storyId); base.Serialize(writer); }
public override void Serialize(NetworkWriter writer) { writer.Write(Success); }
public override void Serialize(NetworkWriter writer) { writer.Write(Test); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WritePackedUInt32((uint)this.hash); }
public void Serialize(NetworkWriter writer) { writer.Write(objID); writer.Write(usesLeft); }
// Token: 0x060034E0 RID: 13536 RVA: 0x000E7BF6 File Offset: 0x000E5DF6 public static void _WriteFixedTimeStamp_Run(NetworkWriter writer, Run.FixedTimeStamp value) { writer.Write(value.t); }
public override void Serialize(NetworkWriter writer) { writer.Write((ushort) this.errorCode); }
public virtual void Serialize(NetworkWriter writer) { writer.Write(this.GetId()); }
public override void Serialize(NetworkWriter writer) { writer.Write((ushort) this.playerControllerId); writer.WriteBytesAndSize(this.msgData, this.msgSize); }
public override void OnSerialize(NetworkWriter writer) { base.OnSerialize(writer); writer.Write(this.swingIndex); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WritePackedUInt32((uint) this.hash); }
protected override void Serialize(NetworkWriter writer) { writer.Write(transform.position); writer.Write(transform.rotation); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.slotId); writer.Write(this.readyState); }
public override void Serialize(NetworkWriter writer) { writer.Write(this.netId); writer.WritePackedUInt32((uint)this.playerControllerId); }
public void Serialize(NetworkWriter writer) { writer.Write(totalCritChance); writer.Write(numCrits); writer.Write(damageMult); }
// Token: 0x060034DB RID: 13531 RVA: 0x000E7B52 File Offset: 0x000E5D52 public static void _WriteHitGroundInfo_CharacterMotor(NetworkWriter writer, CharacterMotor.HitGroundInfo value) { writer.Write(value.velocity); writer.Write(value.position); }