NWNX:EE  8193.36.12
nwnx_store.nss
Go to the documentation of this file.
1 #include "nwnx"
6 
7 const string NWNX_Store = "NWNX_Store";
8 
13 int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem);
14 
18 int NWNX_Store_GetBlackMarketMarkDown(object oStore);
19 
23 void NWNX_Store_SetBlackMarketMarkDown(object oStore, int nValue);
24 
28 int NWNX_Store_GetMarkDown(object oStore);
29 
33 void NWNX_Store_SetMarkDown(object oStore, int nValue);
34 
38 int NWNX_Store_GetMarkUp(object oStore);
39 
43 void NWNX_Store_SetMarkUp(object oStore, int nValue);
44 
48 int NWNX_Store_GetCurrentCustomersCount(object oStore);
49 
51 
52 int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem)
53 {
54  string sFunc = "GetIsRestrictedBuyItem";
55 
56  NWNX_PushArgumentInt(nBaseItem);
58 
59  NWNX_CallFunction(NWNX_Store, sFunc);
60  return NWNX_GetReturnValueInt();
61 }
62 
64 {
65  string sFunc = "GetBlackMarketMarkDown";
66 
68 
69  NWNX_CallFunction(NWNX_Store, sFunc);
70  return NWNX_GetReturnValueInt();
71 }
72 
73 void NWNX_Store_SetBlackMarketMarkDown(object oStore, int nValue)
74 {
75  string sFunc = "SetBlackMarketMarkDown";
76 
77  NWNX_PushArgumentInt(nValue);
79 
80  NWNX_CallFunction(NWNX_Store, sFunc);
81 }
82 
83 int NWNX_Store_GetMarkDown(object oStore)
84 {
85  string sFunc = "GetMarkDown";
86 
88 
89  NWNX_CallFunction(NWNX_Store, sFunc);
90  return NWNX_GetReturnValueInt();
91 }
92 
93 void NWNX_Store_SetMarkDown(object oStore, int nValue)
94 {
95  string sFunc = "SetMarkDown";
96 
97  NWNX_PushArgumentInt(nValue);
99 
100  NWNX_CallFunction(NWNX_Store, sFunc);
101 }
102 
103 int NWNX_Store_GetMarkUp(object oStore)
104 {
105  string sFunc = "GetMarkUp";
106 
107  NWNX_PushArgumentObject(oStore);
108 
109  NWNX_CallFunction(NWNX_Store, sFunc);
110  return NWNX_GetReturnValueInt();
111 }
112 
113 void NWNX_Store_SetMarkUp(object oStore, int nValue)
114 {
115  string sFunc = "SetMarkUp";
116 
117  NWNX_PushArgumentInt(nValue);
118  NWNX_PushArgumentObject(oStore);
119 
120  NWNX_CallFunction(NWNX_Store, sFunc);
121 }
122 
124 {
125  string sFunc = "GetCurrentCustomersCount";
126 
127  NWNX_PushArgumentObject(oStore);
128 
129  NWNX_CallFunction(NWNX_Store, sFunc);
130  return NWNX_GetReturnValueInt();
131 }
NWNX_Store_SetMarkDown
void NWNX_Store_SetMarkDown(object oStore, int nValue)
Set the mark down of a store.
Definition: nwnx_store.nss:93
NWNX_GetReturnValueInt
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
Definition: nwnx.nss:94
NWNX_Store_GetBlackMarketMarkDown
int NWNX_Store_GetBlackMarketMarkDown(object oStore)
Return the blackmarket mark down of a store.
Definition: nwnx_store.nss:63
NWNX_Store_GetIsRestrictedBuyItem
int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem)
Return status of a base item purchase status.
Definition: nwnx_store.nss:52
NWNX_CallFunction
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
Definition: nwnx.nss:54
NWNX_PushArgumentObject
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:69
NWNX_Store_GetMarkUp
int NWNX_Store_GetMarkUp(object oStore)
Return the mark up of a store.
Definition: nwnx_store.nss:103
NWNX_PushArgumentInt
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:59
NWNX_Store_SetBlackMarketMarkDown
void NWNX_Store_SetBlackMarketMarkDown(object oStore, int nValue)
Set the blackmarket mark down of a store.
Definition: nwnx_store.nss:73
NWNX_Store_SetMarkUp
void NWNX_Store_SetMarkUp(object oStore, int nValue)
Set the mark up of a store.
Definition: nwnx_store.nss:113
NWNX_Store_GetCurrentCustomersCount
int NWNX_Store_GetCurrentCustomersCount(object oStore)
Return current customer count.
Definition: nwnx_store.nss:123
NWNX_Store_GetMarkDown
int NWNX_Store_GetMarkDown(object oStore)
Return the mark down of a store.
Definition: nwnx_store.nss:83