public override void Serialize(LittleEndianWriter writer) { writer.WriteUInt(TargetNetId); writer.WriteInt((int)floatingTextType); writer.WriteInt(param); writer.WriteFixedStringLast(message, 128); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteUInt(100); // animation flags, unknown writer.WriteFloat(scaleTime); writer.WriteFloat(startProgress); writer.WriteFloat(speedRatio); writer.WriteFixedStringLast(animationName, 64); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteUInt(stackData.Id); byte bitfield = 0; if (stackData.OverrideSpells) { bitfield |= 1; } if (stackData.ModelOnly) { bitfield |= 2; } if (stackData.ReplaceCharacterPackage) { bitfield |= 4; } writer.WriteByte(bitfield); writer.WriteUInt(stackData.SkinId); writer.WriteFixedStringLast(stackData.SkinName, 64); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteUInt(netId); writer.WriteByte((byte)netNodeId); position.Serialize(writer); groupPosition.Serialize(writer); faceDirectionPosition.Serialize(writer); writer.WriteString(name, 64); writer.WriteString(skinName, 64); writer.WriteString(uniqueName, 64); writer.WriteString(spawnAnimationName, 64); writer.WriteUInt((uint)teamId); writer.WriteInt(damageBonus); writer.WriteInt(healthBonus); writer.WriteUInt((uint)roamState); writer.WriteInt(groupNumber); writer.WriteInt(buffSide); writer.WriteInt(revealEvent); writer.WriteInt(initialLevel); writer.WriteFloat(spawnDuration); writer.WriteFloat(spawnTime); writer.WriteByte(BehaviorTree); writer.WriteFixedStringLast(AIScript, 32); }