1use std::ffi::{CStr, CString};
2
3#[allow(non_upper_case_globals)]
4pub mod raw {
5 #[no_mangle]
6 pub static mut prefix: [u8; 4] = *b"rust";
7 #[no_mangle]
8 pub static mut rustCreateTimer: fn(fn(), i16) -> i16 = |_, _| { unreachable!("CreateTimer was called before set by TES3MP"); };
9 #[no_mangle]
10 pub static mut rustMakePublic: fn(fn(), *const i8, i8, *const i8) = |_, _, _, _| { unreachable!("MakePublic was called before set by TES3MP"); };
11 #[no_mangle]
12 pub static mut rustStartTimer: fn(i16) = |_| { unreachable!("StartTimer was called before set by TES3MP"); };
13 #[no_mangle]
14 pub static mut rustStopTimer: fn(i16) = |_| { unreachable!("StopTimer was called before set by TES3MP"); };
15 #[no_mangle]
16 pub static mut rustRestartTimer: fn(i16, i16) = |_, _| { unreachable!("RestartTimer was called before set by TES3MP"); };
17 #[no_mangle]
18 pub static mut rustFreeTimer: fn(i16) = |_| { unreachable!("FreeTimer was called before set by TES3MP"); };
19 #[no_mangle]
20 pub static mut rustIsTimerElapsed: fn(i16) -> bool = |_| { unreachable!("IsTimerElapsed was called before set by TES3MP"); };
21 #[no_mangle]
22 pub static mut rustReadReceivedActorList: fn() = || { unreachable!("ReadReceivedActorList was called before set by TES3MP"); };
23 #[no_mangle]
24 pub static mut rustReadCellActorList: fn(*const i8) = |_| { unreachable!("ReadCellActorList was called before set by TES3MP"); };
25 #[no_mangle]
26 pub static mut rustClearActorList: fn() = || { unreachable!("ClearActorList was called before set by TES3MP"); };
27 #[no_mangle]
28 pub static mut rustSetActorListPid: fn(u16) = |_| { unreachable!("SetActorListPid was called before set by TES3MP"); };
29 #[no_mangle]
30 pub static mut rustCopyReceivedActorListToStore: fn() = || { unreachable!("CopyReceivedActorListToStore was called before set by TES3MP"); };
31 #[no_mangle]
32 pub static mut rustGetActorListSize: fn() -> u16 = || { unreachable!("GetActorListSize was called before set by TES3MP"); };
33 #[no_mangle]
34 pub static mut rustGetActorListAction: fn() -> u8 = || { unreachable!("GetActorListAction was called before set by TES3MP"); };
35 #[no_mangle]
36 pub static mut rustGetActorCell: fn(u16) -> *const i8 = |_| { unreachable!("GetActorCell was called before set by TES3MP"); };
37 #[no_mangle]
38 pub static mut rustGetActorRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetActorRefId was called before set by TES3MP"); };
39 #[no_mangle]
40 pub static mut rustGetActorRefNum: fn(u16) -> u16 = |_| { unreachable!("GetActorRefNum was called before set by TES3MP"); };
41 #[no_mangle]
42 pub static mut rustGetActorMpNum: fn(u16) -> u16 = |_| { unreachable!("GetActorMpNum was called before set by TES3MP"); };
43 #[no_mangle]
44 pub static mut rustGetActorPosX: fn(u16) -> f64 = |_| { unreachable!("GetActorPosX was called before set by TES3MP"); };
45 #[no_mangle]
46 pub static mut rustGetActorPosY: fn(u16) -> f64 = |_| { unreachable!("GetActorPosY was called before set by TES3MP"); };
47 #[no_mangle]
48 pub static mut rustGetActorPosZ: fn(u16) -> f64 = |_| { unreachable!("GetActorPosZ was called before set by TES3MP"); };
49 #[no_mangle]
50 pub static mut rustGetActorRotX: fn(u16) -> f64 = |_| { unreachable!("GetActorRotX was called before set by TES3MP"); };
51 #[no_mangle]
52 pub static mut rustGetActorRotY: fn(u16) -> f64 = |_| { unreachable!("GetActorRotY was called before set by TES3MP"); };
53 #[no_mangle]
54 pub static mut rustGetActorRotZ: fn(u16) -> f64 = |_| { unreachable!("GetActorRotZ was called before set by TES3MP"); };
55 #[no_mangle]
56 pub static mut rustGetActorHealthBase: fn(u16) -> f64 = |_| { unreachable!("GetActorHealthBase was called before set by TES3MP"); };
57 #[no_mangle]
58 pub static mut rustGetActorHealthCurrent: fn(u16) -> f64 = |_| { unreachable!("GetActorHealthCurrent was called before set by TES3MP"); };
59 #[no_mangle]
60 pub static mut rustGetActorHealthModified: fn(u16) -> f64 = |_| { unreachable!("GetActorHealthModified was called before set by TES3MP"); };
61 #[no_mangle]
62 pub static mut rustGetActorMagickaBase: fn(u16) -> f64 = |_| { unreachable!("GetActorMagickaBase was called before set by TES3MP"); };
63 #[no_mangle]
64 pub static mut rustGetActorMagickaCurrent: fn(u16) -> f64 = |_| { unreachable!("GetActorMagickaCurrent was called before set by TES3MP"); };
65 #[no_mangle]
66 pub static mut rustGetActorMagickaModified: fn(u16) -> f64 = |_| { unreachable!("GetActorMagickaModified was called before set by TES3MP"); };
67 #[no_mangle]
68 pub static mut rustGetActorFatigueBase: fn(u16) -> f64 = |_| { unreachable!("GetActorFatigueBase was called before set by TES3MP"); };
69 #[no_mangle]
70 pub static mut rustGetActorFatigueCurrent: fn(u16) -> f64 = |_| { unreachable!("GetActorFatigueCurrent was called before set by TES3MP"); };
71 #[no_mangle]
72 pub static mut rustGetActorFatigueModified: fn(u16) -> f64 = |_| { unreachable!("GetActorFatigueModified was called before set by TES3MP"); };
73 #[no_mangle]
74 pub static mut rustGetActorEquipmentItemRefId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetActorEquipmentItemRefId was called before set by TES3MP"); };
75 #[no_mangle]
76 pub static mut rustGetActorEquipmentItemCount: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetActorEquipmentItemCount was called before set by TES3MP"); };
77 #[no_mangle]
78 pub static mut rustGetActorEquipmentItemCharge: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetActorEquipmentItemCharge was called before set by TES3MP"); };
79 #[no_mangle]
80 pub static mut rustGetActorEquipmentItemEnchantmentCharge: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetActorEquipmentItemEnchantmentCharge was called before set by TES3MP"); };
81 #[no_mangle]
82 pub static mut rustDoesActorHavePlayerKiller: fn(u16) -> bool = |_| { unreachable!("DoesActorHavePlayerKiller was called before set by TES3MP"); };
83 #[no_mangle]
84 pub static mut rustGetActorKillerPid: fn(u16) -> i16 = |_| { unreachable!("GetActorKillerPid was called before set by TES3MP"); };
85 #[no_mangle]
86 pub static mut rustGetActorKillerRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetActorKillerRefId was called before set by TES3MP"); };
87 #[no_mangle]
88 pub static mut rustGetActorKillerRefNum: fn(u16) -> u16 = |_| { unreachable!("GetActorKillerRefNum was called before set by TES3MP"); };
89 #[no_mangle]
90 pub static mut rustGetActorKillerMpNum: fn(u16) -> u16 = |_| { unreachable!("GetActorKillerMpNum was called before set by TES3MP"); };
91 #[no_mangle]
92 pub static mut rustGetActorKillerName: fn(u16) -> *const i8 = |_| { unreachable!("GetActorKillerName was called before set by TES3MP"); };
93 #[no_mangle]
94 pub static mut rustDoesActorHavePosition: fn(u16) -> bool = |_| { unreachable!("DoesActorHavePosition was called before set by TES3MP"); };
95 #[no_mangle]
96 pub static mut rustDoesActorHaveStatsDynamic: fn(u16) -> bool = |_| { unreachable!("DoesActorHaveStatsDynamic was called before set by TES3MP"); };
97 #[no_mangle]
98 pub static mut rustSetActorListCell: fn(*const i8) = |_| { unreachable!("SetActorListCell was called before set by TES3MP"); };
99 #[no_mangle]
100 pub static mut rustSetActorListAction: fn(u8) = |_| { unreachable!("SetActorListAction was called before set by TES3MP"); };
101 #[no_mangle]
102 pub static mut rustSetActorCell: fn(*const i8) = |_| { unreachable!("SetActorCell was called before set by TES3MP"); };
103 #[no_mangle]
104 pub static mut rustSetActorRefId: fn(*const i8) = |_| { unreachable!("SetActorRefId was called before set by TES3MP"); };
105 #[no_mangle]
106 pub static mut rustSetActorRefNum: fn(i16) = |_| { unreachable!("SetActorRefNum was called before set by TES3MP"); };
107 #[no_mangle]
108 pub static mut rustSetActorMpNum: fn(i16) = |_| { unreachable!("SetActorMpNum was called before set by TES3MP"); };
109 #[no_mangle]
110 pub static mut rustSetActorPosition: fn(f64, f64, f64) = |_, _, _| { unreachable!("SetActorPosition was called before set by TES3MP"); };
111 #[no_mangle]
112 pub static mut rustSetActorRotation: fn(f64, f64, f64) = |_, _, _| { unreachable!("SetActorRotation was called before set by TES3MP"); };
113 #[no_mangle]
114 pub static mut rustSetActorHealthBase: fn(f64) = |_| { unreachable!("SetActorHealthBase was called before set by TES3MP"); };
115 #[no_mangle]
116 pub static mut rustSetActorHealthCurrent: fn(f64) = |_| { unreachable!("SetActorHealthCurrent was called before set by TES3MP"); };
117 #[no_mangle]
118 pub static mut rustSetActorHealthModified: fn(f64) = |_| { unreachable!("SetActorHealthModified was called before set by TES3MP"); };
119 #[no_mangle]
120 pub static mut rustSetActorMagickaBase: fn(f64) = |_| { unreachable!("SetActorMagickaBase was called before set by TES3MP"); };
121 #[no_mangle]
122 pub static mut rustSetActorMagickaCurrent: fn(f64) = |_| { unreachable!("SetActorMagickaCurrent was called before set by TES3MP"); };
123 #[no_mangle]
124 pub static mut rustSetActorMagickaModified: fn(f64) = |_| { unreachable!("SetActorMagickaModified was called before set by TES3MP"); };
125 #[no_mangle]
126 pub static mut rustSetActorFatigueBase: fn(f64) = |_| { unreachable!("SetActorFatigueBase was called before set by TES3MP"); };
127 #[no_mangle]
128 pub static mut rustSetActorFatigueCurrent: fn(f64) = |_| { unreachable!("SetActorFatigueCurrent was called before set by TES3MP"); };
129 #[no_mangle]
130 pub static mut rustSetActorFatigueModified: fn(f64) = |_| { unreachable!("SetActorFatigueModified was called before set by TES3MP"); };
131 #[no_mangle]
132 pub static mut rustSetActorSound: fn(*const i8) = |_| { unreachable!("SetActorSound was called before set by TES3MP"); };
133 #[no_mangle]
134 pub static mut rustSetActorAIAction: fn(u16) = |_| { unreachable!("SetActorAIAction was called before set by TES3MP"); };
135 #[no_mangle]
136 pub static mut rustSetActorAITargetToPlayer: fn(u16) = |_| { unreachable!("SetActorAITargetToPlayer was called before set by TES3MP"); };
137 #[no_mangle]
138 pub static mut rustSetActorAITargetToObject: fn(i16, i16) = |_, _| { unreachable!("SetActorAITargetToObject was called before set by TES3MP"); };
139 #[no_mangle]
140 pub static mut rustSetActorAICoordinates: fn(f64, f64, f64) = |_, _, _| { unreachable!("SetActorAICoordinates was called before set by TES3MP"); };
141 #[no_mangle]
142 pub static mut rustSetActorAIDistance: fn(u16) = |_| { unreachable!("SetActorAIDistance was called before set by TES3MP"); };
143 #[no_mangle]
144 pub static mut rustSetActorAIDuration: fn(u16) = |_| { unreachable!("SetActorAIDuration was called before set by TES3MP"); };
145 #[no_mangle]
146 pub static mut rustSetActorAIRepetition: fn(bool) = |_| { unreachable!("SetActorAIRepetition was called before set by TES3MP"); };
147 #[no_mangle]
148 pub static mut rustEquipActorItem: fn(u16, *const i8, u16, i16, f64) = |_, _, _, _, _| { unreachable!("EquipActorItem was called before set by TES3MP"); };
149 #[no_mangle]
150 pub static mut rustUnequipActorItem: fn(u16) = |_| { unreachable!("UnequipActorItem was called before set by TES3MP"); };
151 #[no_mangle]
152 pub static mut rustAddActor: fn() = || { unreachable!("AddActor was called before set by TES3MP"); };
153 #[no_mangle]
154 pub static mut rustSendActorList: fn() = || { unreachable!("SendActorList was called before set by TES3MP"); };
155 #[no_mangle]
156 pub static mut rustSendActorAuthority: fn() = || { unreachable!("SendActorAuthority was called before set by TES3MP"); };
157 #[no_mangle]
158 pub static mut rustSendActorPosition: fn(bool, bool) = |_, _| { unreachable!("SendActorPosition was called before set by TES3MP"); };
159 #[no_mangle]
160 pub static mut rustSendActorStatsDynamic: fn(bool, bool) = |_, _| { unreachable!("SendActorStatsDynamic was called before set by TES3MP"); };
161 #[no_mangle]
162 pub static mut rustSendActorEquipment: fn(bool, bool) = |_, _| { unreachable!("SendActorEquipment was called before set by TES3MP"); };
163 #[no_mangle]
164 pub static mut rustSendActorSpeech: fn(bool, bool) = |_, _| { unreachable!("SendActorSpeech was called before set by TES3MP"); };
165 #[no_mangle]
166 pub static mut rustSendActorAI: fn(bool, bool) = |_, _| { unreachable!("SendActorAI was called before set by TES3MP"); };
167 #[no_mangle]
168 pub static mut rustSendActorCellChange: fn(bool, bool) = |_, _| { unreachable!("SendActorCellChange was called before set by TES3MP"); };
169 #[no_mangle]
170 pub static mut rustReadLastActorList: fn() = || { unreachable!("ReadLastActorList was called before set by TES3MP"); };
171 #[no_mangle]
172 pub static mut rustInitializeActorList: fn(u16) = |_| { unreachable!("InitializeActorList was called before set by TES3MP"); };
173 #[no_mangle]
174 pub static mut rustCopyLastActorListToStore: fn() = || { unreachable!("CopyLastActorListToStore was called before set by TES3MP"); };
175 #[no_mangle]
176 pub static mut rustGetActorRefNumIndex: fn(u16) -> u16 = |_| { unreachable!("GetActorRefNumIndex was called before set by TES3MP"); };
177 #[no_mangle]
178 pub static mut rustGetActorKillerRefNumIndex: fn(u16) -> u16 = |_| { unreachable!("GetActorKillerRefNumIndex was called before set by TES3MP"); };
179 #[no_mangle]
180 pub static mut rustSetActorRefNumIndex: fn(i16) = |_| { unreachable!("SetActorRefNumIndex was called before set by TES3MP"); };
181 #[no_mangle]
182 pub static mut rustClearBookChanges: fn(u16) = |_| { unreachable!("ClearBookChanges was called before set by TES3MP"); };
183 #[no_mangle]
184 pub static mut rustGetBookChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetBookChangesSize was called before set by TES3MP"); };
185 #[no_mangle]
186 pub static mut rustAddBook: fn(u16, *const i8) = |_, _| { unreachable!("AddBook was called before set by TES3MP"); };
187 #[no_mangle]
188 pub static mut rustGetBookId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetBookId was called before set by TES3MP"); };
189 #[no_mangle]
190 pub static mut rustSendBookChanges: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendBookChanges was called before set by TES3MP"); };
191 #[no_mangle]
192 pub static mut rustInitializeBookChanges: fn(u16) = |_| { unreachable!("InitializeBookChanges was called before set by TES3MP"); };
193 #[no_mangle]
194 pub static mut rustGetCellStateChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetCellStateChangesSize was called before set by TES3MP"); };
195 #[no_mangle]
196 pub static mut rustGetCellStateType: fn(u16, u16) -> u16 = |_, _| { unreachable!("GetCellStateType was called before set by TES3MP"); };
197 #[no_mangle]
198 pub static mut rustGetCellStateDescription: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetCellStateDescription was called before set by TES3MP"); };
199 #[no_mangle]
200 pub static mut rustGetCell: fn(u16) -> *const i8 = |_| { unreachable!("GetCell was called before set by TES3MP"); };
201 #[no_mangle]
202 pub static mut rustGetExteriorX: fn(u16) -> i16 = |_| { unreachable!("GetExteriorX was called before set by TES3MP"); };
203 #[no_mangle]
204 pub static mut rustGetExteriorY: fn(u16) -> i16 = |_| { unreachable!("GetExteriorY was called before set by TES3MP"); };
205 #[no_mangle]
206 pub static mut rustIsInExterior: fn(u16) -> bool = |_| { unreachable!("IsInExterior was called before set by TES3MP"); };
207 #[no_mangle]
208 pub static mut rustGetRegion: fn(u16) -> *const i8 = |_| { unreachable!("GetRegion was called before set by TES3MP"); };
209 #[no_mangle]
210 pub static mut rustIsChangingRegion: fn(u16) -> bool = |_| { unreachable!("IsChangingRegion was called before set by TES3MP"); };
211 #[no_mangle]
212 pub static mut rustSetCell: fn(u16, *const i8) = |_, _| { unreachable!("SetCell was called before set by TES3MP"); };
213 #[no_mangle]
214 pub static mut rustSetExteriorCell: fn(u16, i16, i16) = |_, _, _| { unreachable!("SetExteriorCell was called before set by TES3MP"); };
215 #[no_mangle]
216 pub static mut rustSendCell: fn(u16) = |_| { unreachable!("SendCell was called before set by TES3MP"); };
217 #[no_mangle]
218 pub static mut rustGetDefaultClass: fn(u16) -> *const i8 = |_| { unreachable!("GetDefaultClass was called before set by TES3MP"); };
219 #[no_mangle]
220 pub static mut rustGetClassName: fn(u16) -> *const i8 = |_| { unreachable!("GetClassName was called before set by TES3MP"); };
221 #[no_mangle]
222 pub static mut rustGetClassDesc: fn(u16) -> *const i8 = |_| { unreachable!("GetClassDesc was called before set by TES3MP"); };
223 #[no_mangle]
224 pub static mut rustGetClassMajorAttribute: fn(u16, u8) -> i16 = |_, _| { unreachable!("GetClassMajorAttribute was called before set by TES3MP"); };
225 #[no_mangle]
226 pub static mut rustGetClassSpecialization: fn(u16) -> i16 = |_| { unreachable!("GetClassSpecialization was called before set by TES3MP"); };
227 #[no_mangle]
228 pub static mut rustGetClassMajorSkill: fn(u16, u8) -> i16 = |_, _| { unreachable!("GetClassMajorSkill was called before set by TES3MP"); };
229 #[no_mangle]
230 pub static mut rustGetClassMinorSkill: fn(u16, u8) -> i16 = |_, _| { unreachable!("GetClassMinorSkill was called before set by TES3MP"); };
231 #[no_mangle]
232 pub static mut rustIsClassDefault: fn(u16) -> i16 = |_| { unreachable!("IsClassDefault was called before set by TES3MP"); };
233 #[no_mangle]
234 pub static mut rustSetDefaultClass: fn(u16, *const i8) = |_, _| { unreachable!("SetDefaultClass was called before set by TES3MP"); };
235 #[no_mangle]
236 pub static mut rustSetClassName: fn(u16, *const i8) = |_, _| { unreachable!("SetClassName was called before set by TES3MP"); };
237 #[no_mangle]
238 pub static mut rustSetClassDesc: fn(u16, *const i8) = |_, _| { unreachable!("SetClassDesc was called before set by TES3MP"); };
239 #[no_mangle]
240 pub static mut rustSetClassMajorAttribute: fn(u16, u8, i16) = |_, _, _| { unreachable!("SetClassMajorAttribute was called before set by TES3MP"); };
241 #[no_mangle]
242 pub static mut rustSetClassSpecialization: fn(u16, i16) = |_, _| { unreachable!("SetClassSpecialization was called before set by TES3MP"); };
243 #[no_mangle]
244 pub static mut rustSetClassMajorSkill: fn(u16, u8, i16) = |_, _, _| { unreachable!("SetClassMajorSkill was called before set by TES3MP"); };
245 #[no_mangle]
246 pub static mut rustSetClassMinorSkill: fn(u16, u8, i16) = |_, _, _| { unreachable!("SetClassMinorSkill was called before set by TES3MP"); };
247 #[no_mangle]
248 pub static mut rustSendClass: fn(u16) = |_| { unreachable!("SendClass was called before set by TES3MP"); };
249 #[no_mangle]
250 pub static mut rustSendMessage: fn(u16, *const i8, bool, bool) = |_, _, _, _| { unreachable!("SendMessage was called before set by TES3MP"); };
251 #[no_mangle]
252 pub static mut rustCleanChatForPid: fn() = || { unreachable!("CleanChatForPid was called before set by TES3MP"); };
253 #[no_mangle]
254 pub static mut rustCleanChat: fn(u16) = |_| { unreachable!("CleanChat was called before set by TES3MP"); };
255 #[no_mangle]
256 pub static mut rustClearTopicChanges: fn(u16) = |_| { unreachable!("ClearTopicChanges was called before set by TES3MP"); };
257 #[no_mangle]
258 pub static mut rustGetTopicChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetTopicChangesSize was called before set by TES3MP"); };
259 #[no_mangle]
260 pub static mut rustAddTopic: fn(u16, *const i8) = |_, _| { unreachable!("AddTopic was called before set by TES3MP"); };
261 #[no_mangle]
262 pub static mut rustGetTopicId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetTopicId was called before set by TES3MP"); };
263 #[no_mangle]
264 pub static mut rustSendTopicChanges: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendTopicChanges was called before set by TES3MP"); };
265 #[no_mangle]
266 pub static mut rustPlayAnimation: fn(u16, *const i8, i16, i16, bool) = |_, _, _, _, _| { unreachable!("PlayAnimation was called before set by TES3MP"); };
267 #[no_mangle]
268 pub static mut rustPlaySpeech: fn(u16, *const i8) = |_, _| { unreachable!("PlaySpeech was called before set by TES3MP"); };
269 #[no_mangle]
270 pub static mut rustInitializeTopicChanges: fn(u16) = |_| { unreachable!("InitializeTopicChanges was called before set by TES3MP"); };
271 #[no_mangle]
272 pub static mut rustClearFactionChanges: fn(u16) = |_| { unreachable!("ClearFactionChanges was called before set by TES3MP"); };
273 #[no_mangle]
274 pub static mut rustGetFactionChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetFactionChangesSize was called before set by TES3MP"); };
275 #[no_mangle]
276 pub static mut rustGetFactionChangesAction: fn(u16) -> u8 = |_| { unreachable!("GetFactionChangesAction was called before set by TES3MP"); };
277 #[no_mangle]
278 pub static mut rustGetFactionId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetFactionId was called before set by TES3MP"); };
279 #[no_mangle]
280 pub static mut rustGetFactionRank: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetFactionRank was called before set by TES3MP"); };
281 #[no_mangle]
282 pub static mut rustGetFactionExpulsionState: fn(u16, u16) -> bool = |_, _| { unreachable!("GetFactionExpulsionState was called before set by TES3MP"); };
283 #[no_mangle]
284 pub static mut rustGetFactionReputation: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetFactionReputation was called before set by TES3MP"); };
285 #[no_mangle]
286 pub static mut rustSetFactionChangesAction: fn(u16, u8) = |_, _| { unreachable!("SetFactionChangesAction was called before set by TES3MP"); };
287 #[no_mangle]
288 pub static mut rustSetFactionId: fn(*const i8) = |_| { unreachable!("SetFactionId was called before set by TES3MP"); };
289 #[no_mangle]
290 pub static mut rustSetFactionRank: fn(u16) = |_| { unreachable!("SetFactionRank was called before set by TES3MP"); };
291 #[no_mangle]
292 pub static mut rustSetFactionExpulsionState: fn(bool) = |_| { unreachable!("SetFactionExpulsionState was called before set by TES3MP"); };
293 #[no_mangle]
294 pub static mut rustSetFactionReputation: fn(i16) = |_| { unreachable!("SetFactionReputation was called before set by TES3MP"); };
295 #[no_mangle]
296 pub static mut rustAddFaction: fn(u16) = |_| { unreachable!("AddFaction was called before set by TES3MP"); };
297 #[no_mangle]
298 pub static mut rustSendFactionChanges: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendFactionChanges was called before set by TES3MP"); };
299 #[no_mangle]
300 pub static mut rustInitializeFactionChanges: fn(u16) = |_| { unreachable!("InitializeFactionChanges was called before set by TES3MP"); };
301 #[no_mangle]
302 pub static mut rustCustomMessageBox: fn(u16, i16, *const i8, *const i8) = |_, _, _, _| { unreachable!("CustomMessageBox was called before set by TES3MP"); };
303 #[no_mangle]
304 pub static mut rustInputDialog: fn(u16, i16, *const i8, *const i8) = |_, _, _, _| { unreachable!("InputDialog was called before set by TES3MP"); };
305 #[no_mangle]
306 pub static mut rustPasswordDialog: fn(u16, i16, *const i8, *const i8) = |_, _, _, _| { unreachable!("PasswordDialog was called before set by TES3MP"); };
307 #[no_mangle]
308 pub static mut rustListBox: fn(u16, i16, *const i8, *const i8) = |_, _, _, _| { unreachable!("ListBox was called before set by TES3MP"); };
309 #[no_mangle]
310 pub static mut rustClearQuickKeyChanges: fn(u16) = |_| { unreachable!("ClearQuickKeyChanges was called before set by TES3MP"); };
311 #[no_mangle]
312 pub static mut rustGetQuickKeyChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetQuickKeyChangesSize was called before set by TES3MP"); };
313 #[no_mangle]
314 pub static mut rustGetQuickKeySlot: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetQuickKeySlot was called before set by TES3MP"); };
315 #[no_mangle]
316 pub static mut rustGetQuickKeyType: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetQuickKeyType was called before set by TES3MP"); };
317 #[no_mangle]
318 pub static mut rustGetQuickKeyItemId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetQuickKeyItemId was called before set by TES3MP"); };
319 #[no_mangle]
320 pub static mut rustAddQuickKey: fn(u16, u16, i16, *const i8) = |_, _, _, _| { unreachable!("AddQuickKey was called before set by TES3MP"); };
321 #[no_mangle]
322 pub static mut rustSendQuickKeyChanges: fn(u16) = |_| { unreachable!("SendQuickKeyChanges was called before set by TES3MP"); };
323 #[no_mangle]
324 pub static mut rustSetMapVisibility: fn(u16, u16, u16) = |_, _, _| { unreachable!("SetMapVisibility was called before set by TES3MP"); };
325 #[no_mangle]
326 pub static mut rustSetMapVisibilityAll: fn(u16, u16) = |_, _| { unreachable!("SetMapVisibilityAll was called before set by TES3MP"); };
327 #[no_mangle]
328 pub static mut rustInitializeQuickKeyChanges: fn(u16) = |_| { unreachable!("InitializeQuickKeyChanges was called before set by TES3MP"); };
329 #[no_mangle]
330 pub static mut rustClearInventoryChanges: fn(u16) = |_| { unreachable!("ClearInventoryChanges was called before set by TES3MP"); };
331 #[no_mangle]
332 pub static mut rustGetEquipmentSize: fn() -> i16 = || { unreachable!("GetEquipmentSize was called before set by TES3MP"); };
333 #[no_mangle]
334 pub static mut rustGetInventoryChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetInventoryChangesSize was called before set by TES3MP"); };
335 #[no_mangle]
336 pub static mut rustGetInventoryChangesAction: fn(u16) -> u16 = |_| { unreachable!("GetInventoryChangesAction was called before set by TES3MP"); };
337 #[no_mangle]
338 pub static mut rustSetInventoryChangesAction: fn(u16, u8) = |_, _| { unreachable!("SetInventoryChangesAction was called before set by TES3MP"); };
339 #[no_mangle]
340 pub static mut rustEquipItem: fn(u16, u16, *const i8, u16, i16, f64) = |_, _, _, _, _, _| { unreachable!("EquipItem was called before set by TES3MP"); };
341 #[no_mangle]
342 pub static mut rustUnequipItem: fn(u16, u16) = |_, _| { unreachable!("UnequipItem was called before set by TES3MP"); };
343 #[no_mangle]
344 pub static mut rustAddItemChange: fn(u16, *const i8, u16, i16, f64, *const i8) = |_, _, _, _, _, _| { unreachable!("AddItemChange was called before set by TES3MP"); };
345 #[no_mangle]
346 pub static mut rustHasItemEquipped: fn(u16, *const i8) -> bool = |_, _| { unreachable!("HasItemEquipped was called before set by TES3MP"); };
347 #[no_mangle]
348 pub static mut rustGetEquipmentItemRefId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetEquipmentItemRefId was called before set by TES3MP"); };
349 #[no_mangle]
350 pub static mut rustGetEquipmentItemCount: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetEquipmentItemCount was called before set by TES3MP"); };
351 #[no_mangle]
352 pub static mut rustGetEquipmentItemCharge: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetEquipmentItemCharge was called before set by TES3MP"); };
353 #[no_mangle]
354 pub static mut rustGetEquipmentItemEnchantmentCharge: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetEquipmentItemEnchantmentCharge was called before set by TES3MP"); };
355 #[no_mangle]
356 pub static mut rustGetInventoryItemRefId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetInventoryItemRefId was called before set by TES3MP"); };
357 #[no_mangle]
358 pub static mut rustGetInventoryItemCount: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetInventoryItemCount was called before set by TES3MP"); };
359 #[no_mangle]
360 pub static mut rustGetInventoryItemCharge: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetInventoryItemCharge was called before set by TES3MP"); };
361 #[no_mangle]
362 pub static mut rustGetInventoryItemEnchantmentCharge: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetInventoryItemEnchantmentCharge was called before set by TES3MP"); };
363 #[no_mangle]
364 pub static mut rustGetInventoryItemSoul: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetInventoryItemSoul was called before set by TES3MP"); };
365 #[no_mangle]
366 pub static mut rustGetUsedItemRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetUsedItemRefId was called before set by TES3MP"); };
367 #[no_mangle]
368 pub static mut rustGetUsedItemCount: fn(u16) -> i16 = |_| { unreachable!("GetUsedItemCount was called before set by TES3MP"); };
369 #[no_mangle]
370 pub static mut rustGetUsedItemCharge: fn(u16) -> i16 = |_| { unreachable!("GetUsedItemCharge was called before set by TES3MP"); };
371 #[no_mangle]
372 pub static mut rustGetUsedItemEnchantmentCharge: fn(u16) -> f64 = |_| { unreachable!("GetUsedItemEnchantmentCharge was called before set by TES3MP"); };
373 #[no_mangle]
374 pub static mut rustGetUsedItemSoul: fn(u16) -> *const i8 = |_| { unreachable!("GetUsedItemSoul was called before set by TES3MP"); };
375 #[no_mangle]
376 pub static mut rustSendEquipment: fn(u16) = |_| { unreachable!("SendEquipment was called before set by TES3MP"); };
377 #[no_mangle]
378 pub static mut rustSendInventoryChanges: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendInventoryChanges was called before set by TES3MP"); };
379 #[no_mangle]
380 pub static mut rustSendItemUse: fn(u16) = |_| { unreachable!("SendItemUse was called before set by TES3MP"); };
381 #[no_mangle]
382 pub static mut rustInitializeInventoryChanges: fn(u16) = |_| { unreachable!("InitializeInventoryChanges was called before set by TES3MP"); };
383 #[no_mangle]
384 pub static mut rustAddItem: fn(u16, *const i8, u16, i16, f64, *const i8) = |_, _, _, _, _, _| { unreachable!("AddItem was called before set by TES3MP"); };
385 #[no_mangle]
386 pub static mut rustGetMiscellaneousChangeType: fn(u16) -> u8 = |_| { unreachable!("GetMiscellaneousChangeType was called before set by TES3MP"); };
387 #[no_mangle]
388 pub static mut rustGetMarkCell: fn(u16) -> *const i8 = |_| { unreachable!("GetMarkCell was called before set by TES3MP"); };
389 #[no_mangle]
390 pub static mut rustGetMarkPosX: fn(u16) -> f64 = |_| { unreachable!("GetMarkPosX was called before set by TES3MP"); };
391 #[no_mangle]
392 pub static mut rustGetMarkPosY: fn(u16) -> f64 = |_| { unreachable!("GetMarkPosY was called before set by TES3MP"); };
393 #[no_mangle]
394 pub static mut rustGetMarkPosZ: fn(u16) -> f64 = |_| { unreachable!("GetMarkPosZ was called before set by TES3MP"); };
395 #[no_mangle]
396 pub static mut rustGetMarkRotX: fn(u16) -> f64 = |_| { unreachable!("GetMarkRotX was called before set by TES3MP"); };
397 #[no_mangle]
398 pub static mut rustGetMarkRotZ: fn(u16) -> f64 = |_| { unreachable!("GetMarkRotZ was called before set by TES3MP"); };
399 #[no_mangle]
400 pub static mut rustGetSelectedSpellId: fn(u16) -> *const i8 = |_| { unreachable!("GetSelectedSpellId was called before set by TES3MP"); };
401 #[no_mangle]
402 pub static mut rustDoesPlayerHavePlayerKiller: fn(u16) -> bool = |_| { unreachable!("DoesPlayerHavePlayerKiller was called before set by TES3MP"); };
403 #[no_mangle]
404 pub static mut rustGetPlayerKillerPid: fn(u16) -> i16 = |_| { unreachable!("GetPlayerKillerPid was called before set by TES3MP"); };
405 #[no_mangle]
406 pub static mut rustGetPlayerKillerRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetPlayerKillerRefId was called before set by TES3MP"); };
407 #[no_mangle]
408 pub static mut rustGetPlayerKillerRefNum: fn(u16) -> u16 = |_| { unreachable!("GetPlayerKillerRefNum was called before set by TES3MP"); };
409 #[no_mangle]
410 pub static mut rustGetPlayerKillerMpNum: fn(u16) -> u16 = |_| { unreachable!("GetPlayerKillerMpNum was called before set by TES3MP"); };
411 #[no_mangle]
412 pub static mut rustGetPlayerKillerName: fn(u16) -> *const i8 = |_| { unreachable!("GetPlayerKillerName was called before set by TES3MP"); };
413 #[no_mangle]
414 pub static mut rustGetDrawState: fn(u16) -> u16 = |_| { unreachable!("GetDrawState was called before set by TES3MP"); };
415 #[no_mangle]
416 pub static mut rustGetSneakState: fn(u16) -> bool = |_| { unreachable!("GetSneakState was called before set by TES3MP"); };
417 #[no_mangle]
418 pub static mut rustSetMarkCell: fn(u16, *const i8) = |_, _| { unreachable!("SetMarkCell was called before set by TES3MP"); };
419 #[no_mangle]
420 pub static mut rustSetMarkPos: fn(u16, f64, f64, f64) = |_, _, _, _| { unreachable!("SetMarkPos was called before set by TES3MP"); };
421 #[no_mangle]
422 pub static mut rustSetMarkRot: fn(u16, f64, f64) = |_, _, _| { unreachable!("SetMarkRot was called before set by TES3MP"); };
423 #[no_mangle]
424 pub static mut rustSetSelectedSpellId: fn(u16, *const i8) = |_, _| { unreachable!("SetSelectedSpellId was called before set by TES3MP"); };
425 #[no_mangle]
426 pub static mut rustSendMarkLocation: fn(u16) = |_| { unreachable!("SendMarkLocation was called before set by TES3MP"); };
427 #[no_mangle]
428 pub static mut rustSendSelectedSpell: fn(u16) = |_| { unreachable!("SendSelectedSpell was called before set by TES3MP"); };
429 #[no_mangle]
430 pub static mut rustJail: fn(u16, i16, bool, bool, *const i8, *const i8) = |_, _, _, _, _, _| { unreachable!("Jail was called before set by TES3MP"); };
431 #[no_mangle]
432 pub static mut rustResurrect: fn(u16, u16) = |_, _| { unreachable!("Resurrect was called before set by TES3MP"); };
433 #[no_mangle]
434 pub static mut rustGetDeathReason: fn(u16) -> *const i8 = |_| { unreachable!("GetDeathReason was called before set by TES3MP"); };
435 #[no_mangle]
436 pub static mut rustGetPlayerKillerRefNumIndex: fn(u16) -> u16 = |_| { unreachable!("GetPlayerKillerRefNumIndex was called before set by TES3MP"); };
437 #[no_mangle]
438 pub static mut rustGenerateRandomString: fn(u16) -> *const i8 = |_| { unreachable!("GenerateRandomString was called before set by TES3MP"); };
439 #[no_mangle]
440 pub static mut rustGetSHA256Hash: fn(*const i8) -> *const i8 = |_| { unreachable!("GetSHA256Hash was called before set by TES3MP"); };
441 #[no_mangle]
442 pub static mut rustGetLastPlayerId: fn() -> u16 = || { unreachable!("GetLastPlayerId was called before set by TES3MP"); };
443 #[no_mangle]
444 pub static mut rustGetCurrentMpNum: fn() -> i16 = || { unreachable!("GetCurrentMpNum was called before set by TES3MP"); };
445 #[no_mangle]
446 pub static mut rustSetCurrentMpNum: fn(i16) = |_| { unreachable!("SetCurrentMpNum was called before set by TES3MP"); };
447 #[no_mangle]
448 pub static mut rustGetPosX: fn(u16) -> f64 = |_| { unreachable!("GetPosX was called before set by TES3MP"); };
449 #[no_mangle]
450 pub static mut rustGetPosY: fn(u16) -> f64 = |_| { unreachable!("GetPosY was called before set by TES3MP"); };
451 #[no_mangle]
452 pub static mut rustGetPosZ: fn(u16) -> f64 = |_| { unreachable!("GetPosZ was called before set by TES3MP"); };
453 #[no_mangle]
454 pub static mut rustGetPreviousCellPosX: fn(u16) -> f64 = |_| { unreachable!("GetPreviousCellPosX was called before set by TES3MP"); };
455 #[no_mangle]
456 pub static mut rustGetPreviousCellPosY: fn(u16) -> f64 = |_| { unreachable!("GetPreviousCellPosY was called before set by TES3MP"); };
457 #[no_mangle]
458 pub static mut rustGetPreviousCellPosZ: fn(u16) -> f64 = |_| { unreachable!("GetPreviousCellPosZ was called before set by TES3MP"); };
459 #[no_mangle]
460 pub static mut rustGetRotX: fn(u16) -> f64 = |_| { unreachable!("GetRotX was called before set by TES3MP"); };
461 #[no_mangle]
462 pub static mut rustGetRotZ: fn(u16) -> f64 = |_| { unreachable!("GetRotZ was called before set by TES3MP"); };
463 #[no_mangle]
464 pub static mut rustSetPos: fn(u16, f64, f64, f64) = |_, _, _, _| { unreachable!("SetPos was called before set by TES3MP"); };
465 #[no_mangle]
466 pub static mut rustSetRot: fn(u16, f64, f64) = |_, _, _| { unreachable!("SetRot was called before set by TES3MP"); };
467 #[no_mangle]
468 pub static mut rustSetMomentum: fn(u16, f64, f64, f64) = |_, _, _, _| { unreachable!("SetMomentum was called before set by TES3MP"); };
469 #[no_mangle]
470 pub static mut rustSendPos: fn(u16) = |_| { unreachable!("SendPos was called before set by TES3MP"); };
471 #[no_mangle]
472 pub static mut rustSendMomentum: fn(u16) = |_| { unreachable!("SendMomentum was called before set by TES3MP"); };
473 #[no_mangle]
474 pub static mut rustClearJournalChanges: fn(u16) = |_| { unreachable!("ClearJournalChanges was called before set by TES3MP"); };
475 #[no_mangle]
476 pub static mut rustGetJournalChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetJournalChangesSize was called before set by TES3MP"); };
477 #[no_mangle]
478 pub static mut rustAddJournalEntry: fn(u16, *const i8, u16, *const i8) = |_, _, _, _| { unreachable!("AddJournalEntry was called before set by TES3MP"); };
479 #[no_mangle]
480 pub static mut rustAddJournalEntryWithTimestamp: fn(u16, *const i8, u16, *const i8, u16, u16, u16) = |_, _, _, _, _, _, _| { unreachable!("AddJournalEntryWithTimestamp was called before set by TES3MP"); };
481 #[no_mangle]
482 pub static mut rustAddJournalIndex: fn(u16, *const i8, u16) = |_, _, _| { unreachable!("AddJournalIndex was called before set by TES3MP"); };
483 #[no_mangle]
484 pub static mut rustSetReputation: fn(u16, i16) = |_, _| { unreachable!("SetReputation was called before set by TES3MP"); };
485 #[no_mangle]
486 pub static mut rustGetJournalItemQuest: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetJournalItemQuest was called before set by TES3MP"); };
487 #[no_mangle]
488 pub static mut rustGetJournalItemIndex: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetJournalItemIndex was called before set by TES3MP"); };
489 #[no_mangle]
490 pub static mut rustGetJournalItemType: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetJournalItemType was called before set by TES3MP"); };
491 #[no_mangle]
492 pub static mut rustGetJournalItemActorRefId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetJournalItemActorRefId was called before set by TES3MP"); };
493 #[no_mangle]
494 pub static mut rustGetReputation: fn(u16) -> i16 = |_| { unreachable!("GetReputation was called before set by TES3MP"); };
495 #[no_mangle]
496 pub static mut rustSendJournalChanges: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendJournalChanges was called before set by TES3MP"); };
497 #[no_mangle]
498 pub static mut rustSendReputation: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendReputation was called before set by TES3MP"); };
499 #[no_mangle]
500 pub static mut rustInitializeJournalChanges: fn(u16) = |_| { unreachable!("InitializeJournalChanges was called before set by TES3MP"); };
501 #[no_mangle]
502 pub static mut rustClearRecords: fn() = || { unreachable!("ClearRecords was called before set by TES3MP"); };
503 #[no_mangle]
504 pub static mut rustGetRecordType: fn() -> u16 = || { unreachable!("GetRecordType was called before set by TES3MP"); };
505 #[no_mangle]
506 pub static mut rustGetRecordCount: fn() -> u16 = || { unreachable!("GetRecordCount was called before set by TES3MP"); };
507 #[no_mangle]
508 pub static mut rustGetRecordEffectCount: fn(u16) -> u16 = |_| { unreachable!("GetRecordEffectCount was called before set by TES3MP"); };
509 #[no_mangle]
510 pub static mut rustGetRecordId: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordId was called before set by TES3MP"); };
511 #[no_mangle]
512 pub static mut rustGetRecordBaseId: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordBaseId was called before set by TES3MP"); };
513 #[no_mangle]
514 pub static mut rustGetRecordSubtype: fn(u16) -> i16 = |_| { unreachable!("GetRecordSubtype was called before set by TES3MP"); };
515 #[no_mangle]
516 pub static mut rustGetRecordName: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordName was called before set by TES3MP"); };
517 #[no_mangle]
518 pub static mut rustGetRecordModel: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordModel was called before set by TES3MP"); };
519 #[no_mangle]
520 pub static mut rustGetRecordIcon: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordIcon was called before set by TES3MP"); };
521 #[no_mangle]
522 pub static mut rustGetRecordScript: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordScript was called before set by TES3MP"); };
523 #[no_mangle]
524 pub static mut rustGetRecordEnchantmentId: fn(u16) -> *const i8 = |_| { unreachable!("GetRecordEnchantmentId was called before set by TES3MP"); };
525 #[no_mangle]
526 pub static mut rustGetRecordEnchantmentCharge: fn(u16) -> i16 = |_| { unreachable!("GetRecordEnchantmentCharge was called before set by TES3MP"); };
527 #[no_mangle]
528 pub static mut rustGetRecordAutoCalc: fn(u16) -> i16 = |_| { unreachable!("GetRecordAutoCalc was called before set by TES3MP"); };
529 #[no_mangle]
530 pub static mut rustGetRecordCharge: fn(u16) -> i16 = |_| { unreachable!("GetRecordCharge was called before set by TES3MP"); };
531 #[no_mangle]
532 pub static mut rustGetRecordCost: fn(u16) -> i16 = |_| { unreachable!("GetRecordCost was called before set by TES3MP"); };
533 #[no_mangle]
534 pub static mut rustGetRecordFlags: fn(u16) -> i16 = |_| { unreachable!("GetRecordFlags was called before set by TES3MP"); };
535 #[no_mangle]
536 pub static mut rustGetRecordValue: fn(u16) -> i16 = |_| { unreachable!("GetRecordValue was called before set by TES3MP"); };
537 #[no_mangle]
538 pub static mut rustGetRecordWeight: fn(u16) -> f64 = |_| { unreachable!("GetRecordWeight was called before set by TES3MP"); };
539 #[no_mangle]
540 pub static mut rustGetRecordEffectId: fn(u16, u16) -> u16 = |_, _| { unreachable!("GetRecordEffectId was called before set by TES3MP"); };
541 #[no_mangle]
542 pub static mut rustGetRecordEffectAttribute: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetRecordEffectAttribute was called before set by TES3MP"); };
543 #[no_mangle]
544 pub static mut rustGetRecordEffectSkill: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetRecordEffectSkill was called before set by TES3MP"); };
545 #[no_mangle]
546 pub static mut rustGetRecordEffectRangeType: fn(u16, u16) -> u16 = |_, _| { unreachable!("GetRecordEffectRangeType was called before set by TES3MP"); };
547 #[no_mangle]
548 pub static mut rustGetRecordEffectArea: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetRecordEffectArea was called before set by TES3MP"); };
549 #[no_mangle]
550 pub static mut rustGetRecordEffectDuration: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetRecordEffectDuration was called before set by TES3MP"); };
551 #[no_mangle]
552 pub static mut rustGetRecordEffectMagnitudeMax: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetRecordEffectMagnitudeMax was called before set by TES3MP"); };
553 #[no_mangle]
554 pub static mut rustGetRecordEffectMagnitudeMin: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetRecordEffectMagnitudeMin was called before set by TES3MP"); };
555 #[no_mangle]
556 pub static mut rustSetRecordType: fn(u16) = |_| { unreachable!("SetRecordType was called before set by TES3MP"); };
557 #[no_mangle]
558 pub static mut rustSetRecordId: fn(*const i8) = |_| { unreachable!("SetRecordId was called before set by TES3MP"); };
559 #[no_mangle]
560 pub static mut rustSetRecordBaseId: fn(*const i8) = |_| { unreachable!("SetRecordBaseId was called before set by TES3MP"); };
561 #[no_mangle]
562 pub static mut rustSetRecordInventoryBaseId: fn(*const i8) = |_| { unreachable!("SetRecordInventoryBaseId was called before set by TES3MP"); };
563 #[no_mangle]
564 pub static mut rustSetRecordSubtype: fn(u16) = |_| { unreachable!("SetRecordSubtype was called before set by TES3MP"); };
565 #[no_mangle]
566 pub static mut rustSetRecordName: fn(*const i8) = |_| { unreachable!("SetRecordName was called before set by TES3MP"); };
567 #[no_mangle]
568 pub static mut rustSetRecordModel: fn(*const i8) = |_| { unreachable!("SetRecordModel was called before set by TES3MP"); };
569 #[no_mangle]
570 pub static mut rustSetRecordIcon: fn(*const i8) = |_| { unreachable!("SetRecordIcon was called before set by TES3MP"); };
571 #[no_mangle]
572 pub static mut rustSetRecordScript: fn(*const i8) = |_| { unreachable!("SetRecordScript was called before set by TES3MP"); };
573 #[no_mangle]
574 pub static mut rustSetRecordEnchantmentId: fn(*const i8) = |_| { unreachable!("SetRecordEnchantmentId was called before set by TES3MP"); };
575 #[no_mangle]
576 pub static mut rustSetRecordEnchantmentCharge: fn(i16) = |_| { unreachable!("SetRecordEnchantmentCharge was called before set by TES3MP"); };
577 #[no_mangle]
578 pub static mut rustSetRecordAutoCalc: fn(i16) = |_| { unreachable!("SetRecordAutoCalc was called before set by TES3MP"); };
579 #[no_mangle]
580 pub static mut rustSetRecordCharge: fn(i16) = |_| { unreachable!("SetRecordCharge was called before set by TES3MP"); };
581 #[no_mangle]
582 pub static mut rustSetRecordCost: fn(i16) = |_| { unreachable!("SetRecordCost was called before set by TES3MP"); };
583 #[no_mangle]
584 pub static mut rustSetRecordFlags: fn(i16) = |_| { unreachable!("SetRecordFlags was called before set by TES3MP"); };
585 #[no_mangle]
586 pub static mut rustSetRecordValue: fn(i16) = |_| { unreachable!("SetRecordValue was called before set by TES3MP"); };
587 #[no_mangle]
588 pub static mut rustSetRecordWeight: fn(f64) = |_| { unreachable!("SetRecordWeight was called before set by TES3MP"); };
589 #[no_mangle]
590 pub static mut rustSetRecordQuality: fn(f64) = |_| { unreachable!("SetRecordQuality was called before set by TES3MP"); };
591 #[no_mangle]
592 pub static mut rustSetRecordUses: fn(i16) = |_| { unreachable!("SetRecordUses was called before set by TES3MP"); };
593 #[no_mangle]
594 pub static mut rustSetRecordTime: fn(i16) = |_| { unreachable!("SetRecordTime was called before set by TES3MP"); };
595 #[no_mangle]
596 pub static mut rustSetRecordRadius: fn(i16) = |_| { unreachable!("SetRecordRadius was called before set by TES3MP"); };
597 #[no_mangle]
598 pub static mut rustSetRecordColor: fn(u16, u16, u16) = |_, _, _| { unreachable!("SetRecordColor was called before set by TES3MP"); };
599 #[no_mangle]
600 pub static mut rustSetRecordArmorRating: fn(i16) = |_| { unreachable!("SetRecordArmorRating was called before set by TES3MP"); };
601 #[no_mangle]
602 pub static mut rustSetRecordHealth: fn(i16) = |_| { unreachable!("SetRecordHealth was called before set by TES3MP"); };
603 #[no_mangle]
604 pub static mut rustSetRecordDamageChop: fn(u16, u16) = |_, _| { unreachable!("SetRecordDamageChop was called before set by TES3MP"); };
605 #[no_mangle]
606 pub static mut rustSetRecordDamageSlash: fn(u16, u16) = |_, _| { unreachable!("SetRecordDamageSlash was called before set by TES3MP"); };
607 #[no_mangle]
608 pub static mut rustSetRecordDamageThrust: fn(u16, u16) = |_, _| { unreachable!("SetRecordDamageThrust was called before set by TES3MP"); };
609 #[no_mangle]
610 pub static mut rustSetRecordReach: fn(f64) = |_| { unreachable!("SetRecordReach was called before set by TES3MP"); };
611 #[no_mangle]
612 pub static mut rustSetRecordSpeed: fn(f64) = |_| { unreachable!("SetRecordSpeed was called before set by TES3MP"); };
613 #[no_mangle]
614 pub static mut rustSetRecordKeyState: fn(bool) = |_| { unreachable!("SetRecordKeyState was called before set by TES3MP"); };
615 #[no_mangle]
616 pub static mut rustSetRecordScrollState: fn(bool) = |_| { unreachable!("SetRecordScrollState was called before set by TES3MP"); };
617 #[no_mangle]
618 pub static mut rustSetRecordSkillId: fn(i16) = |_| { unreachable!("SetRecordSkillId was called before set by TES3MP"); };
619 #[no_mangle]
620 pub static mut rustSetRecordText: fn(*const i8) = |_| { unreachable!("SetRecordText was called before set by TES3MP"); };
621 #[no_mangle]
622 pub static mut rustSetRecordHair: fn(*const i8) = |_| { unreachable!("SetRecordHair was called before set by TES3MP"); };
623 #[no_mangle]
624 pub static mut rustSetRecordHead: fn(*const i8) = |_| { unreachable!("SetRecordHead was called before set by TES3MP"); };
625 #[no_mangle]
626 pub static mut rustSetRecordGender: fn(u16) = |_| { unreachable!("SetRecordGender was called before set by TES3MP"); };
627 #[no_mangle]
628 pub static mut rustSetRecordRace: fn(*const i8) = |_| { unreachable!("SetRecordRace was called before set by TES3MP"); };
629 #[no_mangle]
630 pub static mut rustSetRecordClass: fn(*const i8) = |_| { unreachable!("SetRecordClass was called before set by TES3MP"); };
631 #[no_mangle]
632 pub static mut rustSetRecordFaction: fn(*const i8) = |_| { unreachable!("SetRecordFaction was called before set by TES3MP"); };
633 #[no_mangle]
634 pub static mut rustSetRecordScale: fn(f64) = |_| { unreachable!("SetRecordScale was called before set by TES3MP"); };
635 #[no_mangle]
636 pub static mut rustSetRecordBloodType: fn(i16) = |_| { unreachable!("SetRecordBloodType was called before set by TES3MP"); };
637 #[no_mangle]
638 pub static mut rustSetRecordLevel: fn(i16) = |_| { unreachable!("SetRecordLevel was called before set by TES3MP"); };
639 #[no_mangle]
640 pub static mut rustSetRecordMagicka: fn(i16) = |_| { unreachable!("SetRecordMagicka was called before set by TES3MP"); };
641 #[no_mangle]
642 pub static mut rustSetRecordFatigue: fn(i16) = |_| { unreachable!("SetRecordFatigue was called before set by TES3MP"); };
643 #[no_mangle]
644 pub static mut rustSetRecordAIFight: fn(i16) = |_| { unreachable!("SetRecordAIFight was called before set by TES3MP"); };
645 #[no_mangle]
646 pub static mut rustSetRecordAIFlee: fn(i16) = |_| { unreachable!("SetRecordAIFlee was called before set by TES3MP"); };
647 #[no_mangle]
648 pub static mut rustSetRecordAIAlarm: fn(i16) = |_| { unreachable!("SetRecordAIAlarm was called before set by TES3MP"); };
649 #[no_mangle]
650 pub static mut rustSetRecordAIServices: fn(i16) = |_| { unreachable!("SetRecordAIServices was called before set by TES3MP"); };
651 #[no_mangle]
652 pub static mut rustSetRecordSound: fn(*const i8) = |_| { unreachable!("SetRecordSound was called before set by TES3MP"); };
653 #[no_mangle]
654 pub static mut rustSetRecordOpenSound: fn(*const i8) = |_| { unreachable!("SetRecordOpenSound was called before set by TES3MP"); };
655 #[no_mangle]
656 pub static mut rustSetRecordCloseSound: fn(*const i8) = |_| { unreachable!("SetRecordCloseSound was called before set by TES3MP"); };
657 #[no_mangle]
658 pub static mut rustSetRecordScriptText: fn(*const i8) = |_| { unreachable!("SetRecordScriptText was called before set by TES3MP"); };
659 #[no_mangle]
660 pub static mut rustSetRecordIdByIndex: fn(u16, *const i8) = |_, _| { unreachable!("SetRecordIdByIndex was called before set by TES3MP"); };
661 #[no_mangle]
662 pub static mut rustSetRecordEnchantmentIdByIndex: fn(u16, *const i8) = |_, _| { unreachable!("SetRecordEnchantmentIdByIndex was called before set by TES3MP"); };
663 #[no_mangle]
664 pub static mut rustSetRecordEffectId: fn(u16) = |_| { unreachable!("SetRecordEffectId was called before set by TES3MP"); };
665 #[no_mangle]
666 pub static mut rustSetRecordEffectAttribute: fn(i16) = |_| { unreachable!("SetRecordEffectAttribute was called before set by TES3MP"); };
667 #[no_mangle]
668 pub static mut rustSetRecordEffectSkill: fn(i16) = |_| { unreachable!("SetRecordEffectSkill was called before set by TES3MP"); };
669 #[no_mangle]
670 pub static mut rustSetRecordEffectRangeType: fn(u16) = |_| { unreachable!("SetRecordEffectRangeType was called before set by TES3MP"); };
671 #[no_mangle]
672 pub static mut rustSetRecordEffectArea: fn(i16) = |_| { unreachable!("SetRecordEffectArea was called before set by TES3MP"); };
673 #[no_mangle]
674 pub static mut rustSetRecordEffectDuration: fn(i16) = |_| { unreachable!("SetRecordEffectDuration was called before set by TES3MP"); };
675 #[no_mangle]
676 pub static mut rustSetRecordEffectMagnitudeMax: fn(i16) = |_| { unreachable!("SetRecordEffectMagnitudeMax was called before set by TES3MP"); };
677 #[no_mangle]
678 pub static mut rustSetRecordEffectMagnitudeMin: fn(i16) = |_| { unreachable!("SetRecordEffectMagnitudeMin was called before set by TES3MP"); };
679 #[no_mangle]
680 pub static mut rustSetRecordBodyPartType: fn(u16) = |_| { unreachable!("SetRecordBodyPartType was called before set by TES3MP"); };
681 #[no_mangle]
682 pub static mut rustSetRecordBodyPartIdForMale: fn(*const i8) = |_| { unreachable!("SetRecordBodyPartIdForMale was called before set by TES3MP"); };
683 #[no_mangle]
684 pub static mut rustSetRecordBodyPartIdForFemale: fn(*const i8) = |_| { unreachable!("SetRecordBodyPartIdForFemale was called before set by TES3MP"); };
685 #[no_mangle]
686 pub static mut rustSetRecordInventoryItemId: fn(*const i8) = |_| { unreachable!("SetRecordInventoryItemId was called before set by TES3MP"); };
687 #[no_mangle]
688 pub static mut rustSetRecordInventoryItemCount: fn(u16) = |_| { unreachable!("SetRecordInventoryItemCount was called before set by TES3MP"); };
689 #[no_mangle]
690 pub static mut rustAddRecord: fn() = || { unreachable!("AddRecord was called before set by TES3MP"); };
691 #[no_mangle]
692 pub static mut rustAddRecordEffect: fn() = || { unreachable!("AddRecordEffect was called before set by TES3MP"); };
693 #[no_mangle]
694 pub static mut rustAddRecordBodyPart: fn() = || { unreachable!("AddRecordBodyPart was called before set by TES3MP"); };
695 #[no_mangle]
696 pub static mut rustAddRecordInventoryItem: fn() = || { unreachable!("AddRecordInventoryItem was called before set by TES3MP"); };
697 #[no_mangle]
698 pub static mut rustSendRecordDynamic: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendRecordDynamic was called before set by TES3MP"); };
699 #[no_mangle]
700 pub static mut rustGetScale: fn(u16) -> f64 = |_| { unreachable!("GetScale was called before set by TES3MP"); };
701 #[no_mangle]
702 pub static mut rustIsWerewolf: fn(u16) -> bool = |_| { unreachable!("IsWerewolf was called before set by TES3MP"); };
703 #[no_mangle]
704 pub static mut rustGetCreatureRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetCreatureRefId was called before set by TES3MP"); };
705 #[no_mangle]
706 pub static mut rustGetCreatureNameDisplayState: fn(u16) -> bool = |_| { unreachable!("GetCreatureNameDisplayState was called before set by TES3MP"); };
707 #[no_mangle]
708 pub static mut rustSetScale: fn(u16, f64) = |_, _| { unreachable!("SetScale was called before set by TES3MP"); };
709 #[no_mangle]
710 pub static mut rustSetWerewolfState: fn(u16, bool) = |_, _| { unreachable!("SetWerewolfState was called before set by TES3MP"); };
711 #[no_mangle]
712 pub static mut rustSetCreatureRefId: fn(u16, *const i8) = |_, _| { unreachable!("SetCreatureRefId was called before set by TES3MP"); };
713 #[no_mangle]
714 pub static mut rustSetCreatureNameDisplayState: fn(u16, bool) = |_, _| { unreachable!("SetCreatureNameDisplayState was called before set by TES3MP"); };
715 #[no_mangle]
716 pub static mut rustSendShapeshift: fn(u16) = |_| { unreachable!("SendShapeshift was called before set by TES3MP"); };
717 #[no_mangle]
718 pub static mut rustLogMessage: fn(u16, *const i8) = |_, _| { unreachable!("LogMessage was called before set by TES3MP"); };
719 #[no_mangle]
720 pub static mut rustLogAppend: fn(u16, *const i8) = |_, _| { unreachable!("LogAppend was called before set by TES3MP"); };
721 #[no_mangle]
722 pub static mut rustStopServer: fn(i16) = |_| { unreachable!("StopServer was called before set by TES3MP"); };
723 #[no_mangle]
724 pub static mut rustKick: fn(u16) = |_| { unreachable!("Kick was called before set by TES3MP"); };
725 #[no_mangle]
726 pub static mut rustBanAddress: fn(*const i8) = |_| { unreachable!("BanAddress was called before set by TES3MP"); };
727 #[no_mangle]
728 pub static mut rustUnbanAddress: fn(*const i8) = |_| { unreachable!("UnbanAddress was called before set by TES3MP"); };
729 #[no_mangle]
730 pub static mut rustDoesFilePathExist: fn(*const i8) -> bool = |_| { unreachable!("DoesFilePathExist was called before set by TES3MP"); };
731 #[no_mangle]
732 pub static mut rustGetCaseInsensitiveFilename: fn(*const i8, *const i8) -> *const i8 = |_, _| { unreachable!("GetCaseInsensitiveFilename was called before set by TES3MP"); };
733 #[no_mangle]
734 pub static mut rustGetDataPath: fn() -> *const i8 = || { unreachable!("GetDataPath was called before set by TES3MP"); };
735 #[no_mangle]
736 pub static mut rustGetMillisecondsSinceServerStart: fn() -> u16 = || { unreachable!("GetMillisecondsSinceServerStart was called before set by TES3MP"); };
737 #[no_mangle]
738 pub static mut rustGetOperatingSystemType: fn() -> *const i8 = || { unreachable!("GetOperatingSystemType was called before set by TES3MP"); };
739 #[no_mangle]
740 pub static mut rustGetArchitectureType: fn() -> *const i8 = || { unreachable!("GetArchitectureType was called before set by TES3MP"); };
741 #[no_mangle]
742 pub static mut rustGetServerVersion: fn() -> *const i8 = || { unreachable!("GetServerVersion was called before set by TES3MP"); };
743 #[no_mangle]
744 pub static mut rustGetProtocolVersion: fn() -> *const i8 = || { unreachable!("GetProtocolVersion was called before set by TES3MP"); };
745 #[no_mangle]
746 pub static mut rustGetAvgPing: fn(u16) -> i16 = |_| { unreachable!("GetAvgPing was called before set by TES3MP"); };
747 #[no_mangle]
748 pub static mut rustGetIP: fn(u16) -> *const i8 = |_| { unreachable!("GetIP was called before set by TES3MP"); };
749 #[no_mangle]
750 pub static mut rustGetMaxPlayers: fn() -> u16 = || { unreachable!("GetMaxPlayers was called before set by TES3MP"); };
751 #[no_mangle]
752 pub static mut rustGetPort: fn() -> u16 = || { unreachable!("GetPort was called before set by TES3MP"); };
753 #[no_mangle]
754 pub static mut rustHasPassword: fn() -> bool = || { unreachable!("HasPassword was called before set by TES3MP"); };
755 #[no_mangle]
756 pub static mut rustGetDataFileEnforcementState: fn() -> bool = || { unreachable!("GetDataFileEnforcementState was called before set by TES3MP"); };
757 #[no_mangle]
758 pub static mut rustGetScriptErrorIgnoringState: fn() -> bool = || { unreachable!("GetScriptErrorIgnoringState was called before set by TES3MP"); };
759 #[no_mangle]
760 pub static mut rustSetGameMode: fn(*const i8) = |_| { unreachable!("SetGameMode was called before set by TES3MP"); };
761 #[no_mangle]
762 pub static mut rustSetHostname: fn(*const i8) = |_| { unreachable!("SetHostname was called before set by TES3MP"); };
763 #[no_mangle]
764 pub static mut rustSetServerPassword: fn(*const i8) = |_| { unreachable!("SetServerPassword was called before set by TES3MP"); };
765 #[no_mangle]
766 pub static mut rustSetDataFileEnforcementState: fn(bool) = |_| { unreachable!("SetDataFileEnforcementState was called before set by TES3MP"); };
767 #[no_mangle]
768 pub static mut rustSetScriptErrorIgnoringState: fn(bool) = |_| { unreachable!("SetScriptErrorIgnoringState was called before set by TES3MP"); };
769 #[no_mangle]
770 pub static mut rustSetRuleString: fn(*const i8, *const i8) = |_, _| { unreachable!("SetRuleString was called before set by TES3MP"); };
771 #[no_mangle]
772 pub static mut rustSetRuleValue: fn(*const i8, f64) = |_, _| { unreachable!("SetRuleValue was called before set by TES3MP"); };
773 #[no_mangle]
774 pub static mut rustAddDataFileRequirement: fn(*const i8, *const i8) = |_, _| { unreachable!("AddDataFileRequirement was called before set by TES3MP"); };
775 #[no_mangle]
776 pub static mut rustDoesFileExist: fn(*const i8) -> bool = |_| { unreachable!("DoesFileExist was called before set by TES3MP"); };
777 #[no_mangle]
778 pub static mut rustGetModDir: fn() -> *const i8 = || { unreachable!("GetModDir was called before set by TES3MP"); };
779 #[no_mangle]
780 pub static mut rustGetPluginEnforcementState: fn() -> bool = || { unreachable!("GetPluginEnforcementState was called before set by TES3MP"); };
781 #[no_mangle]
782 pub static mut rustSetPluginEnforcementState: fn(bool) = |_| { unreachable!("SetPluginEnforcementState was called before set by TES3MP"); };
783 #[no_mangle]
784 pub static mut rustAddPluginHash: fn(*const i8, *const i8) = |_, _| { unreachable!("AddPluginHash was called before set by TES3MP"); };
785 #[no_mangle]
786 pub static mut rustSetDifficulty: fn(u16, i16) = |_, _| { unreachable!("SetDifficulty was called before set by TES3MP"); };
787 #[no_mangle]
788 pub static mut rustSetEnforcedLogLevel: fn(u16, i16) = |_, _| { unreachable!("SetEnforcedLogLevel was called before set by TES3MP"); };
789 #[no_mangle]
790 pub static mut rustSetPhysicsFramerate: fn(u16, f64) = |_, _| { unreachable!("SetPhysicsFramerate was called before set by TES3MP"); };
791 #[no_mangle]
792 pub static mut rustSetConsoleAllowed: fn(u16, bool) = |_, _| { unreachable!("SetConsoleAllowed was called before set by TES3MP"); };
793 #[no_mangle]
794 pub static mut rustSetBedRestAllowed: fn(u16, bool) = |_, _| { unreachable!("SetBedRestAllowed was called before set by TES3MP"); };
795 #[no_mangle]
796 pub static mut rustSetWildernessRestAllowed: fn(u16, bool) = |_, _| { unreachable!("SetWildernessRestAllowed was called before set by TES3MP"); };
797 #[no_mangle]
798 pub static mut rustSetWaitAllowed: fn(u16, bool) = |_, _| { unreachable!("SetWaitAllowed was called before set by TES3MP"); };
799 #[no_mangle]
800 pub static mut rustSendSettings: fn(u16) = |_| { unreachable!("SendSettings was called before set by TES3MP"); };
801 #[no_mangle]
802 pub static mut rustClearSpellbookChanges: fn(u16) = |_| { unreachable!("ClearSpellbookChanges was called before set by TES3MP"); };
803 #[no_mangle]
804 pub static mut rustGetSpellbookChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetSpellbookChangesSize was called before set by TES3MP"); };
805 #[no_mangle]
806 pub static mut rustGetSpellbookChangesAction: fn(u16) -> u16 = |_| { unreachable!("GetSpellbookChangesAction was called before set by TES3MP"); };
807 #[no_mangle]
808 pub static mut rustSetSpellbookChangesAction: fn(u16, u8) = |_, _| { unreachable!("SetSpellbookChangesAction was called before set by TES3MP"); };
809 #[no_mangle]
810 pub static mut rustAddSpell: fn(u16, *const i8) = |_, _| { unreachable!("AddSpell was called before set by TES3MP"); };
811 #[no_mangle]
812 pub static mut rustGetSpellId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetSpellId was called before set by TES3MP"); };
813 #[no_mangle]
814 pub static mut rustSendSpellbookChanges: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendSpellbookChanges was called before set by TES3MP"); };
815 #[no_mangle]
816 pub static mut rustInitializeSpellbookChanges: fn(u16) = |_| { unreachable!("InitializeSpellbookChanges was called before set by TES3MP"); };
817 #[no_mangle]
818 pub static mut rustGetAttributeCount: fn() -> i16 = || { unreachable!("GetAttributeCount was called before set by TES3MP"); };
819 #[no_mangle]
820 pub static mut rustGetSkillCount: fn() -> i16 = || { unreachable!("GetSkillCount was called before set by TES3MP"); };
821 #[no_mangle]
822 pub static mut rustGetAttributeId: fn(*const i8) -> i16 = |_| { unreachable!("GetAttributeId was called before set by TES3MP"); };
823 #[no_mangle]
824 pub static mut rustGetSkillId: fn(*const i8) -> i16 = |_| { unreachable!("GetSkillId was called before set by TES3MP"); };
825 #[no_mangle]
826 pub static mut rustGetAttributeName: fn(u16) -> *const i8 = |_| { unreachable!("GetAttributeName was called before set by TES3MP"); };
827 #[no_mangle]
828 pub static mut rustGetSkillName: fn(u16) -> *const i8 = |_| { unreachable!("GetSkillName was called before set by TES3MP"); };
829 #[no_mangle]
830 pub static mut rustGetName: fn(u16) -> *const i8 = |_| { unreachable!("GetName was called before set by TES3MP"); };
831 #[no_mangle]
832 pub static mut rustGetRace: fn(u16) -> *const i8 = |_| { unreachable!("GetRace was called before set by TES3MP"); };
833 #[no_mangle]
834 pub static mut rustGetHead: fn(u16) -> *const i8 = |_| { unreachable!("GetHead was called before set by TES3MP"); };
835 #[no_mangle]
836 pub static mut rustGetHair: fn(u16) -> *const i8 = |_| { unreachable!("GetHair was called before set by TES3MP"); };
837 #[no_mangle]
838 pub static mut rustGetIsMale: fn(u16) -> i16 = |_| { unreachable!("GetIsMale was called before set by TES3MP"); };
839 #[no_mangle]
840 pub static mut rustGetBirthsign: fn(u16) -> *const i8 = |_| { unreachable!("GetBirthsign was called before set by TES3MP"); };
841 #[no_mangle]
842 pub static mut rustGetLevel: fn(u16) -> i16 = |_| { unreachable!("GetLevel was called before set by TES3MP"); };
843 #[no_mangle]
844 pub static mut rustGetLevelProgress: fn(u16) -> i16 = |_| { unreachable!("GetLevelProgress was called before set by TES3MP"); };
845 #[no_mangle]
846 pub static mut rustGetHealthBase: fn(u16) -> f64 = |_| { unreachable!("GetHealthBase was called before set by TES3MP"); };
847 #[no_mangle]
848 pub static mut rustGetHealthCurrent: fn(u16) -> f64 = |_| { unreachable!("GetHealthCurrent was called before set by TES3MP"); };
849 #[no_mangle]
850 pub static mut rustGetMagickaBase: fn(u16) -> f64 = |_| { unreachable!("GetMagickaBase was called before set by TES3MP"); };
851 #[no_mangle]
852 pub static mut rustGetMagickaCurrent: fn(u16) -> f64 = |_| { unreachable!("GetMagickaCurrent was called before set by TES3MP"); };
853 #[no_mangle]
854 pub static mut rustGetFatigueBase: fn(u16) -> f64 = |_| { unreachable!("GetFatigueBase was called before set by TES3MP"); };
855 #[no_mangle]
856 pub static mut rustGetFatigueCurrent: fn(u16) -> f64 = |_| { unreachable!("GetFatigueCurrent was called before set by TES3MP"); };
857 #[no_mangle]
858 pub static mut rustGetAttributeBase: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetAttributeBase was called before set by TES3MP"); };
859 #[no_mangle]
860 pub static mut rustGetAttributeModifier: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetAttributeModifier was called before set by TES3MP"); };
861 #[no_mangle]
862 pub static mut rustGetAttributeDamage: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetAttributeDamage was called before set by TES3MP"); };
863 #[no_mangle]
864 pub static mut rustGetSkillBase: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetSkillBase was called before set by TES3MP"); };
865 #[no_mangle]
866 pub static mut rustGetSkillModifier: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetSkillModifier was called before set by TES3MP"); };
867 #[no_mangle]
868 pub static mut rustGetSkillDamage: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetSkillDamage was called before set by TES3MP"); };
869 #[no_mangle]
870 pub static mut rustGetSkillProgress: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetSkillProgress was called before set by TES3MP"); };
871 #[no_mangle]
872 pub static mut rustGetSkillIncrease: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetSkillIncrease was called before set by TES3MP"); };
873 #[no_mangle]
874 pub static mut rustGetBounty: fn(u16) -> i16 = |_| { unreachable!("GetBounty was called before set by TES3MP"); };
875 #[no_mangle]
876 pub static mut rustSetName: fn(u16, *const i8) = |_, _| { unreachable!("SetName was called before set by TES3MP"); };
877 #[no_mangle]
878 pub static mut rustSetRace: fn(u16, *const i8) = |_, _| { unreachable!("SetRace was called before set by TES3MP"); };
879 #[no_mangle]
880 pub static mut rustSetHead: fn(u16, *const i8) = |_, _| { unreachable!("SetHead was called before set by TES3MP"); };
881 #[no_mangle]
882 pub static mut rustSetHair: fn(u16, *const i8) = |_, _| { unreachable!("SetHair was called before set by TES3MP"); };
883 #[no_mangle]
884 pub static mut rustSetIsMale: fn(u16, i16) = |_, _| { unreachable!("SetIsMale was called before set by TES3MP"); };
885 #[no_mangle]
886 pub static mut rustSetBirthsign: fn(u16, *const i8) = |_, _| { unreachable!("SetBirthsign was called before set by TES3MP"); };
887 #[no_mangle]
888 pub static mut rustSetResetStats: fn(u16, bool) = |_, _| { unreachable!("SetResetStats was called before set by TES3MP"); };
889 #[no_mangle]
890 pub static mut rustSetLevel: fn(u16, i16) = |_, _| { unreachable!("SetLevel was called before set by TES3MP"); };
891 #[no_mangle]
892 pub static mut rustSetLevelProgress: fn(u16, i16) = |_, _| { unreachable!("SetLevelProgress was called before set by TES3MP"); };
893 #[no_mangle]
894 pub static mut rustSetHealthBase: fn(u16, f64) = |_, _| { unreachable!("SetHealthBase was called before set by TES3MP"); };
895 #[no_mangle]
896 pub static mut rustSetHealthCurrent: fn(u16, f64) = |_, _| { unreachable!("SetHealthCurrent was called before set by TES3MP"); };
897 #[no_mangle]
898 pub static mut rustSetMagickaBase: fn(u16, f64) = |_, _| { unreachable!("SetMagickaBase was called before set by TES3MP"); };
899 #[no_mangle]
900 pub static mut rustSetMagickaCurrent: fn(u16, f64) = |_, _| { unreachable!("SetMagickaCurrent was called before set by TES3MP"); };
901 #[no_mangle]
902 pub static mut rustSetFatigueBase: fn(u16, f64) = |_, _| { unreachable!("SetFatigueBase was called before set by TES3MP"); };
903 #[no_mangle]
904 pub static mut rustSetFatigueCurrent: fn(u16, f64) = |_, _| { unreachable!("SetFatigueCurrent was called before set by TES3MP"); };
905 #[no_mangle]
906 pub static mut rustSetAttributeBase: fn(u16, u16, i16) = |_, _, _| { unreachable!("SetAttributeBase was called before set by TES3MP"); };
907 #[no_mangle]
908 pub static mut rustClearAttributeModifier: fn(u16, u16) = |_, _| { unreachable!("ClearAttributeModifier was called before set by TES3MP"); };
909 #[no_mangle]
910 pub static mut rustSetAttributeDamage: fn(u16, u16, f64) = |_, _, _| { unreachable!("SetAttributeDamage was called before set by TES3MP"); };
911 #[no_mangle]
912 pub static mut rustSetSkillBase: fn(u16, u16, i16) = |_, _, _| { unreachable!("SetSkillBase was called before set by TES3MP"); };
913 #[no_mangle]
914 pub static mut rustClearSkillModifier: fn(u16, u16) = |_, _| { unreachable!("ClearSkillModifier was called before set by TES3MP"); };
915 #[no_mangle]
916 pub static mut rustSetSkillDamage: fn(u16, u16, f64) = |_, _, _| { unreachable!("SetSkillDamage was called before set by TES3MP"); };
917 #[no_mangle]
918 pub static mut rustSetSkillProgress: fn(u16, u16, f64) = |_, _, _| { unreachable!("SetSkillProgress was called before set by TES3MP"); };
919 #[no_mangle]
920 pub static mut rustSetSkillIncrease: fn(u16, u16, i16) = |_, _, _| { unreachable!("SetSkillIncrease was called before set by TES3MP"); };
921 #[no_mangle]
922 pub static mut rustSetBounty: fn(u16, i16) = |_, _| { unreachable!("SetBounty was called before set by TES3MP"); };
923 #[no_mangle]
924 pub static mut rustSetCharGenStage: fn(u16, i16, i16) = |_, _, _| { unreachable!("SetCharGenStage was called before set by TES3MP"); };
925 #[no_mangle]
926 pub static mut rustSendBaseInfo: fn(u16) = |_| { unreachable!("SendBaseInfo was called before set by TES3MP"); };
927 #[no_mangle]
928 pub static mut rustSendStatsDynamic: fn(u16) = |_| { unreachable!("SendStatsDynamic was called before set by TES3MP"); };
929 #[no_mangle]
930 pub static mut rustSendAttributes: fn(u16) = |_| { unreachable!("SendAttributes was called before set by TES3MP"); };
931 #[no_mangle]
932 pub static mut rustSendSkills: fn(u16) = |_| { unreachable!("SendSkills was called before set by TES3MP"); };
933 #[no_mangle]
934 pub static mut rustSendLevel: fn(u16) = |_| { unreachable!("SendLevel was called before set by TES3MP"); };
935 #[no_mangle]
936 pub static mut rustSendBounty: fn(u16) = |_| { unreachable!("SendBounty was called before set by TES3MP"); };
937 #[no_mangle]
938 pub static mut rustReadReceivedObjectList: fn() = || { unreachable!("ReadReceivedObjectList was called before set by TES3MP"); };
939 #[no_mangle]
940 pub static mut rustClearObjectList: fn() = || { unreachable!("ClearObjectList was called before set by TES3MP"); };
941 #[no_mangle]
942 pub static mut rustSetObjectListPid: fn(u16) = |_| { unreachable!("SetObjectListPid was called before set by TES3MP"); };
943 #[no_mangle]
944 pub static mut rustCopyReceivedObjectListToStore: fn() = || { unreachable!("CopyReceivedObjectListToStore was called before set by TES3MP"); };
945 #[no_mangle]
946 pub static mut rustGetObjectListSize: fn() -> u16 = || { unreachable!("GetObjectListSize was called before set by TES3MP"); };
947 #[no_mangle]
948 pub static mut rustGetObjectListOrigin: fn() -> u8 = || { unreachable!("GetObjectListOrigin was called before set by TES3MP"); };
949 #[no_mangle]
950 pub static mut rustGetObjectListClientScript: fn() -> *const i8 = || { unreachable!("GetObjectListClientScript was called before set by TES3MP"); };
951 #[no_mangle]
952 pub static mut rustGetObjectListAction: fn() -> u8 = || { unreachable!("GetObjectListAction was called before set by TES3MP"); };
953 #[no_mangle]
954 pub static mut rustGetObjectListContainerSubAction: fn() -> u8 = || { unreachable!("GetObjectListContainerSubAction was called before set by TES3MP"); };
955 #[no_mangle]
956 pub static mut rustIsObjectPlayer: fn(u16) -> bool = |_| { unreachable!("IsObjectPlayer was called before set by TES3MP"); };
957 #[no_mangle]
958 pub static mut rustGetObjectPid: fn(u16) -> i16 = |_| { unreachable!("GetObjectPid was called before set by TES3MP"); };
959 #[no_mangle]
960 pub static mut rustGetObjectRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetObjectRefId was called before set by TES3MP"); };
961 #[no_mangle]
962 pub static mut rustGetObjectRefNum: fn(u16) -> u16 = |_| { unreachable!("GetObjectRefNum was called before set by TES3MP"); };
963 #[no_mangle]
964 pub static mut rustGetObjectMpNum: fn(u16) -> u16 = |_| { unreachable!("GetObjectMpNum was called before set by TES3MP"); };
965 #[no_mangle]
966 pub static mut rustGetObjectCount: fn(u16) -> i16 = |_| { unreachable!("GetObjectCount was called before set by TES3MP"); };
967 #[no_mangle]
968 pub static mut rustGetObjectCharge: fn(u16) -> i16 = |_| { unreachable!("GetObjectCharge was called before set by TES3MP"); };
969 #[no_mangle]
970 pub static mut rustGetObjectEnchantmentCharge: fn(u16) -> f64 = |_| { unreachable!("GetObjectEnchantmentCharge was called before set by TES3MP"); };
971 #[no_mangle]
972 pub static mut rustGetObjectSoul: fn(u16) -> *const i8 = |_| { unreachable!("GetObjectSoul was called before set by TES3MP"); };
973 #[no_mangle]
974 pub static mut rustGetObjectGoldValue: fn(u16) -> i16 = |_| { unreachable!("GetObjectGoldValue was called before set by TES3MP"); };
975 #[no_mangle]
976 pub static mut rustGetObjectScale: fn(u16) -> f64 = |_| { unreachable!("GetObjectScale was called before set by TES3MP"); };
977 #[no_mangle]
978 pub static mut rustGetObjectState: fn(u16) -> bool = |_| { unreachable!("GetObjectState was called before set by TES3MP"); };
979 #[no_mangle]
980 pub static mut rustGetObjectDoorState: fn(u16) -> i16 = |_| { unreachable!("GetObjectDoorState was called before set by TES3MP"); };
981 #[no_mangle]
982 pub static mut rustGetObjectLockLevel: fn(u16) -> i16 = |_| { unreachable!("GetObjectLockLevel was called before set by TES3MP"); };
983 #[no_mangle]
984 pub static mut rustDoesObjectHavePlayerActivating: fn(u16) -> bool = |_| { unreachable!("DoesObjectHavePlayerActivating was called before set by TES3MP"); };
985 #[no_mangle]
986 pub static mut rustGetObjectActivatingPid: fn(u16) -> i16 = |_| { unreachable!("GetObjectActivatingPid was called before set by TES3MP"); };
987 #[no_mangle]
988 pub static mut rustGetObjectActivatingRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetObjectActivatingRefId was called before set by TES3MP"); };
989 #[no_mangle]
990 pub static mut rustGetObjectActivatingRefNum: fn(u16) -> u16 = |_| { unreachable!("GetObjectActivatingRefNum was called before set by TES3MP"); };
991 #[no_mangle]
992 pub static mut rustGetObjectActivatingMpNum: fn(u16) -> u16 = |_| { unreachable!("GetObjectActivatingMpNum was called before set by TES3MP"); };
993 #[no_mangle]
994 pub static mut rustGetObjectActivatingName: fn(u16) -> *const i8 = |_| { unreachable!("GetObjectActivatingName was called before set by TES3MP"); };
995 #[no_mangle]
996 pub static mut rustGetObjectSummonState: fn(u16) -> bool = |_| { unreachable!("GetObjectSummonState was called before set by TES3MP"); };
997 #[no_mangle]
998 pub static mut rustGetObjectSummonDuration: fn(u16) -> f64 = |_| { unreachable!("GetObjectSummonDuration was called before set by TES3MP"); };
999 #[no_mangle]
1000 pub static mut rustDoesObjectHavePlayerSummoner: fn(u16) -> bool = |_| { unreachable!("DoesObjectHavePlayerSummoner was called before set by TES3MP"); };
1001 #[no_mangle]
1002 pub static mut rustGetObjectSummonerPid: fn(u16) -> i16 = |_| { unreachable!("GetObjectSummonerPid was called before set by TES3MP"); };
1003 #[no_mangle]
1004 pub static mut rustGetObjectSummonerRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetObjectSummonerRefId was called before set by TES3MP"); };
1005 #[no_mangle]
1006 pub static mut rustGetObjectSummonerRefNum: fn(u16) -> u16 = |_| { unreachable!("GetObjectSummonerRefNum was called before set by TES3MP"); };
1007 #[no_mangle]
1008 pub static mut rustGetObjectSummonerMpNum: fn(u16) -> u16 = |_| { unreachable!("GetObjectSummonerMpNum was called before set by TES3MP"); };
1009 #[no_mangle]
1010 pub static mut rustGetObjectPosX: fn(u16) -> f64 = |_| { unreachable!("GetObjectPosX was called before set by TES3MP"); };
1011 #[no_mangle]
1012 pub static mut rustGetObjectPosY: fn(u16) -> f64 = |_| { unreachable!("GetObjectPosY was called before set by TES3MP"); };
1013 #[no_mangle]
1014 pub static mut rustGetObjectPosZ: fn(u16) -> f64 = |_| { unreachable!("GetObjectPosZ was called before set by TES3MP"); };
1015 #[no_mangle]
1016 pub static mut rustGetObjectRotX: fn(u16) -> f64 = |_| { unreachable!("GetObjectRotX was called before set by TES3MP"); };
1017 #[no_mangle]
1018 pub static mut rustGetObjectRotY: fn(u16) -> f64 = |_| { unreachable!("GetObjectRotY was called before set by TES3MP"); };
1019 #[no_mangle]
1020 pub static mut rustGetObjectRotZ: fn(u16) -> f64 = |_| { unreachable!("GetObjectRotZ was called before set by TES3MP"); };
1021 #[no_mangle]
1022 pub static mut rustGetVideoFilename: fn(u16) -> *const i8 = |_| { unreachable!("GetVideoFilename was called before set by TES3MP"); };
1023 #[no_mangle]
1024 pub static mut rustGetScriptVariableName: fn(u16) -> *const i8 = |_| { unreachable!("GetScriptVariableName was called before set by TES3MP"); };
1025 #[no_mangle]
1026 pub static mut rustGetScriptVariableShortValue: fn(u16) -> i16 = |_| { unreachable!("GetScriptVariableShortValue was called before set by TES3MP"); };
1027 #[no_mangle]
1028 pub static mut rustGetContainerChangesSize: fn(u16) -> u16 = |_| { unreachable!("GetContainerChangesSize was called before set by TES3MP"); };
1029 #[no_mangle]
1030 pub static mut rustGetContainerItemRefId: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetContainerItemRefId was called before set by TES3MP"); };
1031 #[no_mangle]
1032 pub static mut rustGetContainerItemCount: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetContainerItemCount was called before set by TES3MP"); };
1033 #[no_mangle]
1034 pub static mut rustGetContainerItemCharge: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetContainerItemCharge was called before set by TES3MP"); };
1035 #[no_mangle]
1036 pub static mut rustGetContainerItemEnchantmentCharge: fn(u16, u16) -> f64 = |_, _| { unreachable!("GetContainerItemEnchantmentCharge was called before set by TES3MP"); };
1037 #[no_mangle]
1038 pub static mut rustGetContainerItemSoul: fn(u16, u16) -> *const i8 = |_, _| { unreachable!("GetContainerItemSoul was called before set by TES3MP"); };
1039 #[no_mangle]
1040 pub static mut rustGetContainerItemActionCount: fn(u16, u16) -> i16 = |_, _| { unreachable!("GetContainerItemActionCount was called before set by TES3MP"); };
1041 #[no_mangle]
1042 pub static mut rustDoesObjectHaveContainer: fn(u16) -> bool = |_| { unreachable!("DoesObjectHaveContainer was called before set by TES3MP"); };
1043 #[no_mangle]
1044 pub static mut rustSetObjectListCell: fn(*const i8) = |_| { unreachable!("SetObjectListCell was called before set by TES3MP"); };
1045 #[no_mangle]
1046 pub static mut rustSetObjectListAction: fn(u8) = |_| { unreachable!("SetObjectListAction was called before set by TES3MP"); };
1047 #[no_mangle]
1048 pub static mut rustSetObjectListConsoleCommand: fn(*const i8) = |_| { unreachable!("SetObjectListConsoleCommand was called before set by TES3MP"); };
1049 #[no_mangle]
1050 pub static mut rustSetObjectRefId: fn(*const i8) = |_| { unreachable!("SetObjectRefId was called before set by TES3MP"); };
1051 #[no_mangle]
1052 pub static mut rustSetObjectRefNum: fn(i16) = |_| { unreachable!("SetObjectRefNum was called before set by TES3MP"); };
1053 #[no_mangle]
1054 pub static mut rustSetObjectMpNum: fn(i16) = |_| { unreachable!("SetObjectMpNum was called before set by TES3MP"); };
1055 #[no_mangle]
1056 pub static mut rustSetObjectCount: fn(i16) = |_| { unreachable!("SetObjectCount was called before set by TES3MP"); };
1057 #[no_mangle]
1058 pub static mut rustSetObjectCharge: fn(i16) = |_| { unreachable!("SetObjectCharge was called before set by TES3MP"); };
1059 #[no_mangle]
1060 pub static mut rustSetObjectEnchantmentCharge: fn(f64) = |_| { unreachable!("SetObjectEnchantmentCharge was called before set by TES3MP"); };
1061 #[no_mangle]
1062 pub static mut rustSetObjectSoul: fn(*const i8) = |_| { unreachable!("SetObjectSoul was called before set by TES3MP"); };
1063 #[no_mangle]
1064 pub static mut rustSetObjectGoldValue: fn(i16) = |_| { unreachable!("SetObjectGoldValue was called before set by TES3MP"); };
1065 #[no_mangle]
1066 pub static mut rustSetObjectScale: fn(f64) = |_| { unreachable!("SetObjectScale was called before set by TES3MP"); };
1067 #[no_mangle]
1068 pub static mut rustSetObjectState: fn(bool) = |_| { unreachable!("SetObjectState was called before set by TES3MP"); };
1069 #[no_mangle]
1070 pub static mut rustSetObjectLockLevel: fn(i16) = |_| { unreachable!("SetObjectLockLevel was called before set by TES3MP"); };
1071 #[no_mangle]
1072 pub static mut rustSetObjectDisarmState: fn(bool) = |_| { unreachable!("SetObjectDisarmState was called before set by TES3MP"); };
1073 #[no_mangle]
1074 pub static mut rustSetObjectSummonDuration: fn(f32) = |_| { unreachable!("SetObjectSummonDuration was called before set by TES3MP"); };
1075 #[no_mangle]
1076 pub static mut rustSetObjectSummonState: fn(bool) = |_| { unreachable!("SetObjectSummonState was called before set by TES3MP"); };
1077 #[no_mangle]
1078 pub static mut rustSetObjectPosition: fn(f64, f64, f64) = |_, _, _| { unreachable!("SetObjectPosition was called before set by TES3MP"); };
1079 #[no_mangle]
1080 pub static mut rustSetObjectRotation: fn(f64, f64, f64) = |_, _, _| { unreachable!("SetObjectRotation was called before set by TES3MP"); };
1081 #[no_mangle]
1082 pub static mut rustSetObjectActivatingPid: fn(u16) = |_| { unreachable!("SetObjectActivatingPid was called before set by TES3MP"); };
1083 #[no_mangle]
1084 pub static mut rustSetObjectDoorState: fn(i16) = |_| { unreachable!("SetObjectDoorState was called before set by TES3MP"); };
1085 #[no_mangle]
1086 pub static mut rustSetObjectDoorTeleportState: fn(bool) = |_| { unreachable!("SetObjectDoorTeleportState was called before set by TES3MP"); };
1087 #[no_mangle]
1088 pub static mut rustSetObjectDoorDestinationCell: fn(*const i8) = |_| { unreachable!("SetObjectDoorDestinationCell was called before set by TES3MP"); };
1089 #[no_mangle]
1090 pub static mut rustSetObjectDoorDestinationPosition: fn(f64, f64, f64) = |_, _, _| { unreachable!("SetObjectDoorDestinationPosition was called before set by TES3MP"); };
1091 #[no_mangle]
1092 pub static mut rustSetObjectDoorDestinationRotation: fn(f64, f64) = |_, _| { unreachable!("SetObjectDoorDestinationRotation was called before set by TES3MP"); };
1093 #[no_mangle]
1094 pub static mut rustSetScriptVariableName: fn(*const i8) = |_| { unreachable!("SetScriptVariableName was called before set by TES3MP"); };
1095 #[no_mangle]
1096 pub static mut rustSetScriptVariableShortValue: fn(i16) = |_| { unreachable!("SetScriptVariableShortValue was called before set by TES3MP"); };
1097 #[no_mangle]
1098 pub static mut rustSetPlayerAsObject: fn(u16) = |_| { unreachable!("SetPlayerAsObject was called before set by TES3MP"); };
1099 #[no_mangle]
1100 pub static mut rustSetContainerItemRefId: fn(*const i8) = |_| { unreachable!("SetContainerItemRefId was called before set by TES3MP"); };
1101 #[no_mangle]
1102 pub static mut rustSetContainerItemCount: fn(i16) = |_| { unreachable!("SetContainerItemCount was called before set by TES3MP"); };
1103 #[no_mangle]
1104 pub static mut rustSetContainerItemCharge: fn(i16) = |_| { unreachable!("SetContainerItemCharge was called before set by TES3MP"); };
1105 #[no_mangle]
1106 pub static mut rustSetContainerItemEnchantmentCharge: fn(f64) = |_| { unreachable!("SetContainerItemEnchantmentCharge was called before set by TES3MP"); };
1107 #[no_mangle]
1108 pub static mut rustSetContainerItemSoul: fn(*const i8) = |_| { unreachable!("SetContainerItemSoul was called before set by TES3MP"); };
1109 #[no_mangle]
1110 pub static mut rustSetContainerItemActionCountByIndex: fn(u16, u16, i16) = |_, _, _| { unreachable!("SetContainerItemActionCountByIndex was called before set by TES3MP"); };
1111 #[no_mangle]
1112 pub static mut rustAddObject: fn() = || { unreachable!("AddObject was called before set by TES3MP"); };
1113 #[no_mangle]
1114 pub static mut rustAddContainerItem: fn() = || { unreachable!("AddContainerItem was called before set by TES3MP"); };
1115 #[no_mangle]
1116 pub static mut rustSendObjectActivate: fn(bool, bool) = |_, _| { unreachable!("SendObjectActivate was called before set by TES3MP"); };
1117 #[no_mangle]
1118 pub static mut rustSendObjectPlace: fn(bool, bool) = |_, _| { unreachable!("SendObjectPlace was called before set by TES3MP"); };
1119 #[no_mangle]
1120 pub static mut rustSendObjectSpawn: fn(bool, bool) = |_, _| { unreachable!("SendObjectSpawn was called before set by TES3MP"); };
1121 #[no_mangle]
1122 pub static mut rustSendObjectDelete: fn(bool, bool) = |_, _| { unreachable!("SendObjectDelete was called before set by TES3MP"); };
1123 #[no_mangle]
1124 pub static mut rustSendObjectLock: fn(bool, bool) = |_, _| { unreachable!("SendObjectLock was called before set by TES3MP"); };
1125 #[no_mangle]
1126 pub static mut rustSendObjectTrap: fn(bool, bool) = |_, _| { unreachable!("SendObjectTrap was called before set by TES3MP"); };
1127 #[no_mangle]
1128 pub static mut rustSendObjectScale: fn(bool, bool) = |_, _| { unreachable!("SendObjectScale was called before set by TES3MP"); };
1129 #[no_mangle]
1130 pub static mut rustSendObjectState: fn(bool, bool) = |_, _| { unreachable!("SendObjectState was called before set by TES3MP"); };
1131 #[no_mangle]
1132 pub static mut rustSendDoorState: fn(bool, bool) = |_, _| { unreachable!("SendDoorState was called before set by TES3MP"); };
1133 #[no_mangle]
1134 pub static mut rustSendDoorDestination: fn(bool, bool) = |_, _| { unreachable!("SendDoorDestination was called before set by TES3MP"); };
1135 #[no_mangle]
1136 pub static mut rustSendContainer: fn(bool, bool) = |_, _| { unreachable!("SendContainer was called before set by TES3MP"); };
1137 #[no_mangle]
1138 pub static mut rustSendVideoPlay: fn(bool, bool) = |_, _| { unreachable!("SendVideoPlay was called before set by TES3MP"); };
1139 #[no_mangle]
1140 pub static mut rustSendScriptGlobalShort: fn(bool, bool) = |_, _| { unreachable!("SendScriptGlobalShort was called before set by TES3MP"); };
1141 #[no_mangle]
1142 pub static mut rustSendConsoleCommand: fn(bool, bool) = |_, _| { unreachable!("SendConsoleCommand was called before set by TES3MP"); };
1143 #[no_mangle]
1144 pub static mut rustReadLastObjectList: fn() = || { unreachable!("ReadLastObjectList was called before set by TES3MP"); };
1145 #[no_mangle]
1146 pub static mut rustReadLastEvent: fn() = || { unreachable!("ReadLastEvent was called before set by TES3MP"); };
1147 #[no_mangle]
1148 pub static mut rustInitializeObjectList: fn(u16) = |_| { unreachable!("InitializeObjectList was called before set by TES3MP"); };
1149 #[no_mangle]
1150 pub static mut rustInitializeEvent: fn(u16) = |_| { unreachable!("InitializeEvent was called before set by TES3MP"); };
1151 #[no_mangle]
1152 pub static mut rustCopyLastObjectListToStore: fn() = || { unreachable!("CopyLastObjectListToStore was called before set by TES3MP"); };
1153 #[no_mangle]
1154 pub static mut rustGetObjectChangesSize: fn() -> u16 = || { unreachable!("GetObjectChangesSize was called before set by TES3MP"); };
1155 #[no_mangle]
1156 pub static mut rustGetEventAction: fn() -> u8 = || { unreachable!("GetEventAction was called before set by TES3MP"); };
1157 #[no_mangle]
1158 pub static mut rustGetEventContainerSubAction: fn() -> u8 = || { unreachable!("GetEventContainerSubAction was called before set by TES3MP"); };
1159 #[no_mangle]
1160 pub static mut rustGetObjectRefNumIndex: fn(u16) -> u16 = |_| { unreachable!("GetObjectRefNumIndex was called before set by TES3MP"); };
1161 #[no_mangle]
1162 pub static mut rustGetObjectSummonerRefNumIndex: fn(u16) -> u16 = |_| { unreachable!("GetObjectSummonerRefNumIndex was called before set by TES3MP"); };
1163 #[no_mangle]
1164 pub static mut rustSetEventCell: fn(*const i8) = |_| { unreachable!("SetEventCell was called before set by TES3MP"); };
1165 #[no_mangle]
1166 pub static mut rustSetEventAction: fn(u8) = |_| { unreachable!("SetEventAction was called before set by TES3MP"); };
1167 #[no_mangle]
1168 pub static mut rustSetEventConsoleCommand: fn(*const i8) = |_| { unreachable!("SetEventConsoleCommand was called before set by TES3MP"); };
1169 #[no_mangle]
1170 pub static mut rustSetObjectRefNumIndex: fn(i16) = |_| { unreachable!("SetObjectRefNumIndex was called before set by TES3MP"); };
1171 #[no_mangle]
1172 pub static mut rustAddWorldObject: fn() = || { unreachable!("AddWorldObject was called before set by TES3MP"); };
1173 #[no_mangle]
1174 pub static mut rustReadReceivedWorldstate: fn() = || { unreachable!("ReadReceivedWorldstate was called before set by TES3MP"); };
1175 #[no_mangle]
1176 pub static mut rustCopyReceivedWorldstateToStore: fn() = || { unreachable!("CopyReceivedWorldstateToStore was called before set by TES3MP"); };
1177 #[no_mangle]
1178 pub static mut rustClearKillChanges: fn() = || { unreachable!("ClearKillChanges was called before set by TES3MP"); };
1179 #[no_mangle]
1180 pub static mut rustClearMapChanges: fn() = || { unreachable!("ClearMapChanges was called before set by TES3MP"); };
1181 #[no_mangle]
1182 pub static mut rustGetKillChangesSize: fn() -> u16 = || { unreachable!("GetKillChangesSize was called before set by TES3MP"); };
1183 #[no_mangle]
1184 pub static mut rustGetMapChangesSize: fn() -> u16 = || { unreachable!("GetMapChangesSize was called before set by TES3MP"); };
1185 #[no_mangle]
1186 pub static mut rustGetKillRefId: fn(u16) -> *const i8 = |_| { unreachable!("GetKillRefId was called before set by TES3MP"); };
1187 #[no_mangle]
1188 pub static mut rustGetKillNumber: fn(u16) -> i16 = |_| { unreachable!("GetKillNumber was called before set by TES3MP"); };
1189 #[no_mangle]
1190 pub static mut rustGetWeatherRegion: fn() -> *const i8 = || { unreachable!("GetWeatherRegion was called before set by TES3MP"); };
1191 #[no_mangle]
1192 pub static mut rustGetWeatherCurrent: fn() -> i16 = || { unreachable!("GetWeatherCurrent was called before set by TES3MP"); };
1193 #[no_mangle]
1194 pub static mut rustGetWeatherNext: fn() -> i16 = || { unreachable!("GetWeatherNext was called before set by TES3MP"); };
1195 #[no_mangle]
1196 pub static mut rustGetWeatherQueued: fn() -> i16 = || { unreachable!("GetWeatherQueued was called before set by TES3MP"); };
1197 #[no_mangle]
1198 pub static mut rustGetWeatherTransitionFactor: fn() -> f64 = || { unreachable!("GetWeatherTransitionFactor was called before set by TES3MP"); };
1199 #[no_mangle]
1200 pub static mut rustGetMapTileCellX: fn(u16) -> i16 = |_| { unreachable!("GetMapTileCellX was called before set by TES3MP"); };
1201 #[no_mangle]
1202 pub static mut rustGetMapTileCellY: fn(u16) -> i16 = |_| { unreachable!("GetMapTileCellY was called before set by TES3MP"); };
1203 #[no_mangle]
1204 pub static mut rustSetAuthorityRegion: fn(*const i8) = |_| { unreachable!("SetAuthorityRegion was called before set by TES3MP"); };
1205 #[no_mangle]
1206 pub static mut rustSetWeatherRegion: fn(*const i8) = |_| { unreachable!("SetWeatherRegion was called before set by TES3MP"); };
1207 #[no_mangle]
1208 pub static mut rustSetWeatherForceState: fn(bool) = |_| { unreachable!("SetWeatherForceState was called before set by TES3MP"); };
1209 #[no_mangle]
1210 pub static mut rustSetWeatherCurrent: fn(i16) = |_| { unreachable!("SetWeatherCurrent was called before set by TES3MP"); };
1211 #[no_mangle]
1212 pub static mut rustSetWeatherNext: fn(i16) = |_| { unreachable!("SetWeatherNext was called before set by TES3MP"); };
1213 #[no_mangle]
1214 pub static mut rustSetWeatherQueued: fn(i16) = |_| { unreachable!("SetWeatherQueued was called before set by TES3MP"); };
1215 #[no_mangle]
1216 pub static mut rustSetWeatherTransitionFactor: fn(f64) = |_| { unreachable!("SetWeatherTransitionFactor was called before set by TES3MP"); };
1217 #[no_mangle]
1218 pub static mut rustSetHour: fn(f64) = |_| { unreachable!("SetHour was called before set by TES3MP"); };
1219 #[no_mangle]
1220 pub static mut rustSetDay: fn(i16) = |_| { unreachable!("SetDay was called before set by TES3MP"); };
1221 #[no_mangle]
1222 pub static mut rustSetMonth: fn(i16) = |_| { unreachable!("SetMonth was called before set by TES3MP"); };
1223 #[no_mangle]
1224 pub static mut rustSetYear: fn(i16) = |_| { unreachable!("SetYear was called before set by TES3MP"); };
1225 #[no_mangle]
1226 pub static mut rustSetDaysPassed: fn(i16) = |_| { unreachable!("SetDaysPassed was called before set by TES3MP"); };
1227 #[no_mangle]
1228 pub static mut rustSetTimeScale: fn(f64) = |_| { unreachable!("SetTimeScale was called before set by TES3MP"); };
1229 #[no_mangle]
1230 pub static mut rustSetPlayerCollisionState: fn(bool) = |_| { unreachable!("SetPlayerCollisionState was called before set by TES3MP"); };
1231 #[no_mangle]
1232 pub static mut rustSetActorCollisionState: fn(bool) = |_| { unreachable!("SetActorCollisionState was called before set by TES3MP"); };
1233 #[no_mangle]
1234 pub static mut rustSetPlacedObjectCollisionState: fn(bool) = |_| { unreachable!("SetPlacedObjectCollisionState was called before set by TES3MP"); };
1235 #[no_mangle]
1236 pub static mut rustUseActorCollisionForPlacedObjects: fn(bool) = |_| { unreachable!("UseActorCollisionForPlacedObjects was called before set by TES3MP"); };
1237 #[no_mangle]
1238 pub static mut rustAddKill: fn(*const i8, i16) = |_, _| { unreachable!("AddKill was called before set by TES3MP"); };
1239 #[no_mangle]
1240 pub static mut rustAddSynchronizedClientScriptId: fn(*const i8) = |_| { unreachable!("AddSynchronizedClientScriptId was called before set by TES3MP"); };
1241 #[no_mangle]
1242 pub static mut rustAddSynchronizedClientGlobalId: fn(*const i8) = |_| { unreachable!("AddSynchronizedClientGlobalId was called before set by TES3MP"); };
1243 #[no_mangle]
1244 pub static mut rustAddEnforcedCollisionRefId: fn(*const i8) = |_| { unreachable!("AddEnforcedCollisionRefId was called before set by TES3MP"); };
1245 #[no_mangle]
1246 pub static mut rustClearSynchronizedClientScriptIds: fn() = || { unreachable!("ClearSynchronizedClientScriptIds was called before set by TES3MP"); };
1247 #[no_mangle]
1248 pub static mut rustClearSynchronizedClientGlobalIds: fn() = || { unreachable!("ClearSynchronizedClientGlobalIds was called before set by TES3MP"); };
1249 #[no_mangle]
1250 pub static mut rustClearEnforcedCollisionRefIds: fn() = || { unreachable!("ClearEnforcedCollisionRefIds was called before set by TES3MP"); };
1251 #[no_mangle]
1252 pub static mut rustSaveMapTileImageFile: fn(u16, *const i8) = |_, _| { unreachable!("SaveMapTileImageFile was called before set by TES3MP"); };
1253 #[no_mangle]
1254 pub static mut rustLoadMapTileImageFile: fn(i16, i16, *const i8) = |_, _, _| { unreachable!("LoadMapTileImageFile was called before set by TES3MP"); };
1255 #[no_mangle]
1256 pub static mut rustSendClientScriptSettings: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendClientScriptSettings was called before set by TES3MP"); };
1257 #[no_mangle]
1258 pub static mut rustSendWorldKillCount: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendWorldKillCount was called before set by TES3MP"); };
1259 #[no_mangle]
1260 pub static mut rustSendWorldMap: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendWorldMap was called before set by TES3MP"); };
1261 #[no_mangle]
1262 pub static mut rustSendWorldTime: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendWorldTime was called before set by TES3MP"); };
1263 #[no_mangle]
1264 pub static mut rustSendWorldWeather: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendWorldWeather was called before set by TES3MP"); };
1265 #[no_mangle]
1266 pub static mut rustSendWorldCollisionOverride: fn(u16, bool, bool) = |_, _, _| { unreachable!("SendWorldCollisionOverride was called before set by TES3MP"); };
1267 #[no_mangle]
1268 pub static mut rustSendWorldRegionAuthority: fn(u16) = |_| { unreachable!("SendWorldRegionAuthority was called before set by TES3MP"); };
1269 #[no_mangle]
1270 pub static mut rustReadLastWorldstate: fn() = || { unreachable!("ReadLastWorldstate was called before set by TES3MP"); };
1271 #[no_mangle]
1272 pub static mut rustCopyLastWorldstateToStore: fn() = || { unreachable!("CopyLastWorldstateToStore was called before set by TES3MP"); };
1273}
1274
1275pub fn create_timer(callback: fn(), msec: i16) -> i16 {
1284 unsafe {
1285 raw::rustCreateTimer(callback, msec)
1286 }
1287}
1288
1289pub fn make_public(public: fn(), name: &str, ret_type: i8, def: &str) {
1290 unsafe {
1291 raw::rustMakePublic(public, CString::new(name).unwrap_or_default().as_ptr(), ret_type, CString::new(def).unwrap_or_default().as_ptr())
1292 }
1293}
1294
1295pub fn start_timer(timer_id: i16) {
1303 unsafe {
1304 raw::rustStartTimer(timer_id)
1305 }
1306}
1307
1308pub fn stop_timer(timer_id: i16) {
1316 unsafe {
1317 raw::rustStopTimer(timer_id)
1318 }
1319}
1320
1321pub fn restart_timer(timer_id: i16, msec: i16) {
1330 unsafe {
1331 raw::rustRestartTimer(timer_id, msec)
1332 }
1333}
1334
1335pub fn free_timer(timer_id: i16) {
1343 unsafe {
1344 raw::rustFreeTimer(timer_id)
1345 }
1346}
1347
1348pub fn is_timer_elapsed(timer_id: i16) -> bool {
1356 unsafe {
1357 raw::rustIsTimerElapsed(timer_id)
1358 }
1359}
1360
1361pub fn read_received_actor_list() {
1368 unsafe {
1369 raw::rustReadReceivedActorList()
1370 }
1371}
1372
1373pub fn read_cell_actor_list(cell_description: &str) {
1384 unsafe {
1385 raw::rustReadCellActorList(CString::new(cell_description).unwrap_or_default().as_ptr())
1386 }
1387}
1388
1389pub fn clear_actor_list() {
1396 unsafe {
1397 raw::rustClearActorList()
1398 }
1399}
1400
1401pub fn set_actor_list_pid(pid: u16) {
1409 unsafe {
1410 raw::rustSetActorListPid(pid)
1411 }
1412}
1413
1414pub fn copy_received_actor_list_to_store() {
1423 unsafe {
1424 raw::rustCopyReceivedActorListToStore()
1425 }
1426}
1427
1428pub fn get_actor_list_size() -> u16 {
1435 unsafe {
1436 raw::rustGetActorListSize()
1437 }
1438}
1439
1440pub fn get_actor_list_action() -> u8 {
1447 unsafe {
1448 raw::rustGetActorListAction()
1449 }
1450}
1451
1452pub fn get_actor_cell(index: u16) -> String {
1460 unsafe {
1461 CStr::from_ptr(raw::rustGetActorCell(index))
1462 .to_str()
1463 .unwrap_or_default()
1464 .to_string()
1465 }
1466}
1467
1468pub fn get_actor_ref_id(index: u16) -> String {
1476 unsafe {
1477 CStr::from_ptr(raw::rustGetActorRefId(index))
1478 .to_str()
1479 .unwrap_or_default()
1480 .to_string()
1481 }
1482}
1483
1484pub fn get_actor_ref_num(index: u16) -> u16 {
1492 unsafe {
1493 raw::rustGetActorRefNum(index)
1494 }
1495}
1496
1497pub fn get_actor_mp_num(index: u16) -> u16 {
1505 unsafe {
1506 raw::rustGetActorMpNum(index)
1507 }
1508}
1509
1510pub fn get_actor_pos_x(index: u16) -> f64 {
1518 unsafe {
1519 raw::rustGetActorPosX(index)
1520 }
1521}
1522
1523pub fn get_actor_pos_y(index: u16) -> f64 {
1531 unsafe {
1532 raw::rustGetActorPosY(index)
1533 }
1534}
1535
1536pub fn get_actor_pos_z(index: u16) -> f64 {
1544 unsafe {
1545 raw::rustGetActorPosZ(index)
1546 }
1547}
1548
1549pub fn get_actor_rot_x(index: u16) -> f64 {
1557 unsafe {
1558 raw::rustGetActorRotX(index)
1559 }
1560}
1561
1562pub fn get_actor_rot_y(index: u16) -> f64 {
1570 unsafe {
1571 raw::rustGetActorRotY(index)
1572 }
1573}
1574
1575pub fn get_actor_rot_z(index: u16) -> f64 {
1583 unsafe {
1584 raw::rustGetActorRotZ(index)
1585 }
1586}
1587
1588pub fn get_actor_health_base(index: u16) -> f64 {
1596 unsafe {
1597 raw::rustGetActorHealthBase(index)
1598 }
1599}
1600
1601pub fn get_actor_health_current(index: u16) -> f64 {
1609 unsafe {
1610 raw::rustGetActorHealthCurrent(index)
1611 }
1612}
1613
1614pub fn get_actor_health_modified(index: u16) -> f64 {
1622 unsafe {
1623 raw::rustGetActorHealthModified(index)
1624 }
1625}
1626
1627pub fn get_actor_magicka_base(index: u16) -> f64 {
1635 unsafe {
1636 raw::rustGetActorMagickaBase(index)
1637 }
1638}
1639
1640pub fn get_actor_magicka_current(index: u16) -> f64 {
1648 unsafe {
1649 raw::rustGetActorMagickaCurrent(index)
1650 }
1651}
1652
1653pub fn get_actor_magicka_modified(index: u16) -> f64 {
1661 unsafe {
1662 raw::rustGetActorMagickaModified(index)
1663 }
1664}
1665
1666pub fn get_actor_fatigue_base(index: u16) -> f64 {
1674 unsafe {
1675 raw::rustGetActorFatigueBase(index)
1676 }
1677}
1678
1679pub fn get_actor_fatigue_current(index: u16) -> f64 {
1687 unsafe {
1688 raw::rustGetActorFatigueCurrent(index)
1689 }
1690}
1691
1692pub fn get_actor_fatigue_modified(index: u16) -> f64 {
1700 unsafe {
1701 raw::rustGetActorFatigueModified(index)
1702 }
1703}
1704
1705pub fn get_actor_equipment_item_ref_id(index: u16, slot: u16) -> String {
1715 unsafe {
1716 CStr::from_ptr(raw::rustGetActorEquipmentItemRefId(index, slot))
1717 .to_str()
1718 .unwrap_or_default()
1719 .to_string()
1720 }
1721}
1722
1723pub fn get_actor_equipment_item_count(index: u16, slot: u16) -> i16 {
1733 unsafe {
1734 raw::rustGetActorEquipmentItemCount(index, slot)
1735 }
1736}
1737
1738pub fn get_actor_equipment_item_charge(index: u16, slot: u16) -> i16 {
1748 unsafe {
1749 raw::rustGetActorEquipmentItemCharge(index, slot)
1750 }
1751}
1752
1753pub fn get_actor_equipment_item_enchantment_charge(index: u16, slot: u16) -> f64 {
1763 unsafe {
1764 raw::rustGetActorEquipmentItemEnchantmentCharge(index, slot)
1765 }
1766}
1767
1768pub fn does_actor_have_player_killer(index: u16) -> bool {
1776 unsafe {
1777 raw::rustDoesActorHavePlayerKiller(index)
1778 }
1779}
1780
1781pub fn get_actor_killer_pid(index: u16) -> i16 {
1789 unsafe {
1790 raw::rustGetActorKillerPid(index)
1791 }
1792}
1793
1794pub fn get_actor_killer_ref_id(index: u16) -> String {
1802 unsafe {
1803 CStr::from_ptr(raw::rustGetActorKillerRefId(index))
1804 .to_str()
1805 .unwrap_or_default()
1806 .to_string()
1807 }
1808}
1809
1810pub fn get_actor_killer_ref_num(index: u16) -> u16 {
1818 unsafe {
1819 raw::rustGetActorKillerRefNum(index)
1820 }
1821}
1822
1823pub fn get_actor_killer_mp_num(index: u16) -> u16 {
1831 unsafe {
1832 raw::rustGetActorKillerMpNum(index)
1833 }
1834}
1835
1836pub fn get_actor_killer_name(index: u16) -> String {
1844 unsafe {
1845 CStr::from_ptr(raw::rustGetActorKillerName(index))
1846 .to_str()
1847 .unwrap_or_default()
1848 .to_string()
1849 }
1850}
1851
1852pub fn does_actor_have_position(index: u16) -> bool {
1863 unsafe {
1864 raw::rustDoesActorHavePosition(index)
1865 }
1866}
1867
1868pub fn does_actor_have_stats_dynamic(index: u16) -> bool {
1879 unsafe {
1880 raw::rustDoesActorHaveStatsDynamic(index)
1881 }
1882}
1883
1884pub fn set_actor_list_cell(cell_description: &str) {
1895 unsafe {
1896 raw::rustSetActorListCell(CString::new(cell_description).unwrap_or_default().as_ptr())
1897 }
1898}
1899
1900pub fn set_actor_list_action(action: u8) {
1908 unsafe {
1909 raw::rustSetActorListAction(action)
1910 }
1911}
1912
1913pub fn set_actor_cell(cell_description: &str) {
1927 unsafe {
1928 raw::rustSetActorCell(CString::new(cell_description).unwrap_or_default().as_ptr())
1929 }
1930}
1931
1932pub fn set_actor_ref_id(ref_id: &str) {
1940 unsafe {
1941 raw::rustSetActorRefId(CString::new(ref_id).unwrap_or_default().as_ptr())
1942 }
1943}
1944
1945pub fn set_actor_ref_num(ref_num: i16) {
1953 unsafe {
1954 raw::rustSetActorRefNum(ref_num)
1955 }
1956}
1957
1958pub fn set_actor_mp_num(mp_num: i16) {
1966 unsafe {
1967 raw::rustSetActorMpNum(mp_num)
1968 }
1969}
1970
1971pub fn set_actor_position(x: f64, y: f64, z: f64) {
1981 unsafe {
1982 raw::rustSetActorPosition(x, y, z)
1983 }
1984}
1985
1986pub fn set_actor_rotation(x: f64, y: f64, z: f64) {
1996 unsafe {
1997 raw::rustSetActorRotation(x, y, z)
1998 }
1999}
2000
2001pub fn set_actor_health_base(value: f64) {
2009 unsafe {
2010 raw::rustSetActorHealthBase(value)
2011 }
2012}
2013
2014pub fn set_actor_health_current(value: f64) {
2022 unsafe {
2023 raw::rustSetActorHealthCurrent(value)
2024 }
2025}
2026
2027pub fn set_actor_health_modified(value: f64) {
2035 unsafe {
2036 raw::rustSetActorHealthModified(value)
2037 }
2038}
2039
2040pub fn set_actor_magicka_base(value: f64) {
2048 unsafe {
2049 raw::rustSetActorMagickaBase(value)
2050 }
2051}
2052
2053pub fn set_actor_magicka_current(value: f64) {
2061 unsafe {
2062 raw::rustSetActorMagickaCurrent(value)
2063 }
2064}
2065
2066pub fn set_actor_magicka_modified(value: f64) {
2074 unsafe {
2075 raw::rustSetActorMagickaModified(value)
2076 }
2077}
2078
2079pub fn set_actor_fatigue_base(value: f64) {
2087 unsafe {
2088 raw::rustSetActorFatigueBase(value)
2089 }
2090}
2091
2092pub fn set_actor_fatigue_current(value: f64) {
2100 unsafe {
2101 raw::rustSetActorFatigueCurrent(value)
2102 }
2103}
2104
2105pub fn set_actor_fatigue_modified(value: f64) {
2113 unsafe {
2114 raw::rustSetActorFatigueModified(value)
2115 }
2116}
2117
2118pub fn set_actor_sound(sound: &str) {
2126 unsafe {
2127 raw::rustSetActorSound(CString::new(sound).unwrap_or_default().as_ptr())
2128 }
2129}
2130
2131pub fn set_actor_ai_action(action: u16) {
2139 unsafe {
2140 raw::rustSetActorAIAction(action)
2141 }
2142}
2143
2144pub fn set_actor_ai_target_to_player(pid: u16) {
2152 unsafe {
2153 raw::rustSetActorAITargetToPlayer(pid)
2154 }
2155}
2156
2157pub fn set_actor_ai_target_to_object(ref_num: i16, mp_num: i16) {
2166 unsafe {
2167 raw::rustSetActorAITargetToObject(ref_num, mp_num)
2168 }
2169}
2170
2171pub fn set_actor_ai_coordinates(x: f64, y: f64, z: f64) {
2181 unsafe {
2182 raw::rustSetActorAICoordinates(x, y, z)
2183 }
2184}
2185
2186pub fn set_actor_ai_distance(distance: u16) {
2194 unsafe {
2195 raw::rustSetActorAIDistance(distance)
2196 }
2197}
2198
2199pub fn set_actor_ai_duration(duration: u16) {
2207 unsafe {
2208 raw::rustSetActorAIDuration(duration)
2209 }
2210}
2211
2212pub fn set_actor_ai_repetition(should_repeat: bool) {
2222 unsafe {
2223 raw::rustSetActorAIRepetition(should_repeat)
2224 }
2225}
2226
2227pub fn equip_actor_item(slot: u16, ref_id: &str, count: u16, charge: i16, enchantment_charge: f64) {
2240 unsafe {
2241 raw::rustEquipActorItem(slot, CString::new(ref_id).unwrap_or_default().as_ptr(), count, charge, enchantment_charge)
2242 }
2243}
2244
2245pub fn unequip_actor_item(slot: u16) {
2254 unsafe {
2255 raw::rustUnequipActorItem(slot)
2256 }
2257}
2258
2259pub fn add_actor() {
2269 unsafe {
2270 raw::rustAddActor()
2271 }
2272}
2273
2274pub fn send_actor_list() {
2283 unsafe {
2284 raw::rustSendActorList()
2285 }
2286}
2287
2288pub fn send_actor_authority() {
2300 unsafe {
2301 raw::rustSendActorAuthority()
2302 }
2303}
2304
2305pub fn send_actor_position(send_to_other_visitors: bool, skip_attached_player: bool) {
2317 unsafe {
2318 raw::rustSendActorPosition(send_to_other_visitors, skip_attached_player)
2319 }
2320}
2321
2322pub fn send_actor_stats_dynamic(send_to_other_visitors: bool, skip_attached_player: bool) {
2334 unsafe {
2335 raw::rustSendActorStatsDynamic(send_to_other_visitors, skip_attached_player)
2336 }
2337}
2338
2339pub fn send_actor_equipment(send_to_other_visitors: bool, skip_attached_player: bool) {
2351 unsafe {
2352 raw::rustSendActorEquipment(send_to_other_visitors, skip_attached_player)
2353 }
2354}
2355
2356pub fn send_actor_speech(send_to_other_visitors: bool, skip_attached_player: bool) {
2367 unsafe {
2368 raw::rustSendActorSpeech(send_to_other_visitors, skip_attached_player)
2369 }
2370}
2371
2372pub fn send_actor_ai(send_to_other_visitors: bool, skip_attached_player: bool) {
2383 unsafe {
2384 raw::rustSendActorAI(send_to_other_visitors, skip_attached_player)
2385 }
2386}
2387
2388pub fn send_actor_cell_change(send_to_other_visitors: bool, skip_attached_player: bool) {
2400 unsafe {
2401 raw::rustSendActorCellChange(send_to_other_visitors, skip_attached_player)
2402 }
2403}
2404
2405pub fn read_last_actor_list() {
2406 unsafe {
2407 raw::rustReadLastActorList()
2408 }
2409}
2410
2411pub fn initialize_actor_list(pid: u16) {
2412 unsafe {
2413 raw::rustInitializeActorList(pid)
2414 }
2415}
2416
2417pub fn copy_last_actor_list_to_store() {
2418 unsafe {
2419 raw::rustCopyLastActorListToStore()
2420 }
2421}
2422
2423pub fn get_actor_ref_num_index(index: u16) -> u16 {
2424 unsafe {
2425 raw::rustGetActorRefNumIndex(index)
2426 }
2427}
2428
2429pub fn get_actor_killer_ref_num_index(index: u16) -> u16 {
2430 unsafe {
2431 raw::rustGetActorKillerRefNumIndex(index)
2432 }
2433}
2434
2435pub fn set_actor_ref_num_index(ref_num: i16) {
2436 unsafe {
2437 raw::rustSetActorRefNumIndex(ref_num)
2438 }
2439}
2440
2441pub fn clear_book_changes(pid: u16) {
2451 unsafe {
2452 raw::rustClearBookChanges(pid)
2453 }
2454}
2455
2456pub fn get_book_changes_size(pid: u16) -> u16 {
2464 unsafe {
2465 raw::rustGetBookChangesSize(pid)
2466 }
2467}
2468
2469pub fn add_book(pid: u16, book_id: &str) {
2478 unsafe {
2479 raw::rustAddBook(pid, CString::new(book_id).unwrap_or_default().as_ptr())
2480 }
2481}
2482
2483pub fn get_book_id(pid: u16, index: u16) -> String {
2492 unsafe {
2493 CStr::from_ptr(raw::rustGetBookId(pid, index))
2494 .to_str()
2495 .unwrap_or_default()
2496 .to_string()
2497 }
2498}
2499
2500pub fn send_book_changes(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
2512 unsafe {
2513 raw::rustSendBookChanges(pid, send_to_other_players, skip_attached_player)
2514 }
2515}
2516
2517pub fn initialize_book_changes(pid: u16) {
2518 unsafe {
2519 raw::rustInitializeBookChanges(pid)
2520 }
2521}
2522
2523pub fn get_cell_state_changes_size(pid: u16) -> u16 {
2531 unsafe {
2532 raw::rustGetCellStateChangesSize(pid)
2533 }
2534}
2535
2536pub fn get_cell_state_type(pid: u16, index: u16) -> u16 {
2545 unsafe {
2546 raw::rustGetCellStateType(pid, index)
2547 }
2548}
2549
2550pub fn get_cell_state_description(pid: u16, index: u16) -> String {
2559 unsafe {
2560 CStr::from_ptr(raw::rustGetCellStateDescription(pid, index))
2561 .to_str()
2562 .unwrap_or_default()
2563 .to_string()
2564 }
2565}
2566
2567pub fn get_cell(pid: u16) -> String {
2575 unsafe {
2576 CStr::from_ptr(raw::rustGetCell(pid))
2577 .to_str()
2578 .unwrap_or_default()
2579 .to_string()
2580 }
2581}
2582
2583pub fn get_exterior_x(pid: u16) -> i16 {
2591 unsafe {
2592 raw::rustGetExteriorX(pid)
2593 }
2594}
2595
2596pub fn get_exterior_y(pid: u16) -> i16 {
2604 unsafe {
2605 raw::rustGetExteriorY(pid)
2606 }
2607}
2608
2609pub fn is_in_exterior(pid: u16) -> bool {
2617 unsafe {
2618 raw::rustIsInExterior(pid)
2619 }
2620}
2621
2622pub fn get_region(pid: u16) -> String {
2632 unsafe {
2633 CStr::from_ptr(raw::rustGetRegion(pid))
2634 .to_str()
2635 .unwrap_or_default()
2636 .to_string()
2637 }
2638}
2639
2640pub fn is_changing_region(pid: u16) -> bool {
2648 unsafe {
2649 raw::rustIsChangingRegion(pid)
2650 }
2651}
2652
2653pub fn set_cell(pid: u16, cell_description: &str) {
2668 unsafe {
2669 raw::rustSetCell(pid, CString::new(cell_description).unwrap_or_default().as_ptr())
2670 }
2671}
2672
2673pub fn set_exterior_cell(pid: u16, x: i16, y: i16) {
2686 unsafe {
2687 raw::rustSetExteriorCell(pid, x, y)
2688 }
2689}
2690
2691pub fn send_cell(pid: u16) {
2701 unsafe {
2702 raw::rustSendCell(pid)
2703 }
2704}
2705
2706pub fn get_default_class(pid: u16) -> String {
2714 unsafe {
2715 CStr::from_ptr(raw::rustGetDefaultClass(pid))
2716 .to_str()
2717 .unwrap_or_default()
2718 .to_string()
2719 }
2720}
2721
2722pub fn get_class_name(pid: u16) -> String {
2730 unsafe {
2731 CStr::from_ptr(raw::rustGetClassName(pid))
2732 .to_str()
2733 .unwrap_or_default()
2734 .to_string()
2735 }
2736}
2737
2738pub fn get_class_desc(pid: u16) -> String {
2746 unsafe {
2747 CStr::from_ptr(raw::rustGetClassDesc(pid))
2748 .to_str()
2749 .unwrap_or_default()
2750 .to_string()
2751 }
2752}
2753
2754pub fn get_class_major_attribute(pid: u16, slot: u8) -> i16 {
2763 unsafe {
2764 raw::rustGetClassMajorAttribute(pid, slot)
2765 }
2766}
2767
2768pub fn get_class_specialization(pid: u16) -> i16 {
2776 unsafe {
2777 raw::rustGetClassSpecialization(pid)
2778 }
2779}
2780
2781pub fn get_class_major_skill(pid: u16, slot: u8) -> i16 {
2790 unsafe {
2791 raw::rustGetClassMajorSkill(pid, slot)
2792 }
2793}
2794
2795pub fn get_class_minor_skill(pid: u16, slot: u8) -> i16 {
2804 unsafe {
2805 raw::rustGetClassMinorSkill(pid, slot)
2806 }
2807}
2808
2809pub fn is_class_default(pid: u16) -> i16 {
2817 unsafe {
2818 raw::rustIsClassDefault(pid)
2819 }
2820}
2821
2822pub fn set_default_class(pid: u16, id: &str) {
2833 unsafe {
2834 raw::rustSetDefaultClass(pid, CString::new(id).unwrap_or_default().as_ptr())
2835 }
2836}
2837
2838pub fn set_class_name(pid: u16, name: &str) {
2847 unsafe {
2848 raw::rustSetClassName(pid, CString::new(name).unwrap_or_default().as_ptr())
2849 }
2850}
2851
2852pub fn set_class_desc(pid: u16, desc: &str) {
2861 unsafe {
2862 raw::rustSetClassDesc(pid, CString::new(desc).unwrap_or_default().as_ptr())
2863 }
2864}
2865
2866pub fn set_class_major_attribute(pid: u16, slot: u8, attr_id: i16) {
2876 unsafe {
2877 raw::rustSetClassMajorAttribute(pid, slot, attr_id)
2878 }
2879}
2880
2881pub fn set_class_specialization(pid: u16, spec: i16) {
2890 unsafe {
2891 raw::rustSetClassSpecialization(pid, spec)
2892 }
2893}
2894
2895pub fn set_class_major_skill(pid: u16, slot: u8, skill_id: i16) {
2905 unsafe {
2906 raw::rustSetClassMajorSkill(pid, slot, skill_id)
2907 }
2908}
2909
2910pub fn set_class_minor_skill(pid: u16, slot: u8, skill_id: i16) {
2920 unsafe {
2921 raw::rustSetClassMinorSkill(pid, slot, skill_id)
2922 }
2923}
2924
2925pub fn send_class(pid: u16) {
2935 unsafe {
2936 raw::rustSendClass(pid)
2937 }
2938}
2939
2940pub fn send_message(pid: u16, message: &str, send_to_other_players: bool, skip_attached_player: bool) {
2953 unsafe {
2954 raw::rustSendMessage(pid, CString::new(message).unwrap_or_default().as_ptr(), send_to_other_players, skip_attached_player)
2955 }
2956}
2957
2958pub fn clean_chat_for_pid() {
2965 unsafe {
2966 raw::rustCleanChatForPid()
2967 }
2968}
2969
2970pub fn clean_chat(pid: u16) {
2978 unsafe {
2979 raw::rustCleanChat(pid)
2980 }
2981}
2982
2983pub fn clear_topic_changes(pid: u16) {
2993 unsafe {
2994 raw::rustClearTopicChanges(pid)
2995 }
2996}
2997
2998pub fn get_topic_changes_size(pid: u16) -> u16 {
3006 unsafe {
3007 raw::rustGetTopicChangesSize(pid)
3008 }
3009}
3010
3011pub fn add_topic(pid: u16, topic_id: &str) {
3020 unsafe {
3021 raw::rustAddTopic(pid, CString::new(topic_id).unwrap_or_default().as_ptr())
3022 }
3023}
3024
3025pub fn get_topic_id(pid: u16, index: u16) -> String {
3034 unsafe {
3035 CStr::from_ptr(raw::rustGetTopicId(pid, index))
3036 .to_str()
3037 .unwrap_or_default()
3038 .to_string()
3039 }
3040}
3041
3042pub fn send_topic_changes(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
3054 unsafe {
3055 raw::rustSendTopicChanges(pid, send_to_other_players, skip_attached_player)
3056 }
3057}
3058
3059pub fn play_animation(pid: u16, groupname: &str, mode: i16, count: i16, persist: bool) {
3072 unsafe {
3073 raw::rustPlayAnimation(pid, CString::new(groupname).unwrap_or_default().as_ptr(), mode, count, persist)
3074 }
3075}
3076
3077pub fn play_speech(pid: u16, sound: &str) {
3087 unsafe {
3088 raw::rustPlaySpeech(pid, CString::new(sound).unwrap_or_default().as_ptr())
3089 }
3090}
3091
3092pub fn initialize_topic_changes(pid: u16) {
3093 unsafe {
3094 raw::rustInitializeTopicChanges(pid)
3095 }
3096}
3097
3098pub fn clear_faction_changes(pid: u16) {
3108 unsafe {
3109 raw::rustClearFactionChanges(pid)
3110 }
3111}
3112
3113pub fn get_faction_changes_size(pid: u16) -> u16 {
3121 unsafe {
3122 raw::rustGetFactionChangesSize(pid)
3123 }
3124}
3125
3126pub fn get_faction_changes_action(pid: u16) -> u8 {
3134 unsafe {
3135 raw::rustGetFactionChangesAction(pid)
3136 }
3137}
3138
3139pub fn get_faction_id(pid: u16, index: u16) -> String {
3148 unsafe {
3149 CStr::from_ptr(raw::rustGetFactionId(pid, index))
3150 .to_str()
3151 .unwrap_or_default()
3152 .to_string()
3153 }
3154}
3155
3156pub fn get_faction_rank(pid: u16, index: u16) -> i16 {
3165 unsafe {
3166 raw::rustGetFactionRank(pid, index)
3167 }
3168}
3169
3170pub fn get_faction_expulsion_state(pid: u16, index: u16) -> bool {
3179 unsafe {
3180 raw::rustGetFactionExpulsionState(pid, index)
3181 }
3182}
3183
3184pub fn get_faction_reputation(pid: u16, index: u16) -> i16 {
3193 unsafe {
3194 raw::rustGetFactionReputation(pid, index)
3195 }
3196}
3197
3198pub fn set_faction_changes_action(pid: u16, action: u8) {
3207 unsafe {
3208 raw::rustSetFactionChangesAction(pid, action)
3209 }
3210}
3211
3212pub fn set_faction_id(faction_id: &str) {
3220 unsafe {
3221 raw::rustSetFactionId(CString::new(faction_id).unwrap_or_default().as_ptr())
3222 }
3223}
3224
3225pub fn set_faction_rank(rank: u16) {
3233 unsafe {
3234 raw::rustSetFactionRank(rank)
3235 }
3236}
3237
3238pub fn set_faction_expulsion_state(expulsion_state: bool) {
3246 unsafe {
3247 raw::rustSetFactionExpulsionState(expulsion_state)
3248 }
3249}
3250
3251pub fn set_faction_reputation(reputation: i16) {
3259 unsafe {
3260 raw::rustSetFactionReputation(reputation)
3261 }
3262}
3263
3264pub fn add_faction(pid: u16) {
3275 unsafe {
3276 raw::rustAddFaction(pid)
3277 }
3278}
3279
3280pub fn send_faction_changes(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
3292 unsafe {
3293 raw::rustSendFactionChanges(pid, send_to_other_players, skip_attached_player)
3294 }
3295}
3296
3297pub fn initialize_faction_changes(pid: u16) {
3298 unsafe {
3299 raw::rustInitializeFactionChanges(pid)
3300 }
3301}
3302
3303pub fn custom_message_box(pid: u16, id: i16, label: &str, buttons: &str) {
3315 unsafe {
3316 raw::rustCustomMessageBox(pid, id, CString::new(label).unwrap_or_default().as_ptr(), CString::new(buttons).unwrap_or_default().as_ptr())
3317 }
3318}
3319
3320pub fn input_dialog(pid: u16, id: i16, label: &str, note: &str) {
3331 unsafe {
3332 raw::rustInputDialog(pid, id, CString::new(label).unwrap_or_default().as_ptr(), CString::new(note).unwrap_or_default().as_ptr())
3333 }
3334}
3335
3336pub fn password_dialog(pid: u16, id: i16, label: &str, note: &str) {
3350 unsafe {
3351 raw::rustPasswordDialog(pid, id, CString::new(label).unwrap_or_default().as_ptr(), CString::new(note).unwrap_or_default().as_ptr())
3352 }
3353}
3354
3355pub fn list_box(pid: u16, id: i16, label: &str, items: &str) {
3368 unsafe {
3369 raw::rustListBox(pid, id, CString::new(label).unwrap_or_default().as_ptr(), CString::new(items).unwrap_or_default().as_ptr())
3370 }
3371}
3372
3373pub fn clear_quick_key_changes(pid: u16) {
3383 unsafe {
3384 raw::rustClearQuickKeyChanges(pid)
3385 }
3386}
3387
3388pub fn get_quick_key_changes_size(pid: u16) -> u16 {
3396 unsafe {
3397 raw::rustGetQuickKeyChangesSize(pid)
3398 }
3399}
3400
3401pub fn get_quick_key_slot(pid: u16, index: u16) -> i16 {
3410 unsafe {
3411 raw::rustGetQuickKeySlot(pid, index)
3412 }
3413}
3414
3415pub fn get_quick_key_type(pid: u16, index: u16) -> i16 {
3424 unsafe {
3425 raw::rustGetQuickKeyType(pid, index)
3426 }
3427}
3428
3429pub fn get_quick_key_item_id(pid: u16, index: u16) -> String {
3438 unsafe {
3439 CStr::from_ptr(raw::rustGetQuickKeyItemId(pid, index))
3440 .to_str()
3441 .unwrap_or_default()
3442 .to_string()
3443 }
3444}
3445
3446pub fn add_quick_key(pid: u16, slot: u16, _type: i16, item_id: &str) {
3457 unsafe {
3458 raw::rustAddQuickKey(pid, slot, _type, CString::new(item_id).unwrap_or_default().as_ptr())
3459 }
3460}
3461
3462pub fn send_quick_key_changes(pid: u16) {
3470 unsafe {
3471 raw::rustSendQuickKeyChanges(pid)
3472 }
3473}
3474
3475pub fn set_map_visibility(target_pid: u16, affected_pid: u16, state: u16) {
3487 unsafe {
3488 raw::rustSetMapVisibility(target_pid, affected_pid, state)
3489 }
3490}
3491
3492pub fn set_map_visibility_all(target_pid: u16, state: u16) {
3503 unsafe {
3504 raw::rustSetMapVisibilityAll(target_pid, state)
3505 }
3506}
3507
3508pub fn initialize_quick_key_changes(pid: u16) {
3509 unsafe {
3510 raw::rustInitializeQuickKeyChanges(pid)
3511 }
3512}
3513
3514pub fn clear_inventory_changes(pid: u16) {
3524 unsafe {
3525 raw::rustClearInventoryChanges(pid)
3526 }
3527}
3528
3529pub fn get_equipment_size() -> i16 {
3538 unsafe {
3539 raw::rustGetEquipmentSize()
3540 }
3541}
3542
3543pub fn get_inventory_changes_size(pid: u16) -> u16 {
3551 unsafe {
3552 raw::rustGetInventoryChangesSize(pid)
3553 }
3554}
3555
3556pub fn get_inventory_changes_action(pid: u16) -> u16 {
3564 unsafe {
3565 raw::rustGetInventoryChangesAction(pid)
3566 }
3567}
3568
3569pub fn set_inventory_changes_action(pid: u16, action: u8) {
3578 unsafe {
3579 raw::rustSetInventoryChangesAction(pid, action)
3580 }
3581}
3582
3583pub fn equip_item(pid: u16, slot: u16, ref_id: &str, count: u16, charge: i16, enchantment_charge: f64) {
3596 unsafe {
3597 raw::rustEquipItem(pid, slot, CString::new(ref_id).unwrap_or_default().as_ptr(), count, charge, enchantment_charge)
3598 }
3599}
3600
3601pub fn unequip_item(pid: u16, slot: u16) {
3610 unsafe {
3611 raw::rustUnequipItem(pid, slot)
3612 }
3613}
3614
3615pub fn add_item_change(pid: u16, ref_id: &str, count: u16, charge: i16, enchantment_charge: f64, soul: &str) {
3628 unsafe {
3629 raw::rustAddItemChange(pid, CString::new(ref_id).unwrap_or_default().as_ptr(), count, charge, enchantment_charge, CString::new(soul).unwrap_or_default().as_ptr())
3630 }
3631}
3632
3633pub fn has_item_equipped(pid: u16, ref_id: &str) -> bool {
3642 unsafe {
3643 raw::rustHasItemEquipped(pid, CString::new(ref_id).unwrap_or_default().as_ptr())
3644 }
3645}
3646
3647pub fn get_equipment_item_ref_id(pid: u16, slot: u16) -> String {
3656 unsafe {
3657 CStr::from_ptr(raw::rustGetEquipmentItemRefId(pid, slot))
3658 .to_str()
3659 .unwrap_or_default()
3660 .to_string()
3661 }
3662}
3663
3664pub fn get_equipment_item_count(pid: u16, slot: u16) -> i16 {
3673 unsafe {
3674 raw::rustGetEquipmentItemCount(pid, slot)
3675 }
3676}
3677
3678pub fn get_equipment_item_charge(pid: u16, slot: u16) -> i16 {
3687 unsafe {
3688 raw::rustGetEquipmentItemCharge(pid, slot)
3689 }
3690}
3691
3692pub fn get_equipment_item_enchantment_charge(pid: u16, slot: u16) -> f64 {
3702 unsafe {
3703 raw::rustGetEquipmentItemEnchantmentCharge(pid, slot)
3704 }
3705}
3706
3707pub fn get_inventory_item_ref_id(pid: u16, index: u16) -> String {
3717 unsafe {
3718 CStr::from_ptr(raw::rustGetInventoryItemRefId(pid, index))
3719 .to_str()
3720 .unwrap_or_default()
3721 .to_string()
3722 }
3723}
3724
3725pub fn get_inventory_item_count(pid: u16, index: u16) -> i16 {
3735 unsafe {
3736 raw::rustGetInventoryItemCount(pid, index)
3737 }
3738}
3739
3740pub fn get_inventory_item_charge(pid: u16, index: u16) -> i16 {
3750 unsafe {
3751 raw::rustGetInventoryItemCharge(pid, index)
3752 }
3753}
3754
3755pub fn get_inventory_item_enchantment_charge(pid: u16, index: u16) -> f64 {
3765 unsafe {
3766 raw::rustGetInventoryItemEnchantmentCharge(pid, index)
3767 }
3768}
3769
3770pub fn get_inventory_item_soul(pid: u16, index: u16) -> String {
3780 unsafe {
3781 CStr::from_ptr(raw::rustGetInventoryItemSoul(pid, index))
3782 .to_str()
3783 .unwrap_or_default()
3784 .to_string()
3785 }
3786}
3787
3788pub fn get_used_item_ref_id(pid: u16) -> String {
3796 unsafe {
3797 CStr::from_ptr(raw::rustGetUsedItemRefId(pid))
3798 .to_str()
3799 .unwrap_or_default()
3800 .to_string()
3801 }
3802}
3803
3804pub fn get_used_item_count(pid: u16) -> i16 {
3812 unsafe {
3813 raw::rustGetUsedItemCount(pid)
3814 }
3815}
3816
3817pub fn get_used_item_charge(pid: u16) -> i16 {
3825 unsafe {
3826 raw::rustGetUsedItemCharge(pid)
3827 }
3828}
3829
3830pub fn get_used_item_enchantment_charge(pid: u16) -> f64 {
3838 unsafe {
3839 raw::rustGetUsedItemEnchantmentCharge(pid)
3840 }
3841}
3842
3843pub fn get_used_item_soul(pid: u16) -> String {
3851 unsafe {
3852 CStr::from_ptr(raw::rustGetUsedItemSoul(pid))
3853 .to_str()
3854 .unwrap_or_default()
3855 .to_string()
3856 }
3857}
3858
3859pub fn send_equipment(pid: u16) {
3869 unsafe {
3870 raw::rustSendEquipment(pid)
3871 }
3872}
3873
3874pub fn send_inventory_changes(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
3886 unsafe {
3887 raw::rustSendInventoryChanges(pid, send_to_other_players, skip_attached_player)
3888 }
3889}
3890
3891pub fn send_item_use(pid: u16) {
3899 unsafe {
3900 raw::rustSendItemUse(pid)
3901 }
3902}
3903
3904pub fn initialize_inventory_changes(pid: u16) {
3905 unsafe {
3906 raw::rustInitializeInventoryChanges(pid)
3907 }
3908}
3909
3910pub fn add_item(pid: u16, ref_id: &str, count: u16, charge: i16, enchantment_charge: f64, soul: &str) {
3911 unsafe {
3912 raw::rustAddItem(pid, CString::new(ref_id).unwrap_or_default().as_ptr(), count, charge, enchantment_charge, CString::new(soul).unwrap_or_default().as_ptr())
3913 }
3914}
3915
3916pub fn get_miscellaneous_change_type(pid: u16) -> u8 {
3924 unsafe {
3925 raw::rustGetMiscellaneousChangeType(pid)
3926 }
3927}
3928
3929pub fn get_mark_cell(pid: u16) -> String {
3937 unsafe {
3938 CStr::from_ptr(raw::rustGetMarkCell(pid))
3939 .to_str()
3940 .unwrap_or_default()
3941 .to_string()
3942 }
3943}
3944
3945pub fn get_mark_pos_x(pid: u16) -> f64 {
3953 unsafe {
3954 raw::rustGetMarkPosX(pid)
3955 }
3956}
3957
3958pub fn get_mark_pos_y(pid: u16) -> f64 {
3966 unsafe {
3967 raw::rustGetMarkPosY(pid)
3968 }
3969}
3970
3971pub fn get_mark_pos_z(pid: u16) -> f64 {
3979 unsafe {
3980 raw::rustGetMarkPosZ(pid)
3981 }
3982}
3983
3984pub fn get_mark_rot_x(pid: u16) -> f64 {
3992 unsafe {
3993 raw::rustGetMarkRotX(pid)
3994 }
3995}
3996
3997pub fn get_mark_rot_z(pid: u16) -> f64 {
4005 unsafe {
4006 raw::rustGetMarkRotZ(pid)
4007 }
4008}
4009
4010pub fn get_selected_spell_id(pid: u16) -> String {
4018 unsafe {
4019 CStr::from_ptr(raw::rustGetSelectedSpellId(pid))
4020 .to_str()
4021 .unwrap_or_default()
4022 .to_string()
4023 }
4024}
4025
4026pub fn does_player_have_player_killer(pid: u16) -> bool {
4034 unsafe {
4035 raw::rustDoesPlayerHavePlayerKiller(pid)
4036 }
4037}
4038
4039pub fn get_player_killer_pid(pid: u16) -> i16 {
4047 unsafe {
4048 raw::rustGetPlayerKillerPid(pid)
4049 }
4050}
4051
4052pub fn get_player_killer_ref_id(pid: u16) -> String {
4060 unsafe {
4061 CStr::from_ptr(raw::rustGetPlayerKillerRefId(pid))
4062 .to_str()
4063 .unwrap_or_default()
4064 .to_string()
4065 }
4066}
4067
4068pub fn get_player_killer_ref_num(pid: u16) -> u16 {
4076 unsafe {
4077 raw::rustGetPlayerKillerRefNum(pid)
4078 }
4079}
4080
4081pub fn get_player_killer_mp_num(pid: u16) -> u16 {
4089 unsafe {
4090 raw::rustGetPlayerKillerMpNum(pid)
4091 }
4092}
4093
4094pub fn get_player_killer_name(pid: u16) -> String {
4102 unsafe {
4103 CStr::from_ptr(raw::rustGetPlayerKillerName(pid))
4104 .to_str()
4105 .unwrap_or_default()
4106 .to_string()
4107 }
4108}
4109
4110pub fn get_draw_state(pid: u16) -> u16 {
4119 unsafe {
4120 raw::rustGetDrawState(pid)
4121 }
4122}
4123
4124pub fn get_sneak_state(pid: u16) -> bool {
4132 unsafe {
4133 raw::rustGetSneakState(pid)
4134 }
4135}
4136
4137pub fn set_mark_cell(pid: u16, cell_description: &str) {
4152 unsafe {
4153 raw::rustSetMarkCell(pid, CString::new(cell_description).unwrap_or_default().as_ptr())
4154 }
4155}
4156
4157pub fn set_mark_pos(pid: u16, x: f64, y: f64, z: f64) {
4171 unsafe {
4172 raw::rustSetMarkPos(pid, x, y, z)
4173 }
4174}
4175
4176pub fn set_mark_rot(pid: u16, x: f64, z: f64) {
4189 unsafe {
4190 raw::rustSetMarkRot(pid, x, z)
4191 }
4192}
4193
4194pub fn set_selected_spell_id(pid: u16, spell_id: &str) {
4206 unsafe {
4207 raw::rustSetSelectedSpellId(pid, CString::new(spell_id).unwrap_or_default().as_ptr())
4208 }
4209}
4210
4211pub fn send_mark_location(pid: u16) {
4219 unsafe {
4220 raw::rustSendMarkLocation(pid)
4221 }
4222}
4223
4224pub fn send_selected_spell(pid: u16) {
4232 unsafe {
4233 raw::rustSendSelectedSpell(pid)
4234 }
4235}
4236
4237pub fn jail(pid: u16, jail_days: i16, ignore_jail_teleportation: bool, ignore_jail_skill_increases: bool, jail_progress_text: &str, jail_end_text: &str) {
4259 unsafe {
4260 raw::rustJail(pid, jail_days, ignore_jail_teleportation, ignore_jail_skill_increases, CString::new(jail_progress_text).unwrap_or_default().as_ptr(), CString::new(jail_end_text).unwrap_or_default().as_ptr())
4261 }
4262}
4263
4264pub fn resurrect(pid: u16, _type: u16) {
4276 unsafe {
4277 raw::rustResurrect(pid, _type)
4278 }
4279}
4280
4281pub fn get_death_reason(pid: u16) -> String {
4282 unsafe {
4283 CStr::from_ptr(raw::rustGetDeathReason(pid))
4284 .to_str()
4285 .unwrap_or_default()
4286 .to_string()
4287 }
4288}
4289
4290pub fn get_player_killer_ref_num_index(pid: u16) -> u16 {
4291 unsafe {
4292 raw::rustGetPlayerKillerRefNumIndex(pid)
4293 }
4294}
4295
4296pub fn generate_random_string(length: u16) -> String {
4305 unsafe {
4306 CStr::from_ptr(raw::rustGenerateRandomString(length))
4307 .to_str()
4308 .unwrap_or_default()
4309 .to_string()
4310 }
4311}
4312
4313pub fn get_sha256_hash(input_string: &str) -> String {
4321 unsafe {
4322 CStr::from_ptr(raw::rustGetSHA256Hash(CString::new(input_string).unwrap_or_default().as_ptr()))
4323 .to_str()
4324 .unwrap_or_default()
4325 .to_string()
4326 }
4327}
4328
4329pub fn get_last_player_id() -> u16 {
4339 unsafe {
4340 raw::rustGetLastPlayerId()
4341 }
4342}
4343
4344pub fn get_current_mp_num() -> i16 {
4358 unsafe {
4359 raw::rustGetCurrentMpNum()
4360 }
4361}
4362
4363pub fn set_current_mp_num(mp_num: i16) {
4375 unsafe {
4376 raw::rustSetCurrentMpNum(mp_num)
4377 }
4378}
4379
4380pub fn get_pos_x(pid: u16) -> f64 {
4388 unsafe {
4389 raw::rustGetPosX(pid)
4390 }
4391}
4392
4393pub fn get_pos_y(pid: u16) -> f64 {
4401 unsafe {
4402 raw::rustGetPosY(pid)
4403 }
4404}
4405
4406pub fn get_pos_z(pid: u16) -> f64 {
4414 unsafe {
4415 raw::rustGetPosZ(pid)
4416 }
4417}
4418
4419pub fn get_previous_cell_pos_x(pid: u16) -> f64 {
4427 unsafe {
4428 raw::rustGetPreviousCellPosX(pid)
4429 }
4430}
4431
4432pub fn get_previous_cell_pos_y(pid: u16) -> f64 {
4440 unsafe {
4441 raw::rustGetPreviousCellPosY(pid)
4442 }
4443}
4444
4445pub fn get_previous_cell_pos_z(pid: u16) -> f64 {
4453 unsafe {
4454 raw::rustGetPreviousCellPosZ(pid)
4455 }
4456}
4457
4458pub fn get_rot_x(pid: u16) -> f64 {
4466 unsafe {
4467 raw::rustGetRotX(pid)
4468 }
4469}
4470
4471pub fn get_rot_z(pid: u16) -> f64 {
4479 unsafe {
4480 raw::rustGetRotZ(pid)
4481 }
4482}
4483
4484pub fn set_pos(pid: u16, x: f64, y: f64, z: f64) {
4498 unsafe {
4499 raw::rustSetPos(pid, x, y, z)
4500 }
4501}
4502
4503pub fn set_rot(pid: u16, x: f64, z: f64) {
4518 unsafe {
4519 raw::rustSetRot(pid, x, z)
4520 }
4521}
4522
4523pub fn set_momentum(pid: u16, x: f64, y: f64, z: f64) {
4537 unsafe {
4538 raw::rustSetMomentum(pid, x, y, z)
4539 }
4540}
4541
4542pub fn send_pos(pid: u16) {
4552 unsafe {
4553 raw::rustSendPos(pid)
4554 }
4555}
4556
4557pub fn send_momentum(pid: u16) {
4567 unsafe {
4568 raw::rustSendMomentum(pid)
4569 }
4570}
4571
4572pub fn clear_journal_changes(pid: u16) {
4582 unsafe {
4583 raw::rustClearJournalChanges(pid)
4584 }
4585}
4586
4587pub fn get_journal_changes_size(pid: u16) -> u16 {
4595 unsafe {
4596 raw::rustGetJournalChangesSize(pid)
4597 }
4598}
4599
4600pub fn add_journal_entry(pid: u16, quest: &str, index: u16, actor_ref_id: &str) {
4612 unsafe {
4613 raw::rustAddJournalEntry(pid, CString::new(quest).unwrap_or_default().as_ptr(), index, CString::new(actor_ref_id).unwrap_or_default().as_ptr())
4614 }
4615}
4616
4617pub fn add_journal_entry_with_timestamp(pid: u16, quest: &str, index: u16, actor_ref_id: &str, days_passed: u16, month: u16, day: u16) {
4632 unsafe {
4633 raw::rustAddJournalEntryWithTimestamp(pid, CString::new(quest).unwrap_or_default().as_ptr(), index, CString::new(actor_ref_id).unwrap_or_default().as_ptr(), days_passed, month, day)
4634 }
4635}
4636
4637pub fn add_journal_index(pid: u16, quest: &str, index: u16) {
4647 unsafe {
4648 raw::rustAddJournalIndex(pid, CString::new(quest).unwrap_or_default().as_ptr(), index)
4649 }
4650}
4651
4652pub fn set_reputation(pid: u16, value: i16) {
4661 unsafe {
4662 raw::rustSetReputation(pid, value)
4663 }
4664}
4665
4666pub fn get_journal_item_quest(pid: u16, index: u16) -> String {
4675 unsafe {
4676 CStr::from_ptr(raw::rustGetJournalItemQuest(pid, index))
4677 .to_str()
4678 .unwrap_or_default()
4679 .to_string()
4680 }
4681}
4682
4683pub fn get_journal_item_index(pid: u16, index: u16) -> i16 {
4692 unsafe {
4693 raw::rustGetJournalItemIndex(pid, index)
4694 }
4695}
4696
4697pub fn get_journal_item_type(pid: u16, index: u16) -> i16 {
4706 unsafe {
4707 raw::rustGetJournalItemType(pid, index)
4708 }
4709}
4710
4711pub fn get_journal_item_actor_ref_id(pid: u16, index: u16) -> String {
4722 unsafe {
4723 CStr::from_ptr(raw::rustGetJournalItemActorRefId(pid, index))
4724 .to_str()
4725 .unwrap_or_default()
4726 .to_string()
4727 }
4728}
4729
4730pub fn get_reputation(pid: u16) -> i16 {
4738 unsafe {
4739 raw::rustGetReputation(pid)
4740 }
4741}
4742
4743pub fn send_journal_changes(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
4755 unsafe {
4756 raw::rustSendJournalChanges(pid, send_to_other_players, skip_attached_player)
4757 }
4758}
4759
4760pub fn send_reputation(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
4772 unsafe {
4773 raw::rustSendReputation(pid, send_to_other_players, skip_attached_player)
4774 }
4775}
4776
4777pub fn initialize_journal_changes(pid: u16) {
4778 unsafe {
4779 raw::rustInitializeJournalChanges(pid)
4780 }
4781}
4782
4783pub fn clear_records() {
4790 unsafe {
4791 raw::rustClearRecords()
4792 }
4793}
4794
4795pub fn get_record_type() -> u16 {
4803 unsafe {
4804 raw::rustGetRecordType()
4805 }
4806}
4807
4808pub fn get_record_count() -> u16 {
4815 unsafe {
4816 raw::rustGetRecordCount()
4817 }
4818}
4819
4820pub fn get_record_effect_count(record_index: u16) -> u16 {
4829 unsafe {
4830 raw::rustGetRecordEffectCount(record_index)
4831 }
4832}
4833
4834pub fn get_record_id(index: u16) -> String {
4843 unsafe {
4844 CStr::from_ptr(raw::rustGetRecordId(index))
4845 .to_str()
4846 .unwrap_or_default()
4847 .to_string()
4848 }
4849}
4850
4851pub fn get_record_base_id(index: u16) -> String {
4861 unsafe {
4862 CStr::from_ptr(raw::rustGetRecordBaseId(index))
4863 .to_str()
4864 .unwrap_or_default()
4865 .to_string()
4866 }
4867}
4868
4869pub fn get_record_subtype(index: u16) -> i16 {
4878 unsafe {
4879 raw::rustGetRecordSubtype(index)
4880 }
4881}
4882
4883pub fn get_record_name(index: u16) -> String {
4892 unsafe {
4893 CStr::from_ptr(raw::rustGetRecordName(index))
4894 .to_str()
4895 .unwrap_or_default()
4896 .to_string()
4897 }
4898}
4899
4900pub fn get_record_model(index: u16) -> String {
4909 unsafe {
4910 CStr::from_ptr(raw::rustGetRecordModel(index))
4911 .to_str()
4912 .unwrap_or_default()
4913 .to_string()
4914 }
4915}
4916
4917pub fn get_record_icon(index: u16) -> String {
4926 unsafe {
4927 CStr::from_ptr(raw::rustGetRecordIcon(index))
4928 .to_str()
4929 .unwrap_or_default()
4930 .to_string()
4931 }
4932}
4933
4934pub fn get_record_script(index: u16) -> String {
4943 unsafe {
4944 CStr::from_ptr(raw::rustGetRecordScript(index))
4945 .to_str()
4946 .unwrap_or_default()
4947 .to_string()
4948 }
4949}
4950
4951pub fn get_record_enchantment_id(index: u16) -> String {
4960 unsafe {
4961 CStr::from_ptr(raw::rustGetRecordEnchantmentId(index))
4962 .to_str()
4963 .unwrap_or_default()
4964 .to_string()
4965 }
4966}
4967
4968pub fn get_record_enchantment_charge(index: u16) -> i16 {
4977 unsafe {
4978 raw::rustGetRecordEnchantmentCharge(index)
4979 }
4980}
4981
4982pub fn get_record_auto_calc(index: u16) -> i16 {
4991 unsafe {
4992 raw::rustGetRecordAutoCalc(index)
4993 }
4994}
4995
4996pub fn get_record_charge(index: u16) -> i16 {
5005 unsafe {
5006 raw::rustGetRecordCharge(index)
5007 }
5008}
5009
5010pub fn get_record_cost(index: u16) -> i16 {
5019 unsafe {
5020 raw::rustGetRecordCost(index)
5021 }
5022}
5023
5024pub fn get_record_flags(index: u16) -> i16 {
5033 unsafe {
5034 raw::rustGetRecordFlags(index)
5035 }
5036}
5037
5038pub fn get_record_value(index: u16) -> i16 {
5047 unsafe {
5048 raw::rustGetRecordValue(index)
5049 }
5050}
5051
5052pub fn get_record_weight(index: u16) -> f64 {
5061 unsafe {
5062 raw::rustGetRecordWeight(index)
5063 }
5064}
5065
5066pub fn get_record_effect_id(record_index: u16, effect_index: u16) -> u16 {
5076 unsafe {
5077 raw::rustGetRecordEffectId(record_index, effect_index)
5078 }
5079}
5080
5081pub fn get_record_effect_attribute(record_index: u16, effect_index: u16) -> i16 {
5091 unsafe {
5092 raw::rustGetRecordEffectAttribute(record_index, effect_index)
5093 }
5094}
5095
5096pub fn get_record_effect_skill(record_index: u16, effect_index: u16) -> i16 {
5106 unsafe {
5107 raw::rustGetRecordEffectSkill(record_index, effect_index)
5108 }
5109}
5110
5111pub fn get_record_effect_range_type(record_index: u16, effect_index: u16) -> u16 {
5121 unsafe {
5122 raw::rustGetRecordEffectRangeType(record_index, effect_index)
5123 }
5124}
5125
5126pub fn get_record_effect_area(record_index: u16, effect_index: u16) -> i16 {
5136 unsafe {
5137 raw::rustGetRecordEffectArea(record_index, effect_index)
5138 }
5139}
5140
5141pub fn get_record_effect_duration(record_index: u16, effect_index: u16) -> i16 {
5151 unsafe {
5152 raw::rustGetRecordEffectDuration(record_index, effect_index)
5153 }
5154}
5155
5156pub fn get_record_effect_magnitude_max(record_index: u16, effect_index: u16) -> i16 {
5166 unsafe {
5167 raw::rustGetRecordEffectMagnitudeMax(record_index, effect_index)
5168 }
5169}
5170
5171pub fn get_record_effect_magnitude_min(record_index: u16, effect_index: u16) -> i16 {
5181 unsafe {
5182 raw::rustGetRecordEffectMagnitudeMin(record_index, effect_index)
5183 }
5184}
5185
5186pub fn set_record_type(_type: u16) {
5195 unsafe {
5196 raw::rustSetRecordType(_type)
5197 }
5198}
5199
5200pub fn set_record_id(id: &str) {
5209 unsafe {
5210 raw::rustSetRecordId(CString::new(id).unwrap_or_default().as_ptr())
5211 }
5212}
5213
5214pub fn set_record_base_id(base_id: &str) {
5224 unsafe {
5225 raw::rustSetRecordBaseId(CString::new(base_id).unwrap_or_default().as_ptr())
5226 }
5227}
5228
5229pub fn set_record_inventory_base_id(inventory_base_id: &str) {
5239 unsafe {
5240 raw::rustSetRecordInventoryBaseId(CString::new(inventory_base_id).unwrap_or_default().as_ptr())
5241 }
5242}
5243
5244pub fn set_record_subtype(subtype: u16) {
5253 unsafe {
5254 raw::rustSetRecordSubtype(subtype)
5255 }
5256}
5257
5258pub fn set_record_name(name: &str) {
5267 unsafe {
5268 raw::rustSetRecordName(CString::new(name).unwrap_or_default().as_ptr())
5269 }
5270}
5271
5272pub fn set_record_model(model: &str) {
5281 unsafe {
5282 raw::rustSetRecordModel(CString::new(model).unwrap_or_default().as_ptr())
5283 }
5284}
5285
5286pub fn set_record_icon(icon: &str) {
5295 unsafe {
5296 raw::rustSetRecordIcon(CString::new(icon).unwrap_or_default().as_ptr())
5297 }
5298}
5299
5300pub fn set_record_script(script: &str) {
5309 unsafe {
5310 raw::rustSetRecordScript(CString::new(script).unwrap_or_default().as_ptr())
5311 }
5312}
5313
5314pub fn set_record_enchantment_id(enchantment_id: &str) {
5323 unsafe {
5324 raw::rustSetRecordEnchantmentId(CString::new(enchantment_id).unwrap_or_default().as_ptr())
5325 }
5326}
5327
5328pub fn set_record_enchantment_charge(enchantment_charge: i16) {
5337 unsafe {
5338 raw::rustSetRecordEnchantmentCharge(enchantment_charge)
5339 }
5340}
5341
5342pub fn set_record_auto_calc(auto_calc: i16) {
5351 unsafe {
5352 raw::rustSetRecordAutoCalc(auto_calc)
5353 }
5354}
5355
5356pub fn set_record_charge(charge: i16) {
5365 unsafe {
5366 raw::rustSetRecordCharge(charge)
5367 }
5368}
5369
5370pub fn set_record_cost(cost: i16) {
5379 unsafe {
5380 raw::rustSetRecordCost(cost)
5381 }
5382}
5383
5384pub fn set_record_flags(flags: i16) {
5393 unsafe {
5394 raw::rustSetRecordFlags(flags)
5395 }
5396}
5397
5398pub fn set_record_value(value: i16) {
5407 unsafe {
5408 raw::rustSetRecordValue(value)
5409 }
5410}
5411
5412pub fn set_record_weight(weight: f64) {
5421 unsafe {
5422 raw::rustSetRecordWeight(weight)
5423 }
5424}
5425
5426pub fn set_record_quality(quality: f64) {
5435 unsafe {
5436 raw::rustSetRecordQuality(quality)
5437 }
5438}
5439
5440pub fn set_record_uses(uses: i16) {
5449 unsafe {
5450 raw::rustSetRecordUses(uses)
5451 }
5452}
5453
5454pub fn set_record_time(time: i16) {
5463 unsafe {
5464 raw::rustSetRecordTime(time)
5465 }
5466}
5467
5468pub fn set_record_radius(radius: i16) {
5477 unsafe {
5478 raw::rustSetRecordRadius(radius)
5479 }
5480}
5481
5482pub fn set_record_color(red: u16, green: u16, blue: u16) {
5491 unsafe {
5492 raw::rustSetRecordColor(red, green, blue)
5493 }
5494}
5495
5496pub fn set_record_armor_rating(armor_rating: i16) {
5505 unsafe {
5506 raw::rustSetRecordArmorRating(armor_rating)
5507 }
5508}
5509
5510pub fn set_record_health(health: i16) {
5519 unsafe {
5520 raw::rustSetRecordHealth(health)
5521 }
5522}
5523
5524pub fn set_record_damage_chop(min_damage: u16, max_damage: u16) {
5534 unsafe {
5535 raw::rustSetRecordDamageChop(min_damage, max_damage)
5536 }
5537}
5538
5539pub fn set_record_damage_slash(min_damage: u16, max_damage: u16) {
5549 unsafe {
5550 raw::rustSetRecordDamageSlash(min_damage, max_damage)
5551 }
5552}
5553
5554pub fn set_record_damage_thrust(min_damage: u16, max_damage: u16) {
5564 unsafe {
5565 raw::rustSetRecordDamageThrust(min_damage, max_damage)
5566 }
5567}
5568
5569pub fn set_record_reach(reach: f64) {
5578 unsafe {
5579 raw::rustSetRecordReach(reach)
5580 }
5581}
5582
5583pub fn set_record_speed(speed: f64) {
5592 unsafe {
5593 raw::rustSetRecordSpeed(speed)
5594 }
5595}
5596
5597pub fn set_record_key_state(key_state: bool) {
5608 unsafe {
5609 raw::rustSetRecordKeyState(key_state)
5610 }
5611}
5612
5613pub fn set_record_scroll_state(scroll_state: bool) {
5624 unsafe {
5625 raw::rustSetRecordScrollState(scroll_state)
5626 }
5627}
5628
5629pub fn set_record_skill_id(skill_id: i16) {
5638 unsafe {
5639 raw::rustSetRecordSkillId(skill_id)
5640 }
5641}
5642
5643pub fn set_record_text(text: &str) {
5652 unsafe {
5653 raw::rustSetRecordText(CString::new(text).unwrap_or_default().as_ptr())
5654 }
5655}
5656
5657pub fn set_record_hair(hair: &str) {
5666 unsafe {
5667 raw::rustSetRecordHair(CString::new(hair).unwrap_or_default().as_ptr())
5668 }
5669}
5670
5671pub fn set_record_head(head: &str) {
5680 unsafe {
5681 raw::rustSetRecordHead(CString::new(head).unwrap_or_default().as_ptr())
5682 }
5683}
5684
5685pub fn set_record_gender(gender: u16) {
5694 unsafe {
5695 raw::rustSetRecordGender(gender)
5696 }
5697}
5698
5699pub fn set_record_race(race: &str) {
5708 unsafe {
5709 raw::rustSetRecordRace(CString::new(race).unwrap_or_default().as_ptr())
5710 }
5711}
5712
5713pub fn set_record_class(char_class: &str) {
5722 unsafe {
5723 raw::rustSetRecordClass(CString::new(char_class).unwrap_or_default().as_ptr())
5724 }
5725}
5726
5727pub fn set_record_faction(faction: &str) {
5736 unsafe {
5737 raw::rustSetRecordFaction(CString::new(faction).unwrap_or_default().as_ptr())
5738 }
5739}
5740
5741pub fn set_record_scale(scale: f64) {
5750 unsafe {
5751 raw::rustSetRecordScale(scale)
5752 }
5753}
5754
5755pub fn set_record_blood_type(blood_type: i16) {
5764 unsafe {
5765 raw::rustSetRecordBloodType(blood_type)
5766 }
5767}
5768
5769pub fn set_record_level(level: i16) {
5778 unsafe {
5779 raw::rustSetRecordLevel(level)
5780 }
5781}
5782
5783pub fn set_record_magicka(magicka: i16) {
5792 unsafe {
5793 raw::rustSetRecordMagicka(magicka)
5794 }
5795}
5796
5797pub fn set_record_fatigue(fatigue: i16) {
5806 unsafe {
5807 raw::rustSetRecordFatigue(fatigue)
5808 }
5809}
5810
5811pub fn set_record_ai_fight(ai_fight: i16) {
5820 unsafe {
5821 raw::rustSetRecordAIFight(ai_fight)
5822 }
5823}
5824
5825pub fn set_record_ai_flee(ai_flee: i16) {
5834 unsafe {
5835 raw::rustSetRecordAIFlee(ai_flee)
5836 }
5837}
5838
5839pub fn set_record_ai_alarm(ai_alarm: i16) {
5848 unsafe {
5849 raw::rustSetRecordAIAlarm(ai_alarm)
5850 }
5851}
5852
5853pub fn set_record_ai_services(ai_services: i16) {
5862 unsafe {
5863 raw::rustSetRecordAIServices(ai_services)
5864 }
5865}
5866
5867pub fn set_record_sound(sound: &str) {
5876 unsafe {
5877 raw::rustSetRecordSound(CString::new(sound).unwrap_or_default().as_ptr())
5878 }
5879}
5880
5881pub fn set_record_open_sound(sound: &str) {
5890 unsafe {
5891 raw::rustSetRecordOpenSound(CString::new(sound).unwrap_or_default().as_ptr())
5892 }
5893}
5894
5895pub fn set_record_close_sound(sound: &str) {
5904 unsafe {
5905 raw::rustSetRecordCloseSound(CString::new(sound).unwrap_or_default().as_ptr())
5906 }
5907}
5908
5909pub fn set_record_script_text(script_text: &str) {
5918 unsafe {
5919 raw::rustSetRecordScriptText(CString::new(script_text).unwrap_or_default().as_ptr())
5920 }
5921}
5922
5923pub fn set_record_id_by_index(index: u16, id: &str) {
5935 unsafe {
5936 raw::rustSetRecordIdByIndex(index, CString::new(id).unwrap_or_default().as_ptr())
5937 }
5938}
5939
5940pub fn set_record_enchantment_id_by_index(index: u16, enchantment_id: &str) {
5953 unsafe {
5954 raw::rustSetRecordEnchantmentIdByIndex(index, CString::new(enchantment_id).unwrap_or_default().as_ptr())
5955 }
5956}
5957
5958pub fn set_record_effect_id(effect_id: u16) {
5966 unsafe {
5967 raw::rustSetRecordEffectId(effect_id)
5968 }
5969}
5970
5971pub fn set_record_effect_attribute(attribute_id: i16) {
5980 unsafe {
5981 raw::rustSetRecordEffectAttribute(attribute_id)
5982 }
5983}
5984
5985pub fn set_record_effect_skill(skill_id: i16) {
5994 unsafe {
5995 raw::rustSetRecordEffectSkill(skill_id)
5996 }
5997}
5998
5999pub fn set_record_effect_range_type(range_type: u16) {
6008 unsafe {
6009 raw::rustSetRecordEffectRangeType(range_type)
6010 }
6011}
6012
6013pub fn set_record_effect_area(area: i16) {
6021 unsafe {
6022 raw::rustSetRecordEffectArea(area)
6023 }
6024}
6025
6026pub fn set_record_effect_duration(duration: i16) {
6034 unsafe {
6035 raw::rustSetRecordEffectDuration(duration)
6036 }
6037}
6038
6039pub fn set_record_effect_magnitude_max(magnitude_max: i16) {
6047 unsafe {
6048 raw::rustSetRecordEffectMagnitudeMax(magnitude_max)
6049 }
6050}
6051
6052pub fn set_record_effect_magnitude_min(magnitude_min: i16) {
6060 unsafe {
6061 raw::rustSetRecordEffectMagnitudeMin(magnitude_min)
6062 }
6063}
6064
6065pub fn set_record_body_part_type(part_type: u16) {
6073 unsafe {
6074 raw::rustSetRecordBodyPartType(part_type)
6075 }
6076}
6077
6078pub fn set_record_body_part_id_for_male(part_id: &str) {
6087 unsafe {
6088 raw::rustSetRecordBodyPartIdForMale(CString::new(part_id).unwrap_or_default().as_ptr())
6089 }
6090}
6091
6092pub fn set_record_body_part_id_for_female(part_id: &str) {
6101 unsafe {
6102 raw::rustSetRecordBodyPartIdForFemale(CString::new(part_id).unwrap_or_default().as_ptr())
6103 }
6104}
6105
6106pub fn set_record_inventory_item_id(item_id: &str) {
6114 unsafe {
6115 raw::rustSetRecordInventoryItemId(CString::new(item_id).unwrap_or_default().as_ptr())
6116 }
6117}
6118
6119pub fn set_record_inventory_item_count(count: u16) {
6127 unsafe {
6128 raw::rustSetRecordInventoryItemCount(count)
6129 }
6130}
6131
6132pub fn add_record() {
6143 unsafe {
6144 raw::rustAddRecord()
6145 }
6146}
6147
6148pub fn add_record_effect() {
6159 unsafe {
6160 raw::rustAddRecordEffect()
6161 }
6162}
6163
6164pub fn add_record_body_part() {
6175 unsafe {
6176 raw::rustAddRecordBodyPart()
6177 }
6178}
6179
6180pub fn add_record_inventory_item() {
6194 unsafe {
6195 raw::rustAddRecordInventoryItem()
6196 }
6197}
6198
6199pub fn send_record_dynamic(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
6211 unsafe {
6212 raw::rustSendRecordDynamic(pid, send_to_other_players, skip_attached_player)
6213 }
6214}
6215
6216pub fn get_scale(pid: u16) -> f64 {
6224 unsafe {
6225 raw::rustGetScale(pid)
6226 }
6227}
6228
6229pub fn is_werewolf(pid: u16) -> bool {
6239 unsafe {
6240 raw::rustIsWerewolf(pid)
6241 }
6242}
6243
6244pub fn get_creature_ref_id(pid: u16) -> String {
6252 unsafe {
6253 CStr::from_ptr(raw::rustGetCreatureRefId(pid))
6254 .to_str()
6255 .unwrap_or_default()
6256 .to_string()
6257 }
6258}
6259
6260pub fn get_creature_name_display_state(pid: u16) -> bool {
6271 unsafe {
6272 raw::rustGetCreatureNameDisplayState(pid)
6273 }
6274}
6275
6276pub fn set_scale(pid: u16, scale: f64) {
6288 unsafe {
6289 raw::rustSetScale(pid, scale)
6290 }
6291}
6292
6293pub fn set_werewolf_state(pid: u16, is_werewolf: bool) {
6305 unsafe {
6306 raw::rustSetWerewolfState(pid, is_werewolf)
6307 }
6308}
6309
6310pub fn set_creature_ref_id(pid: u16, ref_id: &str) {
6324 unsafe {
6325 raw::rustSetCreatureRefId(pid, CString::new(ref_id).unwrap_or_default().as_ptr())
6326 }
6327}
6328
6329pub fn set_creature_name_display_state(pid: u16, display_state: bool) {
6339 unsafe {
6340 raw::rustSetCreatureNameDisplayState(pid, display_state)
6341 }
6342}
6343
6344pub fn send_shapeshift(pid: u16) {
6355 unsafe {
6356 raw::rustSendShapeshift(pid)
6357 }
6358}
6359
6360pub fn log_message(level: u16, message: &str) {
6372 unsafe {
6373 raw::rustLogMessage(level, CString::new(message).unwrap_or_default().as_ptr())
6374 }
6375}
6376
6377pub fn log_append(level: u16, message: &str) {
6389 unsafe {
6390 raw::rustLogAppend(level, CString::new(message).unwrap_or_default().as_ptr())
6391 }
6392}
6393
6394pub fn stop_server(code: i16) {
6402 unsafe {
6403 raw::rustStopServer(code)
6404 }
6405}
6406
6407pub fn kick(pid: u16) {
6415 unsafe {
6416 raw::rustKick(pid)
6417 }
6418}
6419
6420pub fn ban_address(ip_address: &str) {
6428 unsafe {
6429 raw::rustBanAddress(CString::new(ip_address).unwrap_or_default().as_ptr())
6430 }
6431}
6432
6433pub fn unban_address(ip_address: &str) {
6441 unsafe {
6442 raw::rustUnbanAddress(CString::new(ip_address).unwrap_or_default().as_ptr())
6443 }
6444}
6445
6446pub fn does_file_path_exist(file_path: &str) -> bool {
6457 unsafe {
6458 raw::rustDoesFilePathExist(CString::new(file_path).unwrap_or_default().as_ptr())
6459 }
6460}
6461
6462pub fn get_case_insensitive_filename(folder_path: &str, filename: &str) -> String {
6472 unsafe {
6473 CStr::from_ptr(raw::rustGetCaseInsensitiveFilename(CString::new(folder_path).unwrap_or_default().as_ptr(), CString::new(filename).unwrap_or_default().as_ptr()))
6474 .to_str()
6475 .unwrap_or_default()
6476 .to_string()
6477 }
6478}
6479
6480pub fn get_data_path() -> String {
6487 unsafe {
6488 CStr::from_ptr(raw::rustGetDataPath())
6489 .to_str()
6490 .unwrap_or_default()
6491 .to_string()
6492 }
6493}
6494
6495pub fn get_milliseconds_since_server_start() -> u16 {
6502 unsafe {
6503 raw::rustGetMillisecondsSinceServerStart()
6504 }
6505}
6506
6507pub fn get_operating_system_type() -> String {
6516 unsafe {
6517 CStr::from_ptr(raw::rustGetOperatingSystemType())
6518 .to_str()
6519 .unwrap_or_default()
6520 .to_string()
6521 }
6522}
6523
6524pub fn get_architecture_type() -> String {
6533 unsafe {
6534 CStr::from_ptr(raw::rustGetArchitectureType())
6535 .to_str()
6536 .unwrap_or_default()
6537 .to_string()
6538 }
6539}
6540
6541pub fn get_server_version() -> String {
6548 unsafe {
6549 CStr::from_ptr(raw::rustGetServerVersion())
6550 .to_str()
6551 .unwrap_or_default()
6552 .to_string()
6553 }
6554}
6555
6556pub fn get_protocol_version() -> String {
6563 unsafe {
6564 CStr::from_ptr(raw::rustGetProtocolVersion())
6565 .to_str()
6566 .unwrap_or_default()
6567 .to_string()
6568 }
6569}
6570
6571pub fn get_avg_ping(pid: u16) -> i16 {
6579 unsafe {
6580 raw::rustGetAvgPing(pid)
6581 }
6582}
6583
6584pub fn get_ip(pid: u16) -> String {
6592 unsafe {
6593 CStr::from_ptr(raw::rustGetIP(pid))
6594 .to_str()
6595 .unwrap_or_default()
6596 .to_string()
6597 }
6598}
6599
6600pub fn get_max_players() -> u16 {
6607 unsafe {
6608 raw::rustGetMaxPlayers()
6609 }
6610}
6611
6612pub fn get_port() -> u16 {
6619 unsafe {
6620 raw::rustGetPort()
6621 }
6622}
6623
6624pub fn has_password() -> bool {
6630 unsafe {
6631 raw::rustHasPassword()
6632 }
6633}
6634
6635pub fn get_data_file_enforcement_state() -> bool {
6644 unsafe {
6645 raw::rustGetDataFileEnforcementState()
6646 }
6647}
6648
6649pub fn get_script_error_ignoring_state() -> bool {
6658 unsafe {
6659 raw::rustGetScriptErrorIgnoringState()
6660 }
6661}
6662
6663pub fn set_game_mode(game_mode: &str) {
6671 unsafe {
6672 raw::rustSetGameMode(CString::new(game_mode).unwrap_or_default().as_ptr())
6673 }
6674}
6675
6676pub fn set_hostname(name: &str) {
6684 unsafe {
6685 raw::rustSetHostname(CString::new(name).unwrap_or_default().as_ptr())
6686 }
6687}
6688
6689pub fn set_server_password(password: &str) {
6697 unsafe {
6698 raw::rustSetServerPassword(CString::new(password).unwrap_or_default().as_ptr())
6699 }
6700}
6701
6702pub fn set_data_file_enforcement_state(state: bool) {
6712 unsafe {
6713 raw::rustSetDataFileEnforcementState(state)
6714 }
6715}
6716
6717pub fn set_script_error_ignoring_state(state: bool) {
6729 unsafe {
6730 raw::rustSetScriptErrorIgnoringState(state)
6731 }
6732}
6733
6734pub fn set_rule_string(key: &str, value: &str) {
6743 unsafe {
6744 raw::rustSetRuleString(CString::new(key).unwrap_or_default().as_ptr(), CString::new(value).unwrap_or_default().as_ptr())
6745 }
6746}
6747
6748pub fn set_rule_value(key: &str, value: f64) {
6757 unsafe {
6758 raw::rustSetRuleValue(CString::new(key).unwrap_or_default().as_ptr(), value)
6759 }
6760}
6761
6762pub fn add_data_file_requirement(data_filename: &str, checksum_string: &str) {
6775 unsafe {
6776 raw::rustAddDataFileRequirement(CString::new(data_filename).unwrap_or_default().as_ptr(), CString::new(checksum_string).unwrap_or_default().as_ptr())
6777 }
6778}
6779
6780pub fn does_file_exist(file_path: &str) -> bool {
6781 unsafe {
6782 raw::rustDoesFileExist(CString::new(file_path).unwrap_or_default().as_ptr())
6783 }
6784}
6785
6786pub fn get_mod_dir() -> String {
6787 unsafe {
6788 CStr::from_ptr(raw::rustGetModDir())
6789 .to_str()
6790 .unwrap_or_default()
6791 .to_string()
6792 }
6793}
6794
6795pub fn get_plugin_enforcement_state() -> bool {
6796 unsafe {
6797 raw::rustGetPluginEnforcementState()
6798 }
6799}
6800
6801pub fn set_plugin_enforcement_state(state: bool) {
6802 unsafe {
6803 raw::rustSetPluginEnforcementState(state)
6804 }
6805}
6806
6807pub fn add_plugin_hash(plugin_name: &str, checksum_string: &str) {
6808 unsafe {
6809 raw::rustAddPluginHash(CString::new(plugin_name).unwrap_or_default().as_ptr(), CString::new(checksum_string).unwrap_or_default().as_ptr())
6810 }
6811}
6812
6813pub fn set_difficulty(pid: u16, difficulty: i16) {
6825 unsafe {
6826 raw::rustSetDifficulty(pid, difficulty)
6827 }
6828}
6829
6830pub fn set_enforced_log_level(pid: u16, enforced_log_level: i16) {
6848 unsafe {
6849 raw::rustSetEnforcedLogLevel(pid, enforced_log_level)
6850 }
6851}
6852
6853pub fn set_physics_framerate(pid: u16, physics_framerate: f64) {
6865 unsafe {
6866 raw::rustSetPhysicsFramerate(pid, physics_framerate)
6867 }
6868}
6869
6870pub fn set_console_allowed(pid: u16, state: bool) {
6882 unsafe {
6883 raw::rustSetConsoleAllowed(pid, state)
6884 }
6885}
6886
6887pub fn set_bed_rest_allowed(pid: u16, state: bool) {
6899 unsafe {
6900 raw::rustSetBedRestAllowed(pid, state)
6901 }
6902}
6903
6904pub fn set_wilderness_rest_allowed(pid: u16, state: bool) {
6916 unsafe {
6917 raw::rustSetWildernessRestAllowed(pid, state)
6918 }
6919}
6920
6921pub fn set_wait_allowed(pid: u16, state: bool) {
6933 unsafe {
6934 raw::rustSetWaitAllowed(pid, state)
6935 }
6936}
6937
6938pub fn send_settings(pid: u16) {
6946 unsafe {
6947 raw::rustSendSettings(pid)
6948 }
6949}
6950
6951pub fn clear_spellbook_changes(pid: u16) {
6961 unsafe {
6962 raw::rustClearSpellbookChanges(pid)
6963 }
6964}
6965
6966pub fn get_spellbook_changes_size(pid: u16) -> u16 {
6974 unsafe {
6975 raw::rustGetSpellbookChangesSize(pid)
6976 }
6977}
6978
6979pub fn get_spellbook_changes_action(pid: u16) -> u16 {
6987 unsafe {
6988 raw::rustGetSpellbookChangesAction(pid)
6989 }
6990}
6991
6992pub fn set_spellbook_changes_action(pid: u16, action: u8) {
7001 unsafe {
7002 raw::rustSetSpellbookChangesAction(pid, action)
7003 }
7004}
7005
7006pub fn add_spell(pid: u16, spell_id: &str) {
7015 unsafe {
7016 raw::rustAddSpell(pid, CString::new(spell_id).unwrap_or_default().as_ptr())
7017 }
7018}
7019
7020pub fn get_spell_id(pid: u16, index: u16) -> String {
7029 unsafe {
7030 CStr::from_ptr(raw::rustGetSpellId(pid, index))
7031 .to_str()
7032 .unwrap_or_default()
7033 .to_string()
7034 }
7035}
7036
7037pub fn send_spellbook_changes(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
7049 unsafe {
7050 raw::rustSendSpellbookChanges(pid, send_to_other_players, skip_attached_player)
7051 }
7052}
7053
7054pub fn initialize_spellbook_changes(pid: u16) {
7055 unsafe {
7056 raw::rustInitializeSpellbookChanges(pid)
7057 }
7058}
7059
7060pub fn get_attribute_count() -> i16 {
7069 unsafe {
7070 raw::rustGetAttributeCount()
7071 }
7072}
7073
7074pub fn get_skill_count() -> i16 {
7083 unsafe {
7084 raw::rustGetSkillCount()
7085 }
7086}
7087
7088pub fn get_attribute_id(name: &str) -> i16 {
7098 unsafe {
7099 raw::rustGetAttributeId(CString::new(name).unwrap_or_default().as_ptr())
7100 }
7101}
7102
7103pub fn get_skill_id(name: &str) -> i16 {
7113 unsafe {
7114 raw::rustGetSkillId(CString::new(name).unwrap_or_default().as_ptr())
7115 }
7116}
7117
7118pub fn get_attribute_name(attribute_id: u16) -> String {
7128 unsafe {
7129 CStr::from_ptr(raw::rustGetAttributeName(attribute_id))
7130 .to_str()
7131 .unwrap_or_default()
7132 .to_string()
7133 }
7134}
7135
7136pub fn get_skill_name(skill_id: u16) -> String {
7146 unsafe {
7147 CStr::from_ptr(raw::rustGetSkillName(skill_id))
7148 .to_str()
7149 .unwrap_or_default()
7150 .to_string()
7151 }
7152}
7153
7154pub fn get_name(pid: u16) -> String {
7162 unsafe {
7163 CStr::from_ptr(raw::rustGetName(pid))
7164 .to_str()
7165 .unwrap_or_default()
7166 .to_string()
7167 }
7168}
7169
7170pub fn get_race(pid: u16) -> String {
7178 unsafe {
7179 CStr::from_ptr(raw::rustGetRace(pid))
7180 .to_str()
7181 .unwrap_or_default()
7182 .to_string()
7183 }
7184}
7185
7186pub fn get_head(pid: u16) -> String {
7194 unsafe {
7195 CStr::from_ptr(raw::rustGetHead(pid))
7196 .to_str()
7197 .unwrap_or_default()
7198 .to_string()
7199 }
7200}
7201
7202pub fn get_hair(pid: u16) -> String {
7210 unsafe {
7211 CStr::from_ptr(raw::rustGetHair(pid))
7212 .to_str()
7213 .unwrap_or_default()
7214 .to_string()
7215 }
7216}
7217
7218pub fn get_is_male(pid: u16) -> i16 {
7226 unsafe {
7227 raw::rustGetIsMale(pid)
7228 }
7229}
7230
7231pub fn get_birthsign(pid: u16) -> String {
7239 unsafe {
7240 CStr::from_ptr(raw::rustGetBirthsign(pid))
7241 .to_str()
7242 .unwrap_or_default()
7243 .to_string()
7244 }
7245}
7246
7247pub fn get_level(pid: u16) -> i16 {
7255 unsafe {
7256 raw::rustGetLevel(pid)
7257 }
7258}
7259
7260pub fn get_level_progress(pid: u16) -> i16 {
7268 unsafe {
7269 raw::rustGetLevelProgress(pid)
7270 }
7271}
7272
7273pub fn get_health_base(pid: u16) -> f64 {
7281 unsafe {
7282 raw::rustGetHealthBase(pid)
7283 }
7284}
7285
7286pub fn get_health_current(pid: u16) -> f64 {
7294 unsafe {
7295 raw::rustGetHealthCurrent(pid)
7296 }
7297}
7298
7299pub fn get_magicka_base(pid: u16) -> f64 {
7307 unsafe {
7308 raw::rustGetMagickaBase(pid)
7309 }
7310}
7311
7312pub fn get_magicka_current(pid: u16) -> f64 {
7320 unsafe {
7321 raw::rustGetMagickaCurrent(pid)
7322 }
7323}
7324
7325pub fn get_fatigue_base(pid: u16) -> f64 {
7333 unsafe {
7334 raw::rustGetFatigueBase(pid)
7335 }
7336}
7337
7338pub fn get_fatigue_current(pid: u16) -> f64 {
7346 unsafe {
7347 raw::rustGetFatigueCurrent(pid)
7348 }
7349}
7350
7351pub fn get_attribute_base(pid: u16, attribute_id: u16) -> i16 {
7360 unsafe {
7361 raw::rustGetAttributeBase(pid, attribute_id)
7362 }
7363}
7364
7365pub fn get_attribute_modifier(pid: u16, attribute_id: u16) -> i16 {
7374 unsafe {
7375 raw::rustGetAttributeModifier(pid, attribute_id)
7376 }
7377}
7378
7379pub fn get_attribute_damage(pid: u16, attribute_id: u16) -> f64 {
7389 unsafe {
7390 raw::rustGetAttributeDamage(pid, attribute_id)
7391 }
7392}
7393
7394pub fn get_skill_base(pid: u16, skill_id: u16) -> i16 {
7403 unsafe {
7404 raw::rustGetSkillBase(pid, skill_id)
7405 }
7406}
7407
7408pub fn get_skill_modifier(pid: u16, skill_id: u16) -> i16 {
7417 unsafe {
7418 raw::rustGetSkillModifier(pid, skill_id)
7419 }
7420}
7421
7422pub fn get_skill_damage(pid: u16, skill_id: u16) -> f64 {
7432 unsafe {
7433 raw::rustGetSkillDamage(pid, skill_id)
7434 }
7435}
7436
7437pub fn get_skill_progress(pid: u16, skill_id: u16) -> f64 {
7446 unsafe {
7447 raw::rustGetSkillProgress(pid, skill_id)
7448 }
7449}
7450
7451pub fn get_skill_increase(pid: u16, attribute_id: u16) -> i16 {
7463 unsafe {
7464 raw::rustGetSkillIncrease(pid, attribute_id)
7465 }
7466}
7467
7468pub fn get_bounty(pid: u16) -> i16 {
7476 unsafe {
7477 raw::rustGetBounty(pid)
7478 }
7479}
7480
7481pub fn set_name(pid: u16, name: &str) {
7490 unsafe {
7491 raw::rustSetName(pid, CString::new(name).unwrap_or_default().as_ptr())
7492 }
7493}
7494
7495pub fn set_race(pid: u16, race: &str) {
7504 unsafe {
7505 raw::rustSetRace(pid, CString::new(race).unwrap_or_default().as_ptr())
7506 }
7507}
7508
7509pub fn set_head(pid: u16, head: &str) {
7518 unsafe {
7519 raw::rustSetHead(pid, CString::new(head).unwrap_or_default().as_ptr())
7520 }
7521}
7522
7523pub fn set_hair(pid: u16, hairstyle: &str) {
7532 unsafe {
7533 raw::rustSetHair(pid, CString::new(hairstyle).unwrap_or_default().as_ptr())
7534 }
7535}
7536
7537pub fn set_is_male(pid: u16, state: i16) {
7546 unsafe {
7547 raw::rustSetIsMale(pid, state)
7548 }
7549}
7550
7551pub fn set_birthsign(pid: u16, name: &str) {
7560 unsafe {
7561 raw::rustSetBirthsign(pid, CString::new(name).unwrap_or_default().as_ptr())
7562 }
7563}
7564
7565pub fn set_reset_stats(pid: u16, reset_stats: bool) {
7578 unsafe {
7579 raw::rustSetResetStats(pid, reset_stats)
7580 }
7581}
7582
7583pub fn set_level(pid: u16, value: i16) {
7592 unsafe {
7593 raw::rustSetLevel(pid, value)
7594 }
7595}
7596
7597pub fn set_level_progress(pid: u16, value: i16) {
7606 unsafe {
7607 raw::rustSetLevelProgress(pid, value)
7608 }
7609}
7610
7611pub fn set_health_base(pid: u16, value: f64) {
7620 unsafe {
7621 raw::rustSetHealthBase(pid, value)
7622 }
7623}
7624
7625pub fn set_health_current(pid: u16, value: f64) {
7634 unsafe {
7635 raw::rustSetHealthCurrent(pid, value)
7636 }
7637}
7638
7639pub fn set_magicka_base(pid: u16, value: f64) {
7648 unsafe {
7649 raw::rustSetMagickaBase(pid, value)
7650 }
7651}
7652
7653pub fn set_magicka_current(pid: u16, value: f64) {
7662 unsafe {
7663 raw::rustSetMagickaCurrent(pid, value)
7664 }
7665}
7666
7667pub fn set_fatigue_base(pid: u16, value: f64) {
7676 unsafe {
7677 raw::rustSetFatigueBase(pid, value)
7678 }
7679}
7680
7681pub fn set_fatigue_current(pid: u16, value: f64) {
7690 unsafe {
7691 raw::rustSetFatigueCurrent(pid, value)
7692 }
7693}
7694
7695pub fn set_attribute_base(pid: u16, attribute_id: u16, value: i16) {
7705 unsafe {
7706 raw::rustSetAttributeBase(pid, attribute_id, value)
7707 }
7708}
7709
7710pub fn clear_attribute_modifier(pid: u16, attribute_id: u16) {
7724 unsafe {
7725 raw::rustClearAttributeModifier(pid, attribute_id)
7726 }
7727}
7728
7729pub fn set_attribute_damage(pid: u16, attribute_id: u16, value: f64) {
7740 unsafe {
7741 raw::rustSetAttributeDamage(pid, attribute_id, value)
7742 }
7743}
7744
7745pub fn set_skill_base(pid: u16, skill_id: u16, value: i16) {
7755 unsafe {
7756 raw::rustSetSkillBase(pid, skill_id, value)
7757 }
7758}
7759
7760pub fn clear_skill_modifier(pid: u16, skill_id: u16) {
7774 unsafe {
7775 raw::rustClearSkillModifier(pid, skill_id)
7776 }
7777}
7778
7779pub fn set_skill_damage(pid: u16, skill_id: u16, value: f64) {
7790 unsafe {
7791 raw::rustSetSkillDamage(pid, skill_id, value)
7792 }
7793}
7794
7795pub fn set_skill_progress(pid: u16, skill_id: u16, value: f64) {
7805 unsafe {
7806 raw::rustSetSkillProgress(pid, skill_id, value)
7807 }
7808}
7809
7810pub fn set_skill_increase(pid: u16, attribute_id: u16, value: i16) {
7823 unsafe {
7824 raw::rustSetSkillIncrease(pid, attribute_id, value)
7825 }
7826}
7827
7828pub fn set_bounty(pid: u16, value: i16) {
7837 unsafe {
7838 raw::rustSetBounty(pid, value)
7839 }
7840}
7841
7842pub fn set_char_gen_stage(pid: u16, current_stage: i16, end_stage: i16) {
7854 unsafe {
7855 raw::rustSetCharGenStage(pid, current_stage, end_stage)
7856 }
7857}
7858
7859pub fn send_base_info(pid: u16) {
7870 unsafe {
7871 raw::rustSendBaseInfo(pid)
7872 }
7873}
7874
7875pub fn send_stats_dynamic(pid: u16) {
7886 unsafe {
7887 raw::rustSendStatsDynamic(pid)
7888 }
7889}
7890
7891pub fn send_attributes(pid: u16) {
7903 unsafe {
7904 raw::rustSendAttributes(pid)
7905 }
7906}
7907
7908pub fn send_skills(pid: u16) {
7918 unsafe {
7919 raw::rustSendSkills(pid)
7920 }
7921}
7922
7923pub fn send_level(pid: u16) {
7934 unsafe {
7935 raw::rustSendLevel(pid)
7936 }
7937}
7938
7939pub fn send_bounty(pid: u16) {
7949 unsafe {
7950 raw::rustSendBounty(pid)
7951 }
7952}
7953
7954pub fn read_received_object_list() {
7961 unsafe {
7962 raw::rustReadReceivedObjectList()
7963 }
7964}
7965
7966pub fn clear_object_list() {
7973 unsafe {
7974 raw::rustClearObjectList()
7975 }
7976}
7977
7978pub fn set_object_list_pid(pid: u16) {
7986 unsafe {
7987 raw::rustSetObjectListPid(pid)
7988 }
7989}
7990
7991pub fn copy_received_object_list_to_store() {
8000 unsafe {
8001 raw::rustCopyReceivedObjectListToStore()
8002 }
8003}
8004
8005pub fn get_object_list_size() -> u16 {
8012 unsafe {
8013 raw::rustGetObjectListSize()
8014 }
8015}
8016
8017pub fn get_object_list_origin() -> u8 {
8026 unsafe {
8027 raw::rustGetObjectListOrigin()
8028 }
8029}
8030
8031pub fn get_object_list_client_script() -> String {
8040 unsafe {
8041 CStr::from_ptr(raw::rustGetObjectListClientScript())
8042 .to_str()
8043 .unwrap_or_default()
8044 .to_string()
8045 }
8046}
8047
8048pub fn get_object_list_action() -> u8 {
8055 unsafe {
8056 raw::rustGetObjectListAction()
8057 }
8058}
8059
8060pub fn get_object_list_container_sub_action() -> u8 {
8067 unsafe {
8068 raw::rustGetObjectListContainerSubAction()
8069 }
8070}
8071
8072pub fn is_object_player(index: u16) -> bool {
8085 unsafe {
8086 raw::rustIsObjectPlayer(index)
8087 }
8088}
8089
8090pub fn get_object_pid(index: u16) -> i16 {
8102 unsafe {
8103 raw::rustGetObjectPid(index)
8104 }
8105}
8106
8107pub fn get_object_ref_id(index: u16) -> String {
8115 unsafe {
8116 CStr::from_ptr(raw::rustGetObjectRefId(index))
8117 .to_str()
8118 .unwrap_or_default()
8119 .to_string()
8120 }
8121}
8122
8123pub fn get_object_ref_num(index: u16) -> u16 {
8131 unsafe {
8132 raw::rustGetObjectRefNum(index)
8133 }
8134}
8135
8136pub fn get_object_mp_num(index: u16) -> u16 {
8144 unsafe {
8145 raw::rustGetObjectMpNum(index)
8146 }
8147}
8148
8149pub fn get_object_count(index: u16) -> i16 {
8157 unsafe {
8158 raw::rustGetObjectCount(index)
8159 }
8160}
8161
8162pub fn get_object_charge(index: u16) -> i16 {
8170 unsafe {
8171 raw::rustGetObjectCharge(index)
8172 }
8173}
8174
8175pub fn get_object_enchantment_charge(index: u16) -> f64 {
8183 unsafe {
8184 raw::rustGetObjectEnchantmentCharge(index)
8185 }
8186}
8187
8188pub fn get_object_soul(index: u16) -> String {
8196 unsafe {
8197 CStr::from_ptr(raw::rustGetObjectSoul(index))
8198 .to_str()
8199 .unwrap_or_default()
8200 .to_string()
8201 }
8202}
8203
8204pub fn get_object_gold_value(index: u16) -> i16 {
8214 unsafe {
8215 raw::rustGetObjectGoldValue(index)
8216 }
8217}
8218
8219pub fn get_object_scale(index: u16) -> f64 {
8227 unsafe {
8228 raw::rustGetObjectScale(index)
8229 }
8230}
8231
8232pub fn get_object_state(index: u16) -> bool {
8240 unsafe {
8241 raw::rustGetObjectState(index)
8242 }
8243}
8244
8245pub fn get_object_door_state(index: u16) -> i16 {
8253 unsafe {
8254 raw::rustGetObjectDoorState(index)
8255 }
8256}
8257
8258pub fn get_object_lock_level(index: u16) -> i16 {
8266 unsafe {
8267 raw::rustGetObjectLockLevel(index)
8268 }
8269}
8270
8271pub fn does_object_have_player_activating(index: u16) -> bool {
8280 unsafe {
8281 raw::rustDoesObjectHavePlayerActivating(index)
8282 }
8283}
8284
8285pub fn get_object_activating_pid(index: u16) -> i16 {
8294 unsafe {
8295 raw::rustGetObjectActivatingPid(index)
8296 }
8297}
8298
8299pub fn get_object_activating_ref_id(index: u16) -> String {
8308 unsafe {
8309 CStr::from_ptr(raw::rustGetObjectActivatingRefId(index))
8310 .to_str()
8311 .unwrap_or_default()
8312 .to_string()
8313 }
8314}
8315
8316pub fn get_object_activating_ref_num(index: u16) -> u16 {
8325 unsafe {
8326 raw::rustGetObjectActivatingRefNum(index)
8327 }
8328}
8329
8330pub fn get_object_activating_mp_num(index: u16) -> u16 {
8339 unsafe {
8340 raw::rustGetObjectActivatingMpNum(index)
8341 }
8342}
8343
8344pub fn get_object_activating_name(index: u16) -> String {
8353 unsafe {
8354 CStr::from_ptr(raw::rustGetObjectActivatingName(index))
8355 .to_str()
8356 .unwrap_or_default()
8357 .to_string()
8358 }
8359}
8360
8361pub fn get_object_summon_state(index: u16) -> bool {
8371 unsafe {
8372 raw::rustGetObjectSummonState(index)
8373 }
8374}
8375
8376pub fn get_object_summon_duration(index: u16) -> f64 {
8386 unsafe {
8387 raw::rustGetObjectSummonDuration(index)
8388 }
8389}
8390
8391pub fn does_object_have_player_summoner(index: u16) -> bool {
8402 unsafe {
8403 raw::rustDoesObjectHavePlayerSummoner(index)
8404 }
8405}
8406
8407pub fn get_object_summoner_pid(index: u16) -> i16 {
8416 unsafe {
8417 raw::rustGetObjectSummonerPid(index)
8418 }
8419}
8420
8421pub fn get_object_summoner_ref_id(index: u16) -> String {
8430 unsafe {
8431 CStr::from_ptr(raw::rustGetObjectSummonerRefId(index))
8432 .to_str()
8433 .unwrap_or_default()
8434 .to_string()
8435 }
8436}
8437
8438pub fn get_object_summoner_ref_num(index: u16) -> u16 {
8447 unsafe {
8448 raw::rustGetObjectSummonerRefNum(index)
8449 }
8450}
8451
8452pub fn get_object_summoner_mp_num(index: u16) -> u16 {
8460 unsafe {
8461 raw::rustGetObjectSummonerMpNum(index)
8462 }
8463}
8464
8465pub fn get_object_pos_x(index: u16) -> f64 {
8473 unsafe {
8474 raw::rustGetObjectPosX(index)
8475 }
8476}
8477
8478pub fn get_object_pos_y(index: u16) -> f64 {
8486 unsafe {
8487 raw::rustGetObjectPosY(index)
8488 }
8489}
8490
8491pub fn get_object_pos_z(index: u16) -> f64 {
8499 unsafe {
8500 raw::rustGetObjectPosZ(index)
8501 }
8502}
8503
8504pub fn get_object_rot_x(index: u16) -> f64 {
8512 unsafe {
8513 raw::rustGetObjectRotX(index)
8514 }
8515}
8516
8517pub fn get_object_rot_y(index: u16) -> f64 {
8525 unsafe {
8526 raw::rustGetObjectRotY(index)
8527 }
8528}
8529
8530pub fn get_object_rot_z(index: u16) -> f64 {
8538 unsafe {
8539 raw::rustGetObjectRotZ(index)
8540 }
8541}
8542
8543pub fn get_video_filename(index: u16) -> String {
8550 unsafe {
8551 CStr::from_ptr(raw::rustGetVideoFilename(index))
8552 .to_str()
8553 .unwrap_or_default()
8554 .to_string()
8555 }
8556}
8557
8558pub fn get_script_variable_name(index: u16) -> String {
8559 unsafe {
8560 CStr::from_ptr(raw::rustGetScriptVariableName(index))
8561 .to_str()
8562 .unwrap_or_default()
8563 .to_string()
8564 }
8565}
8566
8567pub fn get_script_variable_short_value(index: u16) -> i16 {
8568 unsafe {
8569 raw::rustGetScriptVariableShortValue(index)
8570 }
8571}
8572
8573pub fn get_container_changes_size(object_index: u16) -> u16 {
8582 unsafe {
8583 raw::rustGetContainerChangesSize(object_index)
8584 }
8585}
8586
8587pub fn get_container_item_ref_id(object_index: u16, item_index: u16) -> String {
8597 unsafe {
8598 CStr::from_ptr(raw::rustGetContainerItemRefId(object_index, item_index))
8599 .to_str()
8600 .unwrap_or_default()
8601 .to_string()
8602 }
8603}
8604
8605pub fn get_container_item_count(object_index: u16, item_index: u16) -> i16 {
8615 unsafe {
8616 raw::rustGetContainerItemCount(object_index, item_index)
8617 }
8618}
8619
8620pub fn get_container_item_charge(object_index: u16, item_index: u16) -> i16 {
8630 unsafe {
8631 raw::rustGetContainerItemCharge(object_index, item_index)
8632 }
8633}
8634
8635pub fn get_container_item_enchantment_charge(object_index: u16, item_index: u16) -> f64 {
8645 unsafe {
8646 raw::rustGetContainerItemEnchantmentCharge(object_index, item_index)
8647 }
8648}
8649
8650pub fn get_container_item_soul(object_index: u16, item_index: u16) -> String {
8660 unsafe {
8661 CStr::from_ptr(raw::rustGetContainerItemSoul(object_index, item_index))
8662 .to_str()
8663 .unwrap_or_default()
8664 .to_string()
8665 }
8666}
8667
8668pub fn get_container_item_action_count(object_index: u16, item_index: u16) -> i16 {
8678 unsafe {
8679 raw::rustGetContainerItemActionCount(object_index, item_index)
8680 }
8681}
8682
8683pub fn does_object_have_container(index: u16) -> bool {
8694 unsafe {
8695 raw::rustDoesObjectHaveContainer(index)
8696 }
8697}
8698
8699pub fn set_object_list_cell(cell_description: &str) {
8710 unsafe {
8711 raw::rustSetObjectListCell(CString::new(cell_description).unwrap_or_default().as_ptr())
8712 }
8713}
8714
8715pub fn set_object_list_action(action: u8) {
8723 unsafe {
8724 raw::rustSetObjectListAction(action)
8725 }
8726}
8727
8728pub fn set_object_list_console_command(console_command: &str) {
8739 unsafe {
8740 raw::rustSetObjectListConsoleCommand(CString::new(console_command).unwrap_or_default().as_ptr())
8741 }
8742}
8743
8744pub fn set_object_ref_id(ref_id: &str) {
8752 unsafe {
8753 raw::rustSetObjectRefId(CString::new(ref_id).unwrap_or_default().as_ptr())
8754 }
8755}
8756
8757pub fn set_object_ref_num(ref_num: i16) {
8771 unsafe {
8772 raw::rustSetObjectRefNum(ref_num)
8773 }
8774}
8775
8776pub fn set_object_mp_num(mp_num: i16) {
8791 unsafe {
8792 raw::rustSetObjectMpNum(mp_num)
8793 }
8794}
8795
8796pub fn set_object_count(count: i16) {
8806 unsafe {
8807 raw::rustSetObjectCount(count)
8808 }
8809}
8810
8811pub fn set_object_charge(charge: i16) {
8821 unsafe {
8822 raw::rustSetObjectCharge(charge)
8823 }
8824}
8825
8826pub fn set_object_enchantment_charge(enchantment_charge: f64) {
8836 unsafe {
8837 raw::rustSetObjectEnchantmentCharge(enchantment_charge)
8838 }
8839}
8840
8841pub fn set_object_soul(soul: &str) {
8849 unsafe {
8850 raw::rustSetObjectSoul(CString::new(soul).unwrap_or_default().as_ptr())
8851 }
8852}
8853
8854pub fn set_object_gold_value(gold_value: i16) {
8864 unsafe {
8865 raw::rustSetObjectGoldValue(gold_value)
8866 }
8867}
8868
8869pub fn set_object_scale(scale: f64) {
8879 unsafe {
8880 raw::rustSetObjectScale(scale)
8881 }
8882}
8883
8884pub fn set_object_state(object_state: bool) {
8894 unsafe {
8895 raw::rustSetObjectState(object_state)
8896 }
8897}
8898
8899pub fn set_object_lock_level(lock_level: i16) {
8907 unsafe {
8908 raw::rustSetObjectLockLevel(lock_level)
8909 }
8910}
8911
8912pub fn set_object_disarm_state(disarm_state: bool) {
8920 unsafe {
8921 raw::rustSetObjectDisarmState(disarm_state)
8922 }
8923}
8924
8925pub fn set_object_summon_duration(summon_duration: f32) {
8933 unsafe {
8934 raw::rustSetObjectSummonDuration(summon_duration)
8935 }
8936}
8937
8938pub fn set_object_summon_state(summon_state: bool) {
8949 unsafe {
8950 raw::rustSetObjectSummonState(summon_state)
8951 }
8952}
8953
8954pub fn set_object_position(x: f64, y: f64, z: f64) {
8964 unsafe {
8965 raw::rustSetObjectPosition(x, y, z)
8966 }
8967}
8968
8969pub fn set_object_rotation(x: f64, y: f64, z: f64) {
8979 unsafe {
8980 raw::rustSetObjectRotation(x, y, z)
8981 }
8982}
8983
8984pub fn set_object_activating_pid(pid: u16) {
8993 unsafe {
8994 raw::rustSetObjectActivatingPid(pid)
8995 }
8996}
8997
8998pub fn set_object_door_state(door_state: i16) {
9008 unsafe {
9009 raw::rustSetObjectDoorState(door_state)
9010 }
9011}
9012
9013pub fn set_object_door_teleport_state(teleport_state: bool) {
9024 unsafe {
9025 raw::rustSetObjectDoorTeleportState(teleport_state)
9026 }
9027}
9028
9029pub fn set_object_door_destination_cell(cell_description: &str) {
9040 unsafe {
9041 raw::rustSetObjectDoorDestinationCell(CString::new(cell_description).unwrap_or_default().as_ptr())
9042 }
9043}
9044
9045pub fn set_object_door_destination_position(x: f64, y: f64, z: f64) {
9055 unsafe {
9056 raw::rustSetObjectDoorDestinationPosition(x, y, z)
9057 }
9058}
9059
9060pub fn set_object_door_destination_rotation(x: f64, z: f64) {
9072 unsafe {
9073 raw::rustSetObjectDoorDestinationRotation(x, z)
9074 }
9075}
9076
9077pub fn set_script_variable_name(var_name: &str) {
9078 unsafe {
9079 raw::rustSetScriptVariableName(CString::new(var_name).unwrap_or_default().as_ptr())
9080 }
9081}
9082
9083pub fn set_script_variable_short_value(short_val: i16) {
9084 unsafe {
9085 raw::rustSetScriptVariableShortValue(short_val)
9086 }
9087}
9088
9089pub fn set_player_as_object(pid: u16) {
9098 unsafe {
9099 raw::rustSetPlayerAsObject(pid)
9100 }
9101}
9102
9103pub fn set_container_item_ref_id(ref_id: &str) {
9111 unsafe {
9112 raw::rustSetContainerItemRefId(CString::new(ref_id).unwrap_or_default().as_ptr())
9113 }
9114}
9115
9116pub fn set_container_item_count(count: i16) {
9124 unsafe {
9125 raw::rustSetContainerItemCount(count)
9126 }
9127}
9128
9129pub fn set_container_item_charge(charge: i16) {
9137 unsafe {
9138 raw::rustSetContainerItemCharge(charge)
9139 }
9140}
9141
9142pub fn set_container_item_enchantment_charge(enchantment_charge: f64) {
9150 unsafe {
9151 raw::rustSetContainerItemEnchantmentCharge(enchantment_charge)
9152 }
9153}
9154
9155pub fn set_container_item_soul(soul: &str) {
9163 unsafe {
9164 raw::rustSetContainerItemSoul(CString::new(soul).unwrap_or_default().as_ptr())
9165 }
9166}
9167
9168pub fn set_container_item_action_count_by_index(object_index: u16, item_index: u16, action_count: i16) {
9183 unsafe {
9184 raw::rustSetContainerItemActionCountByIndex(object_index, item_index, action_count)
9185 }
9186}
9187
9188pub fn add_object() {
9199 unsafe {
9200 raw::rustAddObject()
9201 }
9202}
9203
9204pub fn add_container_item() {
9215 unsafe {
9216 raw::rustAddContainerItem()
9217 }
9218}
9219
9220pub fn send_object_activate(send_to_other_players: bool, skip_attached_player: bool) {
9231 unsafe {
9232 raw::rustSendObjectActivate(send_to_other_players, skip_attached_player)
9233 }
9234}
9235
9236pub fn send_object_place(send_to_other_players: bool, skip_attached_player: bool) {
9247 unsafe {
9248 raw::rustSendObjectPlace(send_to_other_players, skip_attached_player)
9249 }
9250}
9251
9252pub fn send_object_spawn(send_to_other_players: bool, skip_attached_player: bool) {
9263 unsafe {
9264 raw::rustSendObjectSpawn(send_to_other_players, skip_attached_player)
9265 }
9266}
9267
9268pub fn send_object_delete(send_to_other_players: bool, skip_attached_player: bool) {
9278 unsafe {
9279 raw::rustSendObjectDelete(send_to_other_players, skip_attached_player)
9280 }
9281}
9282
9283pub fn send_object_lock(send_to_other_players: bool, skip_attached_player: bool) {
9294 unsafe {
9295 raw::rustSendObjectLock(send_to_other_players, skip_attached_player)
9296 }
9297}
9298
9299pub fn send_object_trap(send_to_other_players: bool, skip_attached_player: bool) {
9309 unsafe {
9310 raw::rustSendObjectTrap(send_to_other_players, skip_attached_player)
9311 }
9312}
9313
9314pub fn send_object_scale(send_to_other_players: bool, skip_attached_player: bool) {
9325 unsafe {
9326 raw::rustSendObjectScale(send_to_other_players, skip_attached_player)
9327 }
9328}
9329
9330pub fn send_object_state(send_to_other_players: bool, skip_attached_player: bool) {
9341 unsafe {
9342 raw::rustSendObjectState(send_to_other_players, skip_attached_player)
9343 }
9344}
9345
9346pub fn send_door_state(send_to_other_players: bool, skip_attached_player: bool) {
9357 unsafe {
9358 raw::rustSendDoorState(send_to_other_players, skip_attached_player)
9359 }
9360}
9361
9362pub fn send_door_destination(send_to_other_players: bool, skip_attached_player: bool) {
9373 unsafe {
9374 raw::rustSendDoorDestination(send_to_other_players, skip_attached_player)
9375 }
9376}
9377
9378pub fn send_container(send_to_other_players: bool, skip_attached_player: bool) {
9389 unsafe {
9390 raw::rustSendContainer(send_to_other_players, skip_attached_player)
9391 }
9392}
9393
9394pub fn send_video_play(send_to_other_players: bool, skip_attached_player: bool) {
9405 unsafe {
9406 raw::rustSendVideoPlay(send_to_other_players, skip_attached_player)
9407 }
9408}
9409
9410pub fn send_script_global_short(send_to_other_players: bool, skip_attached_player: bool) {
9411 unsafe {
9412 raw::rustSendScriptGlobalShort(send_to_other_players, skip_attached_player)
9413 }
9414}
9415
9416pub fn send_console_command(send_to_other_players: bool, skip_attached_player: bool) {
9427 unsafe {
9428 raw::rustSendConsoleCommand(send_to_other_players, skip_attached_player)
9429 }
9430}
9431
9432pub fn read_last_object_list() {
9433 unsafe {
9434 raw::rustReadLastObjectList()
9435 }
9436}
9437
9438pub fn read_last_event() {
9439 unsafe {
9440 raw::rustReadLastEvent()
9441 }
9442}
9443
9444pub fn initialize_object_list(pid: u16) {
9445 unsafe {
9446 raw::rustInitializeObjectList(pid)
9447 }
9448}
9449
9450pub fn initialize_event(pid: u16) {
9451 unsafe {
9452 raw::rustInitializeEvent(pid)
9453 }
9454}
9455
9456pub fn copy_last_object_list_to_store() {
9457 unsafe {
9458 raw::rustCopyLastObjectListToStore()
9459 }
9460}
9461
9462pub fn get_object_changes_size() -> u16 {
9463 unsafe {
9464 raw::rustGetObjectChangesSize()
9465 }
9466}
9467
9468pub fn get_event_action() -> u8 {
9469 unsafe {
9470 raw::rustGetEventAction()
9471 }
9472}
9473
9474pub fn get_event_container_sub_action() -> u8 {
9475 unsafe {
9476 raw::rustGetEventContainerSubAction()
9477 }
9478}
9479
9480pub fn get_object_ref_num_index(index: u16) -> u16 {
9481 unsafe {
9482 raw::rustGetObjectRefNumIndex(index)
9483 }
9484}
9485
9486pub fn get_object_summoner_ref_num_index(index: u16) -> u16 {
9487 unsafe {
9488 raw::rustGetObjectSummonerRefNumIndex(index)
9489 }
9490}
9491
9492pub fn set_event_cell(cell_description: &str) {
9493 unsafe {
9494 raw::rustSetEventCell(CString::new(cell_description).unwrap_or_default().as_ptr())
9495 }
9496}
9497
9498pub fn set_event_action(action: u8) {
9499 unsafe {
9500 raw::rustSetEventAction(action)
9501 }
9502}
9503
9504pub fn set_event_console_command(console_command: &str) {
9505 unsafe {
9506 raw::rustSetEventConsoleCommand(CString::new(console_command).unwrap_or_default().as_ptr())
9507 }
9508}
9509
9510pub fn set_object_ref_num_index(ref_num: i16) {
9511 unsafe {
9512 raw::rustSetObjectRefNumIndex(ref_num)
9513 }
9514}
9515
9516pub fn add_world_object() {
9517 unsafe {
9518 raw::rustAddWorldObject()
9519 }
9520}
9521
9522pub fn read_received_worldstate() {
9529 unsafe {
9530 raw::rustReadReceivedWorldstate()
9531 }
9532}
9533
9534pub fn copy_received_worldstate_to_store() {
9543 unsafe {
9544 raw::rustCopyReceivedWorldstateToStore()
9545 }
9546}
9547
9548pub fn clear_kill_changes() {
9557 unsafe {
9558 raw::rustClearKillChanges()
9559 }
9560}
9561
9562pub fn clear_map_changes() {
9571 unsafe {
9572 raw::rustClearMapChanges()
9573 }
9574}
9575
9576pub fn get_kill_changes_size() -> u16 {
9583 unsafe {
9584 raw::rustGetKillChangesSize()
9585 }
9586}
9587
9588pub fn get_map_changes_size() -> u16 {
9595 unsafe {
9596 raw::rustGetMapChangesSize()
9597 }
9598}
9599
9600pub fn get_kill_ref_id(index: u16) -> String {
9608 unsafe {
9609 CStr::from_ptr(raw::rustGetKillRefId(index))
9610 .to_str()
9611 .unwrap_or_default()
9612 .to_string()
9613 }
9614}
9615
9616pub fn get_kill_number(index: u16) -> i16 {
9624 unsafe {
9625 raw::rustGetKillNumber(index)
9626 }
9627}
9628
9629pub fn get_weather_region() -> String {
9636 unsafe {
9637 CStr::from_ptr(raw::rustGetWeatherRegion())
9638 .to_str()
9639 .unwrap_or_default()
9640 .to_string()
9641 }
9642}
9643
9644pub fn get_weather_current() -> i16 {
9651 unsafe {
9652 raw::rustGetWeatherCurrent()
9653 }
9654}
9655
9656pub fn get_weather_next() -> i16 {
9663 unsafe {
9664 raw::rustGetWeatherNext()
9665 }
9666}
9667
9668pub fn get_weather_queued() -> i16 {
9675 unsafe {
9676 raw::rustGetWeatherQueued()
9677 }
9678}
9679
9680pub fn get_weather_transition_factor() -> f64 {
9687 unsafe {
9688 raw::rustGetWeatherTransitionFactor()
9689 }
9690}
9691
9692pub fn get_map_tile_cell_x(index: u16) -> i16 {
9701 unsafe {
9702 raw::rustGetMapTileCellX(index)
9703 }
9704}
9705
9706pub fn get_map_tile_cell_y(index: u16) -> i16 {
9715 unsafe {
9716 raw::rustGetMapTileCellY(index)
9717 }
9718}
9719
9720pub fn set_authority_region(authority_region: &str) {
9728 unsafe {
9729 raw::rustSetAuthorityRegion(CString::new(authority_region).unwrap_or_default().as_ptr())
9730 }
9731}
9732
9733pub fn set_weather_region(region: &str) {
9741 unsafe {
9742 raw::rustSetWeatherRegion(CString::new(region).unwrap_or_default().as_ptr())
9743 }
9744}
9745
9746pub fn set_weather_force_state(force_state: bool) {
9756 unsafe {
9757 raw::rustSetWeatherForceState(force_state)
9758 }
9759}
9760
9761pub fn set_weather_current(current_weather: i16) {
9769 unsafe {
9770 raw::rustSetWeatherCurrent(current_weather)
9771 }
9772}
9773
9774pub fn set_weather_next(next_weather: i16) {
9782 unsafe {
9783 raw::rustSetWeatherNext(next_weather)
9784 }
9785}
9786
9787pub fn set_weather_queued(queued_weather: i16) {
9795 unsafe {
9796 raw::rustSetWeatherQueued(queued_weather)
9797 }
9798}
9799
9800pub fn set_weather_transition_factor(transition_factor: f64) {
9808 unsafe {
9809 raw::rustSetWeatherTransitionFactor(transition_factor)
9810 }
9811}
9812
9813pub fn set_hour(hour: f64) {
9821 unsafe {
9822 raw::rustSetHour(hour)
9823 }
9824}
9825
9826pub fn set_day(day: i16) {
9834 unsafe {
9835 raw::rustSetDay(day)
9836 }
9837}
9838
9839pub fn set_month(month: i16) {
9847 unsafe {
9848 raw::rustSetMonth(month)
9849 }
9850}
9851
9852pub fn set_year(year: i16) {
9860 unsafe {
9861 raw::rustSetYear(year)
9862 }
9863}
9864
9865pub fn set_days_passed(days_passed: i16) {
9873 unsafe {
9874 raw::rustSetDaysPassed(days_passed)
9875 }
9876}
9877
9878pub fn set_time_scale(time_scale: f64) {
9887 unsafe {
9888 raw::rustSetTimeScale(time_scale)
9889 }
9890}
9891
9892pub fn set_player_collision_state(state: bool) {
9901 unsafe {
9902 raw::rustSetPlayerCollisionState(state)
9903 }
9904}
9905
9906pub fn set_actor_collision_state(state: bool) {
9915 unsafe {
9916 raw::rustSetActorCollisionState(state)
9917 }
9918}
9919
9920pub fn set_placed_object_collision_state(state: bool) {
9929 unsafe {
9930 raw::rustSetPlacedObjectCollisionState(state)
9931 }
9932}
9933
9934pub fn use_actor_collision_for_placed_objects(use_actor_collision: bool) {
9943 unsafe {
9944 raw::rustUseActorCollisionForPlacedObjects(use_actor_collision)
9945 }
9946}
9947
9948pub fn add_kill(ref_id: &str, number: i16) {
9957 unsafe {
9958 raw::rustAddKill(CString::new(ref_id).unwrap_or_default().as_ptr(), number)
9959 }
9960}
9961
9962pub fn add_synchronized_client_script_id(script_id: &str) {
9971 unsafe {
9972 raw::rustAddSynchronizedClientScriptId(CString::new(script_id).unwrap_or_default().as_ptr())
9973 }
9974}
9975
9976pub fn add_synchronized_client_global_id(global_id: &str) {
9985 unsafe {
9986 raw::rustAddSynchronizedClientGlobalId(CString::new(global_id).unwrap_or_default().as_ptr())
9987 }
9988}
9989
9990pub fn add_enforced_collision_ref_id(ref_id: &str) {
9999 unsafe {
10000 raw::rustAddEnforcedCollisionRefId(CString::new(ref_id).unwrap_or_default().as_ptr())
10001 }
10002}
10003
10004pub fn clear_synchronized_client_script_ids() {
10012 unsafe {
10013 raw::rustClearSynchronizedClientScriptIds()
10014 }
10015}
10016
10017pub fn clear_synchronized_client_global_ids() {
10025 unsafe {
10026 raw::rustClearSynchronizedClientGlobalIds()
10027 }
10028}
10029
10030pub fn clear_enforced_collision_ref_ids() {
10038 unsafe {
10039 raw::rustClearEnforcedCollisionRefIds()
10040 }
10041}
10042
10043pub fn save_map_tile_image_file(index: u16, file_path: &str) {
10053 unsafe {
10054 raw::rustSaveMapTileImageFile(index, CString::new(file_path).unwrap_or_default().as_ptr())
10055 }
10056}
10057
10058pub fn load_map_tile_image_file(cell_x: i16, cell_y: i16, file_path: &str) {
10069 unsafe {
10070 raw::rustLoadMapTileImageFile(cell_x, cell_y, CString::new(file_path).unwrap_or_default().as_ptr())
10071 }
10072}
10073
10074pub fn send_client_script_settings(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
10087 unsafe {
10088 raw::rustSendClientScriptSettings(pid, send_to_other_players, skip_attached_player)
10089 }
10090}
10091
10092pub fn send_world_kill_count(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
10105 unsafe {
10106 raw::rustSendWorldKillCount(pid, send_to_other_players, skip_attached_player)
10107 }
10108}
10109
10110pub fn send_world_map(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
10121 unsafe {
10122 raw::rustSendWorldMap(pid, send_to_other_players, skip_attached_player)
10123 }
10124}
10125
10126pub fn send_world_time(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
10139 unsafe {
10140 raw::rustSendWorldTime(pid, send_to_other_players, skip_attached_player)
10141 }
10142}
10143
10144pub fn send_world_weather(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
10156 unsafe {
10157 raw::rustSendWorldWeather(pid, send_to_other_players, skip_attached_player)
10158 }
10159}
10160
10161pub fn send_world_collision_override(pid: u16, send_to_other_players: bool, skip_attached_player: bool) {
10174 unsafe {
10175 raw::rustSendWorldCollisionOverride(pid, send_to_other_players, skip_attached_player)
10176 }
10177}
10178
10179pub fn send_world_region_authority(pid: u16) {
10190 unsafe {
10191 raw::rustSendWorldRegionAuthority(pid)
10192 }
10193}
10194
10195pub fn read_last_worldstate() {
10196 unsafe {
10197 raw::rustReadLastWorldstate()
10198 }
10199}
10200
10201pub fn copy_last_worldstate_to_store() {
10202 unsafe {
10203 raw::rustCopyLastWorldstateToStore()
10204 }
10205}
10206