forked from rubbertoe98/vWeaponsToolkit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
cWeaponComponent.cpp
90 lines (74 loc) · 1.37 KB
/
cWeaponComponent.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#include "cWeaponComponent.h"
cWeaponComponent::cWeaponComponent()
{
componentTemplate = "";
componentName = "";
modelName = "";
clipSize = 0;
ammoInfo = "";
modelLOD = 300.0;
enabled = true;
}
void cWeaponComponent::setComponentName(std::string _componentName)
{
componentName = _componentName;
}
void cWeaponComponent::setComponentTemplate(std::string _componentTemplate)
{
componentTemplate = _componentTemplate;
}
void cWeaponComponent::setModelName(std::string _modelName)
{
modelName = _modelName;
}
void cWeaponComponent::setClipSize(int _clipSize)
{
clipSize = _clipSize;
}
void cWeaponComponent::setModelLOD(int _modelLOD)
{
modelLOD = _modelLOD;
}
void cWeaponComponent::setAmmoInfo(std::string _ammoInfo)
{
if (_ammoInfo == "Default Ammo")
{
ammoInfo = "";
}
else
{
ammoInfo = _ammoInfo;
}
}
void cWeaponComponent::setComponentEnabled(bool _enabled)
{
enabled = _enabled;
}
std::string cWeaponComponent::getComponentTemplate()
{
return componentTemplate;
}
std::string cWeaponComponent::getComponentName()
{
return componentName;
}
std::string cWeaponComponent::getModelName()
{
return modelName;
}
int cWeaponComponent::getClipSize()
{
return clipSize;
}
int cWeaponComponent::getModelLOD()
{
return modelLOD;
}
std::string cWeaponComponent::getAmmoInfo()
{
return ammoInfo;
}
bool cWeaponComponent::isComponentEnabled()
{
return enabled;
}