PSF-LoginServer/net/psforever/packet/game/objectcreate/VehicleData.html

37 lines
77 KiB
HTML
Raw Normal View History

<!DOCTYPE html ><html><head><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/><title>PSF-LoginServer - master - net.psforever.packet.game.objectcreate.VehicleData</title><meta content="PSF - LoginServer - master - net.psforever.packet.game.objectcreate.VehicleData" name="description"/><meta content="PSF LoginServer master net.psforever.packet.game.objectcreate.VehicleData" name="keywords"/><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><link href="../../../../../lib/index.css" media="screen" type="text/css" rel="stylesheet"/><link href="../../../../../lib/template.css" media="screen" type="text/css" rel="stylesheet"/><link href="../../../../../lib/print.css" media="print" type="text/css" rel="stylesheet"/><link href="../../../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css"/><script type="text/javascript" src="../../../../../lib/jquery.min.js"></script><script type="text/javascript" src="../../../../../lib/index.js"></script><script type="text/javascript" src="../../../../../index.js"></script><script type="text/javascript" src="../../../../../lib/scheduler.js"></script><script type="text/javascript" src="../../../../../lib/template.js"></script><script type="text/javascript">/* this variable can be used by the JS to determine the path to the root document */
var toRoot = '../../../../../';</script></head><body><div id="search"><span id="doc-title">PSF-LoginServer - <span id="doc-version">master</span></span> <span class="close-results"><span class="left">&lt;</span> Back</span><div id="textfilter"><span class="input"><input autocapitalize="none" placeholder="Search" id="index-input" type="text" accesskey="/"/><i class="clear material-icons"></i><i id="search-icon" class="material-icons"></i></span></div></div><div id="search-results"><div id="search-progress"><div id="progress-fill"></div></div><div id="results-content"><div id="entity-results"></div><div id="member-results"></div></div></div><div id="content-scroll-container" style="-webkit-overflow-scrolling: touch;"><div id="content-container" style="-webkit-overflow-scrolling: touch;"><div id="subpackage-spacer"><div id="packages"><h1>Packages</h1><ul><li class="indented0 " name="_root_.root" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="_root_"></a><a id="root:_root_"></a> <span class="permalink"><a href="../../../../../index.html" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">package</span></span> <span class="symbol"><a href="../../../../../index.html" title=""><span class="name">root</span></a></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd><a href="../../../../../index.html" name="_root_" id="_root_" class="extype">root</a></dd></dl></div></li><li class="indented1 " name="_root_.net" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="net"></a><a id="net:net"></a> <span class="permalink"><a href="../../../../../net/index.html" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">package</span></span> <span class="symbol"><a href="../../../../index.html" title=""><span class="name">net</span></a></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd><a href="../../../../../index.html" name="_root_" id="_root_" class="extype">root</a></dd></dl></div></li><li class="indented2 " name="net.psforever" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="psforever"></a><a id="psforever:psforever"></a> <span class="permalink"><a href="../../../../../net/psforever/index.html" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">package</span></span> <span class="symbol"><a href="../../../index.html" title=""><span class="name">psforever</span></a></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd><a href="../../../../index.html" name="net" id="net" class="extype">net</a></dd></dl></div></li><li class="indented3 " name="net.psforever.packet" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="packet"></a><a id="packet:packet"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/index.html" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">package</span></span> <span class="symbol"><a href="../../index.html" title=""><span class="name">packet</span></a></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd><a href="../../../index.html" name="net.psforever" id="net.psforever" class="extype">psforever</a></dd></dl></div></li><li class="indented4 " name="net.psforever.packet.game" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="game"></a><a id="game:game"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/index.html" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">package</span></span> <span class="symbol"><a href="../index.html" title=""><span class="name
-bops - this vehicle belongs to the Black Ops, regardless of the faction field;
activates the green camo and adjusts permissions<br>
-destroyed - this vehicle has ben destroyed;
health should be less than 3/255, or 0%<br>
-jammered - vehicles will not be jammered by setting this field<br>
-player_guid the vehicle's (official) owner;
a living player in the game world on the same continent as the vehicle who may mount the driver mount</p></dd><dt class="param">unk3</dt><dd class="cmt"><p>na</p></dd><dt class="param">health</dt><dd class="cmt"><p>the amount of health the vehicle has, as a percentage of a filled bar (255)</p></dd><dt class="param">unk4</dt><dd class="cmt"><p>na</p></dd><dt class="param">no_mount_points</dt><dd class="cmt"><p>do not display entry points for the seats</p></dd><dt class="param">driveState</dt><dd class="cmt"><p>a representation for the current mobility state;
various vehicles also use this field to indicate "deployment," e.g., the advanced mobile spawn</p></dd><dt class="param">unk5</dt><dd class="cmt"><p>na</p></dd><dt class="param">unk6</dt><dd class="cmt"><p>na</p></dd><dt class="param">cloak</dt><dd class="cmt"><p>if a vehicle (that can cloak) is cloaked</p></dd><dt class="param">vehicle_format_data</dt><dd class="cmt"><p>extra information necessary to implement special-type vehicles;
see <code>vehicle_type</code></p></dd><dt class="param">inventory</dt><dd class="cmt"><p>the seats, mounted weapons, and utilities (such as terminals) that are currently included;
will also include trunk contents;
the driver is the only valid mount entry (more will cause the access permissions to act up)</p></dd><dt class="param">vehicle_type</dt><dd class="cmt"><p>a modifier for parsing the vehicle data format differently;
see <code>vehicle_format_data</code>;
defaults to <code>Normal</code></p></dd></dl><dl class="attributes block"><dt>Source</dt><dd><a href="https://github.com/psforever/PSF-LoginServer/blob/master//home/runner/work/PSF-LoginServer/PSF-LoginServer/src/main/scala/net/psforever/packet/game/objectcreate/VehicleData.scala" target="_blank">VehicleData.scala</a></dd></dl><div class="toggleContainer"><div class="toggle block"><span>Linear Supertypes</span><div class="superTypes hiddenContent"><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html#java.io.Serializable" name="java.io.Serializable" id="java.io.Serializable" class="extype">Serializable</a>, <span name="scala.Product" class="extype">Product</span>, <span name="scala.Equals" class="extype">Equals</span>, <a href="ConstructorData.html" name="net.psforever.packet.game.objectcreate.ConstructorData" id="net.psforever.packet.game.objectcreate.ConstructorData" class="extype">ConstructorData</a>, <a href="StreamBitSize.html" name="net.psforever.packet.game.objectcreate.StreamBitSize" id="net.psforever.packet.game.objectcreate.StreamBitSize" class="extype">StreamBitSize</a>, <span name="scala.AnyRef" class="extype">AnyRef</span>, <span name="scala.Any" class="extype">Any</span></div></div></div></div><div id="mbrsel"><div class="toggle"></div><div id="memberfilter"><i class="material-icons arrow"></i><span class="input"><input placeholder="Filter all members" id="mbrsel-input" type="text" accesskey="/"/></span><i class="clear material-icons"></i></div><div id="filterby"><div id="order"><span class="filtertype">Ordering</span><ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By Inheritance</span></li></ol></div><div class="ancestors"><span class="filtertype">Inherited<br/></span><ol id="linearization"><li class="in" name="net.psforever.packet.game.objectcreate.VehicleData"><span>VehicleData</span></li><li class="in" name="java.io.Serializable"><span>Serializable</span></li><li class="in" name="scala.Product"><span>Product</span></li><li class="in" name="scala.Equals"><span>Equals</span></li><li class="in" name="net.psforever.packet.game.objectcreate.ConstructorData"><span>ConstructorData</span></li><li class="in" name="net.psforever.packet.game.objectcreate.StreamBitSize"><span>StreamBitSize</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li></ol></div><div class="ancestors"><span class="filtertype"></span><ol><li class="hideall out"><span>Hide All</span></li><li class="showall in"><span>Show All</span></li></ol></div><div id="visbl"><span class="filtertype">Visibility</span><ol><li class="public in"><span>Public</span></li><li class="protected out"><span>Protected</span></li></ol></div></div></div><div id="template"><div id="allMembers"><div id="constructors" class="members"><h3>Instance Constructors</h3><ol><li class="indented0 " name="net.psforever.packet.game.objectcreate.VehicleData#&lt;init&gt;" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="&lt;init&gt;(pos:net.psforever.packet.game.objectcreate.PlacementData,data:net.psforever.packet.game.objectcreate.CommonFieldData,unk3:Boolean,health:Int,unk4:Boolean,no_mount_points:Boolean,driveState:net.psforever.types.DriveState.Value,unk5:Boolean,unk6:Boolean,cloak:Boolean,vehicle_format_data:Option[net.psforever.packet.game.objectcreate.SpecificVehicleData],inventory:Option[net.psforever.packet.game.objectcreate.InventoryData])(vehicle_type:net.psforever.packet.game.objectcreate.VehicleFormat.Value):net.psforever.packet.game.objectcreate.VehicleData"></a><a id="&lt;init&gt;:VehicleData"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#&lt;init&gt;(pos:net.psforever.packet.game.objectcreate.PlacementData,data:net.psforever.packet.game.objectcreate.CommonFieldData,unk3:Boolean,health:Int,unk4:Boolean,no_mount_points:Boolean,driveState:net.psforever.types.DriveState.Value,unk5:Boolean,unk6:Boolean,cloak:Boolean,vehicle_format_data:
-bops - this vehicle belongs to the Black Ops, regardless of the faction field;
activates the green camo and adjusts permissions<br>
-destroyed - this vehicle has ben destroyed;
health should be less than 3/255, or 0%<br>
-jammered - vehicles will not be jammered by setting this field<br>
-player_guid the vehicle's (official) owner;
a living player in the game world on the same continent as the vehicle who may mount the driver mount</p></dd><dt class="param">unk3</dt><dd class="cmt"><p>na</p></dd><dt class="param">health</dt><dd class="cmt"><p>the amount of health the vehicle has, as a percentage of a filled bar (255)</p></dd><dt class="param">unk4</dt><dd class="cmt"><p>na</p></dd><dt class="param">no_mount_points</dt><dd class="cmt"><p>do not display entry points for the seats</p></dd><dt class="param">driveState</dt><dd class="cmt"><p>a representation for the current mobility state;
various vehicles also use this field to indicate "deployment," e.g., the advanced mobile spawn</p></dd><dt class="param">unk5</dt><dd class="cmt"><p>na</p></dd><dt class="param">unk6</dt><dd class="cmt"><p>na</p></dd><dt class="param">cloak</dt><dd class="cmt"><p>if a vehicle (that can cloak) is cloaked</p></dd><dt class="param">vehicle_format_data</dt><dd class="cmt"><p>extra information necessary to implement special-type vehicles;
see <code>vehicle_type</code></p></dd><dt class="param">inventory</dt><dd class="cmt"><p>the seats, mounted weapons, and utilities (such as terminals) that are currently included;
will also include trunk contents;
the driver is the only valid mount entry (more will cause the access permissions to act up)</p></dd><dt class="param">vehicle_type</dt><dd class="cmt"><p>a modifier for parsing the vehicle data format differently;
see <code>vehicle_format_data</code>;
defaults to <code>Normal</code></p></dd></dl></div></li></ol></div><div class="values members"><h3>Value Members</h3><ol><li class="indented0 " name="scala.AnyRef#!=" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="!=(x$1:Any):Boolean"></a><a id="!=(Any):Boolean"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#!=(x$1:Any):Boolean" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier">final </span> <span class="kind">def</span></span> <span class="symbol"><span class="name" title="gt4s: $bang$eq">!=</span><span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><li class="indented0 " name="scala.AnyRef###" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="##:Int"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html###:Int" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier">final </span> <span class="kind">def</span></span> <span class="symbol"><span class="name" title="gt4s: $hash$hash">##</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><li class="indented0 " name="scala.AnyRef#==" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="==(x$1:Any):Boolean"></a><a id="==(Any):Boolean"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#==(x$1:Any):Boolean" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier">final </span> <span class="kind">def</span></span> <span class="symbol"><span class="name" title="gt4s: $eq$eq">==</span><span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><li class="indented0 " name="scala.Any#asInstanceOf" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="asInstanceOf[T0]:T0"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#asInstanceOf[T0]:T0" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier">final </span> <span class="kind">def</span></span> <span class="symbol"><span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span name="scala.Any.asInstanceOf.T0" class="extype">T0</span></span></span><div class="fullcomment"><dl class="attributes block"><dt>Definition Classes</dt><dd>Any</dd></dl></div></li><li class="indented0 " name="net.psforever.packet.game.objectcreate.VehicleData#bitsize" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="bitsize:Long"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#bitsize:Long" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">def</span></span> <span class="symbol"><span class="name">bitsize</span><span class="result">: <span name="scala.Long" class="extype">Long</span></span></span><p class="shortcomment cmt">Performs a "sizeof()" analysis of the given object.<br>
<br>
The calculation reflects the <code>scodec Codec</code> definition rather than the explicit parameter fields.</p><div class="fullcomment"><div class="comment cmt"><p>Performs a "sizeof()" analysis of the given object.<br>
<br>
The calculation reflects the <code>scodec Codec</code> definition rather than the explicit parameter fields.
For example, a traditional <code>Int</code> is normally a 32-bit number, often rendered as a <code>32u</code> number.
When parsed with a <code>uintL(7)</code>, it's length will be considered 7 bits (<code>7u</code>).
(Note: being permanently signed, an <code>scodec</code> value of <code>32u</code> or longer must fit into a <code>Long</code> type.)</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the number of bits necessary to measure an object of this class;
defaults to <code>0L</code></p></dd></dl><dl class="attributes block"><dt>Definition Classes</dt><dd><a href="" name="net.psforever.packet.game.objectcreate.VehicleData" id="net.psforever.packet.game.objectcreate.VehicleData" class="extype">VehicleData</a><a href="StreamBitSize.html" name="net.psforever.packet.game.objectcreate.StreamBitSize" id="net.psforever.packet.game.objectcreate.StreamBitSize" class="extype">StreamBitSize</a></dd></dl></div></li><li class="indented0 " name="net.psforever.packet.game.objectcreate.VehicleData#cloak" group="Ungrouped" fullComment="no" data-isabs="false" visbl="pub"><a id="cloak:Boolean"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#cloak:Boolean" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">val</span></span> <span class="symbol"><span class="name">cloak</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span></span></li><li class="indented0 " name="scala.AnyRef#clone" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="prt"><a id="clone():Object"></a><a id="clone():AnyRef"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#clone():Object" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">def</span></span> <span class="symbol"><span class="name">clone</span><span class="params">()</span><span class="result">: <span name="scala.AnyRef" class="extype">AnyRef</span></span></span><div class="fullcomment"><dl class="attributes block"><dt>Attributes</dt><dd>protected[<span name="java.lang" class="extype">lang</span>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><span class="name">@throws</span><span class="args">(<span><span class="defval">classOf[java.lang.CloneNotSupportedException]</span></span>)</span> <span class="name">@native</span><span class="args">()</span> </dd></dl></div></li><li class="indented0 " name="net.psforever.packet.game.objectcreate.VehicleData#data" group="Ungrouped" fullComment="no" data-isabs="false" visbl="pub"><a id="data:net.psforever.packet.game.objectcreate.CommonFieldData"></a><a id="data:CommonFieldData"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#data:net.psforever.packet.game.objectcreate.CommonFieldData" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">val</span></span> <span class="symbol"><span class="name">data</span><span class="result">: <a href="CommonFieldData.html" name="net.psforever.packet.game.objectcreate.CommonFieldData" id="net.psforever.packet.game.objectcreate.CommonFieldData" class="extype">CommonFieldData</a></span></span></li><li class="indented0 " name="net.psforever.packet.game.objectcreate.VehicleData#driveState" group="Ungrouped" fullComment="no" data-isabs="false" visbl="pub"><a id="driveState:net.psforever.types.DriveState.Value"></a><a id="driveState:types.DriveState.Value"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/VehicleData.html#driveState:net.psforever.types.DriveState.Value" title="Permalink"><i class="material-icons"></i></a></span> <span class="modifier_kind"><span class="modifier"></span> <span class="kind">val</span></span> <span class="symbol"><span class="name">driveState</span><span class="result">: <a href="../../../types/DriveState$.html#ValueextendsOrdered[Enumeration.this.Value]withSerializable" name="net.psforever.types.DriveState.Value" id="net.psforever.types.DriveState.Value" class="extmbr">types.DriveState.Value</a></span></span></li><li class="indented0 " name="scala.AnyRef#eq" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="eq(x$1:AnyRef):Boolean"></a><a id="eq(AnyRef):Boolean"></a> <span cl