Ejemplo n.º 1
0
 /// <description>
 /// Called when the vehicle enters liquid.
 /// </description>
 /// <param name="obj">the Vehicle object</param>
 /// <param name="coverage">percentage of the vehicle's bounding box covered by the liquid</param>
 /// <param name="type">type of liquid the vehicle has entered</param>
 public virtual void OnEnterLiquid(Vehicle obj, float coverage, string type) {
      InternalUnsafeMethods.OnEnterLiquid__Args _args = new InternalUnsafeMethods.OnEnterLiquid__Args() {
         obj = obj.ObjectPtr,
         coverage = coverage,
         type = type,
      };
      InternalUnsafeMethods.OnEnterLiquid()(ObjectPtr, _args);
 }
Ejemplo n.º 2
0
 /// <description>
 /// Informs an Item object that it has entered liquid, along with information about the liquid type.
 /// </description>
 /// <param name="objID">Object ID for this Item object.</param>
 /// <param name="waterCoverage">How much coverage of water this Item object has.</param>
 /// <param name="liquidType">The type of liquid that this Item object has entered.</param>
 /// <remarks> Server side only.
 /// </remarks>
 /// <see cref="Item, ItemData, WaterObject" />
 public virtual void OnEnterLiquid(string objID, float waterCoverage, string liquidType)
 {
     InternalUnsafeMethods.OnEnterLiquid__Args _args = new InternalUnsafeMethods.OnEnterLiquid__Args()
     {
         objID         = objID,
         waterCoverage = waterCoverage,
         liquidType    = liquidType,
     };
     InternalUnsafeMethods.OnEnterLiquid()(ObjectPtr, _args);
 }