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

            sup.siteDrive = state.siteDrive;
            return(BuildMessage(sup));
        }
        public static byte[] BuildMessage(StateUpdateObject sup)
        {
            var fbb       = new FlatBufferBuilder(1024);
            var supOffset = sup.ToBuffer(fbb);

            ServerMessage.StartServerMessage(fbb);
            ServerMessage.AddType(fbb, msgType.RoomStateUpdate);
            ServerMessage.AddDataType(fbb, msg.StateUpdate);
            ServerMessage.AddData(fbb, supOffset.Value);
            var builtMessage = ServerMessage.EndServerMessage(fbb);

            fbb.Finish(builtMessage.Value);
            return(fbb.SizedByteArray());
        }