예제 #1
0
        public static void SetLocation(ExportEntry export, CFVector3 location)
        {
            StructProperty prop = export.GetProperty <StructProperty>("location");

            SetLocation(prop, location);
            export.WriteProperty(prop);
        }
예제 #2
0
 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)
     });
 }
예제 #3
0
 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;
 }