public static BookshelfNetMessage Send(Librarian.BookShelf _BookShelf, GameObject ToWho)
    {
        BookshelfNetMessage msg = new BookshelfNetMessage();

        msg.data = VariableViewerNetworking.ProcessBookShelf(_BookShelf);

        msg.SendTo(ToWho);
        return(msg);
    }
Example #2
0
    public static BookNetMessage Send(Librarian.Book _book)
    {
        BookNetMessage msg = new BookNetMessage
        {
            Book = VariableViewerNetworking.ProcessBook(_book)
        };

        msg.SendToAll();
        return(msg);
    }
Example #3
0
        public static NetMessage Send(Librarian.BookShelf _BookShelf)
        {
            NetMessage msg = new NetMessage()
            {
                BookShelf = VariableViewerNetworking.ProcessSUBBookShelf(_BookShelf)
            };

            SendToAll(msg);
            return(msg);
        }
        public static NetMessage Send(Librarian.Library.LibraryBookShelf _BookShelf, GameObject ToWho)
        {
            NetMessage msg = new NetMessage()
            {
                BookShelf = VariableViewerNetworking.ProcessSubBookShelf(_BookShelf)
            };

            SendTo(ToWho, msg, channel: 3);
            return(msg);
        }
Example #5
0
    public static BookNetMessage Send(Librarian.Book _book, GameObject ToWho)
    {
        BookNetMessage msg = new BookNetMessage
        {
            Book = VariableViewerNetworking.ProcessBook(_book)
        };

        msg.SendTo(ToWho);
        return(msg);
    }
Example #6
0
    public static SubBookshelfNetMessage Send(Librarian.BookShelf _BookShelf)
    {
        SubBookshelfNetMessage msg = new SubBookshelfNetMessage()
        {
            BookShelf = VariableViewerNetworking.ProcessSUBBookShelf(_BookShelf)
        };

        msg.SendToAll();
        return(msg);
    }
        public static NetMessage Send(Librarian.Book _book, GameObject ToWho)
        {
            NetMessage msg = new NetMessage
            {
                Book = VariableViewerNetworking.ProcessBook(_book)
            };

            SendTo(ToWho, msg, Category.VariableViewer, 3);
            return(msg);
        }
Example #8
0
        public static NetMessage Send(Librarian.Library Library, GameObject ToWho)
        {
            NetMessage msg          = new NetMessage();
            var        ListsOfLists = VariableViewerNetworking.ProcessLibrary(Library).Chunk(700).ToList();

            foreach (var List in ListsOfLists)
            {
                msg.data   = JsonConvert.SerializeObject(List.ToList());
                msg.Number = ListsOfLists.Count;
                SendTo(ToWho, msg, channel: 3);
            }

            return(msg);
        }
    public static SubBookshelfNetMessage Send(Librarian.BookShelf _BookShelf)
    {
        SubBookshelfNetMessage msg = new SubBookshelfNetMessage()
        {
            BookShelf = VariableViewerNetworking.ProcessSUBBookShelf(_BookShelf)
        };

        //VariableViewerNetworking.NetFriendlyBookShelf bookshedl = ;
        //Logger.Log(bookshedl.OBS.Length.ToString() + " << YY");
        //msg.BookShelf = bookshedl;
        //msg.data = JsonConvert.SerializeObject(bookshedl);

        //Logger.Log(msg.data);
        msg.SendToAll();
        return(msg);
    }