public static void SetLocation(ExportEntry export, CFVector3 location) { StructProperty prop = export.GetProperty <StructProperty>("location"); SetLocation(prop, location); export.WriteProperty(prop); }
public static VectorTrackPoint FromStruct(StructProperty vtsp) { return(new VectorTrackPoint() { InVal = vtsp.GetProp <FloatProperty>("InVal"), OutVal = CFVector3.FromStructProperty(vtsp.GetProp <StructProperty>("OutVal"), "X", "Y", "Z"), ArriveTangent = CFVector3.FromStructProperty(vtsp.GetProp <StructProperty>("ArriveTangent"), "X", "Y", "Z"), LeaveTangent = CFVector3.FromStructProperty(vtsp.GetProp <StructProperty>("LeaveTangent"), "X", "Y", "Z"), InterpMode = Enum.Parse <EInterpCurveMode>(vtsp.GetProp <EnumProperty>("InterpMode").Value) }); }
public static void SetLocation(StructProperty prop, CFVector3 vector) { prop.GetProp <FloatProperty>("X").Value = vector.X; prop.GetProp <FloatProperty>("Y").Value = vector.Y; prop.GetProp <FloatProperty>("Z").Value = vector.Z; }