Exemplo n.º 1
0
 /// <summary>Transmits the data string to the connected computer.</summary>
 /// <description>
 /// This method is used to send text data to the connected computer regardless if we initiated the connection using connect(), or listening to a port using listen().
 /// </description>
 /// <param name="data">The data string to send.</param>
 /// <code>
 /// // Set the command data
 /// %data = "GET "@ $RSSFeed::serverURL
 /// </code>
 public void Send(string data)
 {
     InternalUnsafeMethods.Send__Args _args = new InternalUnsafeMethods.Send__Args()
     {
         data = data,
     };
     InternalUnsafeMethods.Send()(ObjectPtr, _args);
 }
Exemplo n.º 2
0
 /// <summary>Applies a radial impulse to any SceneObjects within the area of effect.</summary>
 /// <description>
 /// This event is performed both server and client-side.
 /// </description>
 /// <param name="position">Center point for this radial impulse.</param>
 /// <param name="radius">Distance from the position for this radial impulse to affect.</param>
 /// <param name="magnitude">The force applied to objects within the radius from the position of this radial impulse effect.</param>
 /// <code>
 /// // Define the Position
 /// %position = "10.0 15.0 10.0";
 ///
 /// // Define the Radius
 /// %radius = "25.0";
 ///
 /// // Define the Magnitude
 /// %magnitude = "30.0"
 ///
 /// // Create a globalRadialImpulse physics effect.
 /// RadialImpulseEvent::send(%position,%radius,%magnitude);
 /// </code>
 public static void Send(string inPosition = "1.0 1.0 1.0", float radius = 10f, float magnitude = 20f)
 {
     InternalUnsafeMethods.Send__Args _args = new InternalUnsafeMethods.Send__Args()
     {
         inPosition = inPosition,
         radius     = radius,
         magnitude  = magnitude,
     };
     InternalUnsafeMethods.Send()(_args);
 }