VoxelBuildData.cs 645 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace KairoEngine.VoxelBuildingSystem
  5. {
  6. public struct VoxelBuildData
  7. {
  8. public Vector3Int pos;
  9. public int buildingIndex;
  10. public int buildingTemplateIndex;
  11. public int rotationIndex;
  12. public VoxelBuildData(Vector3Int pos, int buildingIndex = -1, int buildingTemplateIndex = -1, int rotationIndex = 0)
  13. {
  14. this.pos = pos;
  15. this.buildingIndex = buildingIndex;
  16. this.buildingTemplateIndex = buildingTemplateIndex;
  17. this.rotationIndex = rotationIndex;
  18. }
  19. }
  20. }