public static bool MyFunctionItem(Player player, MyModMachine machine, ItemBase item)
 {
     //Simplistic item transfer function - player data is available too!
     if (WorldScript.mbIsServer)
     {
         player.mInventory.AddItem(item);
     }
     machine.MarkDirtyDelayed();
     dirty = true;
     if (!WorldScript.mbIsServer)
     {
         NetworkManager.instance.SendInterfaceCommand(InterfaceName, InterfaceMyFunctionItem, null, item, machine, 0.0f);
     }
     return(true);
 }
    ///////////////////////////////////////////////////////////////
    //Network command functions
    ///////////////////////////////////////////////////////////////

    public static bool MyFunctionString(Player player, MyModMachine machine, int data)
    {
        //handle data machine data update here
        machine.data = data;
        machine.MarkDirtyDelayed();

        //This can be used to force a redraw of the window in the event that the data update requires the window to change for other players
        networkredraw = true;

        //Send the command to the server
        if (!WorldScript.mbIsServer)
        {
            NetworkManager.instance.SendInterfaceCommand(InterfaceName, InterfaceMyFunctionString, data.ToString(), null, machine, 0.0f);
        }
        return(true);
    }