2020-08-26 04:22:45 +00:00
|
|
|
<!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.WeaponData</title><meta content="PSF - LoginServer - master - net.psforever.packet.game.objectcreate.WeaponData" name="description"/><meta content="PSF LoginServer master net.psforever.packet.game.objectcreate.WeaponData" 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 */
|
|
|
|
|
This is a common weapon configuration, especially for vehicle-mounted weaponry.</p></div><dl class="paramcmts block"><dt class="param">unk1</dt><dd class="cmt"><p>na</p></dd><dt class="param">unk2</dt><dd class="cmt"><p>na</p></dd><dt class="param">fire_mode</dt><dd class="cmt"><p>data regarding the currently loaded ammunition type</p></dd><dt class="param">cls1</dt><dd class="cmt"><p>the code for the first type of object (ammunition) being constructed</p></dd><dt class="param">guid1</dt><dd class="cmt"><p>the globally unique id assigned to the first type of ammunition</p></dd><dt class="param">slot1</dt><dd class="cmt"><p>the slot where the first type of ammunition is to be installed in the weapon</p></dd><dt class="param">ammo1</dt><dd class="cmt"><p>the first ammunition object</p></dd><dt class="param">cls2</dt><dd class="cmt"><p>the code for the second type of object (ammunition) being constructed</p></dd><dt class="param">guid2</dt><dd class="cmt"><p>the globally unique id assigned to the second type of ammunition</p></dd><dt class="param">slot2</dt><dd class="cmt"><p>the slot where the second type of ammunition is to be installed in the weapon</p></dd><dt class="param">ammo2</dt><dd class="cmt"><p>the second ammunition object</p></dd><dt>returns</dt><dd class="cmt"><p>a <code>WeaponData</code> object</p></dd></dl></div></li><li class="indented0 " name="net.psforever.packet.game.objectcreate.WeaponData#apply" group="Ungrouped" fullComment="yes" data-isabs="false" visbl="pub"><a id="apply(unk1:Int,unk2:Int,fire_mode:Int,cls:Int,guid:net.psforever.types.PlanetSideGUID,parentSlot:Int,ammo:net.psforever.packet.game.objectcreate.CommonFieldData):net.psforever.packet.game.objectcreate.WeaponData" class="anchorToMember"></a><a id="apply(Int,Int,Int,Int,PlanetSideGUID,Int,CommonFieldData):WeaponData" class="anchorToMember"></a> <span class="permalink"><a href="../../../../../net/psforever/packet/game/objectcreate/WeaponData$.html#apply(unk1:Int,unk2:Int,fire_mode:Int,cls:Int,guid:net.psforever.types.PlanetSideGUID,parentSlot:Int,ammo:net.psforever.packet.game.objectcreate.CommonFieldData):net.psforever.packet.game.objectcreate.WeaponData" 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">apply</span><span class="params">(<span name="unk1">unk1: <span name="scala.Int" class="extype">Int</span></span>, <span name="unk2">unk2: <span name="scala.Int" class="extype">Int</span></span>, <span name="fire_mode">fire_mode: <span name="scala.Int" class="extype">Int</span></span>, <span name="cls">cls: <span name="scala.Int" class="extype">Int</span></span>, <span name="guid">guid: <a href="../../../types/PlanetSideGUID.html" name="net.psforever.types.PlanetSideGUID" id="net.psforever.types.PlanetSideGUID" class="extype">PlanetSideGUID</a></span>, <span name="parentSlot">parentSlot: <span name="scala.Int" class="extype">Int</span></span>, <span name="ammo">ammo: <a href="CommonFieldData.html" name="net.psforever.packet.game.objectcreate.CommonFieldData" id="net.psforever.packet.game.objectcreate.CommonFieldData" class="extype">CommonFieldData</a></span>)</span><span class="result">: <a href="WeaponData.html" name="net.psforever.packet.game.objectcreate.WeaponData" id="net.psforever.packet.game.objectcreate.WeaponData" class="extype">WeaponData</a></span></span><p class="shortcomment cmt">Overloaded constructor for creating <code>WeaponData</code> that mandates information about the firemode and a single type of ammunition.</p><div class="fullcomment"><div class="comment cmt"><p>Overloaded constructor for creating <code>WeaponData</code> that mandates information about the firemode and a single type of ammunition.</p></div><dl class="paramcmts block"><dt class="param">unk1</dt><dd class="cmt"><p>na</p></dd><dt class="param">unk2</dt><dd class="cmt"><p>na</p></dd><dt class="param">fire_mode</dt><dd class="cmt"><p>data regarding the currently loaded ammunition type</p></dd><dt class="param">
|