Show / Hide Table of Contents

Class WeaponConfigurationService

Service that allows you to get and change weapon configuration

Inheritance
object
WeaponConfigurationService
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Services
Assembly: SlipeServer.Server.dll
Syntax
public class WeaponConfigurationService

Constructors

| Edit this page View Source

WeaponConfigurationService(MtaServer)

Declaration
public WeaponConfigurationService(MtaServer server)
Parameters
Type Name Description
MtaServer server

Methods

| Edit this page View Source

GetWeaponConfiguration(WeaponId, WeaponSkillLevel)

Declaration
public WeaponConfiguration GetWeaponConfiguration(WeaponId weapon, WeaponSkillLevel skill = WeaponSkillLevel.Poor)
Parameters
Type Name Description
WeaponId weapon
WeaponSkillLevel skill
Returns
Type Description
WeaponConfiguration
| Edit this page View Source

SetWeaponConfiguration(WeaponId, WeaponConfiguration, WeaponSkillLevel)

Declaration
public void SetWeaponConfiguration(WeaponId weapon, WeaponConfiguration weaponConfiguration, WeaponSkillLevel skill = WeaponSkillLevel.Poor)
Parameters
Type Name Description
WeaponId weapon
WeaponConfiguration weaponConfiguration
WeaponSkillLevel skill
| Edit this page View Source

SetWeaponConfigurationFor(WeaponId, WeaponConfiguration, Player, WeaponSkillLevel)

Declaration
public void SetWeaponConfigurationFor(WeaponId weapon, WeaponConfiguration weaponConfiguration, Player player, WeaponSkillLevel skill = WeaponSkillLevel.Poor)
Parameters
Type Name Description
WeaponId weapon
WeaponConfiguration weaponConfiguration
Player player
WeaponSkillLevel skill
| Edit this page View Source

SetWeaponConfigurationFor(WeaponId, WeaponConfiguration, IEnumerable<Player>, WeaponSkillLevel)

Declaration
public void SetWeaponConfigurationFor(WeaponId weapon, WeaponConfiguration weaponConfiguration, IEnumerable<Player> players, WeaponSkillLevel skill = WeaponSkillLevel.Poor)
Parameters
Type Name Description
WeaponId weapon
WeaponConfiguration weaponConfiguration
IEnumerable<Player> players
WeaponSkillLevel skill
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX