VoxelConnectorData.cs 816 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. namespace KairoEngine.VoxelBuildingSystem
  6. {
  7. [System.Serializable]
  8. public class VoxelConnectorData
  9. {
  10. [HideLabel, HorizontalGroup("connector", 0.3f)] public string title = "new connector";
  11. [HideLabel, HorizontalGroup("connector", 0.2f)] public Vector3Int position;
  12. //[HideLabel, HorizontalGroup("connector", 0.2f)] public Vector3Int target;
  13. [HideLabel, HorizontalGroup("connector", 0.15f)] public TargetDirection direction;
  14. [HideLabel, HorizontalGroup("connector", 0.15f)] public int group;
  15. }
  16. public enum TargetDirection
  17. {
  18. Back,
  19. Front,
  20. Left,
  21. Right,
  22. Up,
  23. Down
  24. }
  25. }