DragPointPropDTO.cs 865 B

1234567891011121314151617181920212223242526272829303132
  1. namespace MeidoPhotoStudio.Plugin;
  2. // TODO: Extract other classes to another file
  3. public class DragPointPropDTO
  4. {
  5. public DragPointPropDTO()
  6. {
  7. }
  8. public DragPointPropDTO(DragPointProp dragPoint)
  9. {
  10. TransformDTO = new(dragPoint.MyObject.transform);
  11. ShadowCasting = dragPoint.ShadowCasting;
  12. AttachPointInfo = dragPoint.AttachPointInfo;
  13. PropInfo = dragPoint.Info;
  14. }
  15. public TransformDTO TransformDTO { get; set; }
  16. public AttachPointInfo AttachPointInfo { get; set; }
  17. public PropInfo PropInfo { get; set; }
  18. public bool ShadowCasting { get; set; }
  19. public void Deconstruct(out TransformDTO transform, out AttachPointInfo attachPointInfo, out bool shadowCasting)
  20. {
  21. transform = TransformDTO;
  22. attachPointInfo = AttachPointInfo;
  23. shadowCasting = ShadowCasting;
  24. }
  25. }