MessageData.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class MessageData
  5. {
  6. public string msgType { get; set; }
  7. public List<ModelData> listModelData { get; set; }
  8. public ModelData CreateModel { get; set; }
  9. public string DesModelId { get; set; }
  10. public MessageData(string msgType, List<ModelData> listModelData,ModelData createmodel,string desModelId)
  11. {
  12. this.msgType = msgType;
  13. this.listModelData = listModelData;
  14. this.CreateModel = createmodel;
  15. this.DesModelId = desModelId;
  16. }
  17. }
  18. public class TransformData
  19. {
  20. public Vector3 pos { get; set; }
  21. public Vector3 eul { get; set; }
  22. public Vector3 scale { get; set; }
  23. public TransformData( Vector3 pos , Vector3 eul, Vector3 scale)
  24. {
  25. this.pos = pos;
  26. this.eul = eul;
  27. this.scale = scale;
  28. }
  29. }
  30. public class ModelData
  31. {
  32. public string id { get; set; }
  33. public string name { get; set; }
  34. public TransformData transformData { get; set; }
  35. public bool isShowBox { get; set; }
  36. public bool isSnatch { get; set; }
  37. public bool isPlayer { get; set; }
  38. public ModelData( string id , string name ,TransformData transfromData, bool isShowBox,bool isSnatch,bool isPlayer)
  39. {
  40. this.id = id;
  41. this.name = name;
  42. this.transformData = transfromData;
  43. this.isShowBox = isShowBox;
  44. this.isSnatch = isSnatch;
  45. this.isPlayer = isPlayer;
  46. }
  47. }
  48. //public class Hand
  49. //{
  50. // public TransformData transformData { get; set; }
  51. //}