コード例 #1
0
ファイル: FXCreateData.cs プロジェクト: zkitX/LeaguePackets
 public static void WriteFXCreateData(this ByteWriter writer, FXCreateData data)
 {
     writer.WriteUInt32(data.TargetNetID);
     writer.WriteUInt32(data.NetAssignedNetID);
     writer.WriteUInt32(data.CasterNetID);
     writer.WriteUInt32(data.BindNetID);
     writer.WriteUInt32(data.KeywordNetID);
     writer.WriteInt16(data.PositionX);
     writer.WriteFloat(data.PositionY);
     writer.WriteInt16(data.PositionZ);
     writer.WriteInt16(data.TargetPositionX);
     writer.WriteFloat(data.TargetPositionY);
     writer.WriteInt16(data.TargetPositionZ);
     writer.WriteInt16(data.OwnerPositionX);
     writer.WriteFloat(data.OwnerPositionY);
     writer.WriteInt16(data.OwnerPositionZ);
     writer.WriteVector3(data.OrientationVector);
     writer.WriteFloat(data.TimeSpent);
     writer.WriteFloat(data.ScriptScale);
 }
コード例 #2
0
ファイル: FXCreateData.cs プロジェクト: zkitX/LeaguePackets
        public static FXCreateData ReadFXCreateData(this ByteReader reader)
        {
            var data = new FXCreateData();

            data.TargetNetID       = reader.ReadUInt32();
            data.NetAssignedNetID  = reader.ReadUInt32();
            data.CasterNetID       = reader.ReadUInt32();
            data.BindNetID         = reader.ReadUInt32();
            data.KeywordNetID      = reader.ReadUInt32();
            data.PositionX         = reader.ReadInt16();
            data.PositionY         = reader.ReadFloat();
            data.PositionZ         = reader.ReadInt16();
            data.TargetPositionX   = reader.ReadInt16();
            data.TargetPositionY   = reader.ReadFloat();
            data.TargetPositionZ   = reader.ReadInt16();
            data.OwnerPositionX    = reader.ReadInt16();
            data.OwnerPositionY    = reader.ReadFloat();
            data.OwnerPositionZ    = reader.ReadInt16();
            data.OrientationVector = reader.ReadVector3();
            data.TimeSpent         = reader.ReadFloat();
            data.ScriptScale       = reader.ReadFloat();
            return(data);
        }