public override void NetWrite(PacketWriter writer) { writer.Write(NetGame.MSG_PARTICLE); writer.Write(Particle.PARTICLE_FOG); writer.Write(Background); writer.Write(NetPacker.BigFloatToShort(Location.X)); writer.Write(NetPacker.BigFloatToShort(Location.Y)); }
public override void NetWrite(PacketWriter writer) { writer.Write(NetGame.MSG_PARTICLE); writer.Write(Particle.PARTICLE_SHOCKWAVE); writer.Write(Background); writer.Write(NetPacker.BigFloatToShort(Location.X)); writer.Write(NetPacker.BigFloatToShort(Location.Y)); writer.Write(NetPacker.MidFloatToShort(size)); writer.Write(refract); }
public override void NetWrite(PacketWriter writer) { writer.Write(NetGame.MSG_PARTICLE); writer.Write(Particle.PARTICLE_HEAT); writer.Write(Background); writer.Write(NetPacker.BigFloatToShort(Location.X)); writer.Write(NetPacker.BigFloatToShort(Location.Y)); writer.Write(NetPacker.BigFloatToShort(Trajectory.X)); writer.Write(NetPacker.BigFloatToShort(Trajectory.Y)); writer.Write(NetPacker.SmallFloatToShort(size)); }
public override void NetWrite(PacketWriter writer) { writer.Write(NetGame.MSG_PARTICLE); writer.Write(Particle.PARTICLE_ROCKET); writer.Write(Background); writer.Write(NetPacker.BigFloatToShort(Location.X)); writer.Write(NetPacker.BigFloatToShort(Location.Y)); writer.Write(NetPacker.BigFloatToShort(Trajectory.X)); writer.Write(NetPacker.BigFloatToShort(Trajectory.Y)); writer.Write(NetPacker.IntToSbyte(owner)); }
public override void NetWrite(PacketWriter writer) { writer.Write(NetGame.MSG_PARTICLE); writer.Write(Particle.PARTICLE_BLOOD); writer.Write(Background); writer.Write(NetPacker.BigFloatToShort(Location.X)); writer.Write(NetPacker.BigFloatToShort(Location.Y)); writer.Write(NetPacker.BigFloatToShort(Trajectory.X)); writer.Write(NetPacker.BigFloatToShort(Trajectory.Y)); writer.Write(NetPacker.TinyFloatToByte(r)); writer.Write(NetPacker.TinyFloatToByte(g)); writer.Write(NetPacker.TinyFloatToByte(b)); writer.Write(NetPacker.TinyFloatToByte(a)); writer.Write(NetPacker.SmallFloatToShort(size)); writer.Write(NetPacker.IntToSbyte(flag)); }
public void WriteToNet(PacketWriter writer) { writer.Write(NetGame.MSG_CHARACTER); writer.Write(NetPacker.IntToSbyte(charDef.DefID)); writer.Write(NetPacker.IntToSbyte(Team)); writer.Write(NetPacker.IntToSbyte(ID)); writer.Write(NetPacker.BigFloatToShort(Loc.X)); writer.Write(NetPacker.BigFloatToShort(Loc.Y)); writer.Write(NetPacker.IntToShort(Anim)); writer.Write(NetPacker.IntToShort(AnimFrame)); writer.Write(NetPacker.MidFloatToShort(frame)); if (State == CharState.Air) { writer.Write(true); } else { writer.Write(false); } if (Face == CharDir.Right) { writer.Write(true); } else { writer.Write(false); } writer.Write(NetPacker.BigFloatToShort(Trajectory.X)); writer.Write(NetPacker.BigFloatToShort(Trajectory.Y)); writer.Write(KeyRight); writer.Write(KeyLeft); writer.Write(NetPacker.IntToShort(HP)); }