public static byte[] BuildMessage(RoomStateGen state)
        {
            var sup = new StateUpdateObject();

            sup.siteDrive = state.siteDrive;
            return(BuildMessage(sup));
        }
Example #2
0
 public RoomStateGen(RoomStateGen oldStateGen = null)
 {
     if (oldStateGen == null)
     {
         objects = new List <RoomObjectObj>();
         return;
     }
     objects = new List <RoomObjectObj>(oldStateGen.objects);
 }
 public RoomStateGen(RoomStateGen oldStateGen = null)
 {
     if (oldStateGen == null)
     {
         poiPlacementObject         = new TargetPlacementObject();
         poiPlacementObject.isValid = false;
         annotationObjects          = new List <AnnotationObject>();
         objects = new List <RoomObjectObj>();
         return;
     }
     poiPlacementObject = new TargetPlacementObject(oldStateGen.poiPlacementObject);
     annotationObjects  = new List <AnnotationObject>(oldStateGen.annotationObjects);
     objects            = new List <RoomObjectObj>(oldStateGen.objects);
 }