PSF-LoginServer/net/psforever/packet/game/objectcreate/WeaponData$.html

4 lines
70 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.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 */
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
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"></a><a id="apply(Int,Int,Int,Int,PlanetSideGUID,Int,CommonFieldData):WeaponData"></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">cls</dt><dd class="cmt"><p>the code for the ty