| 
									
										
										
										
											2024-05-04 20:51:05 +08:00
										 |  |  |  | #pragma once
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #include "squirrel.h"
 | 
					
						
							|  |  |  |  | #include "sqstdaux.h"
 | 
					
						
							|  |  |  |  | #include "sqstdblob.h"
 | 
					
						
							|  |  |  |  | #include "sqstdio.h"
 | 
					
						
							|  |  |  |  | #include "sqstdmath.h"
 | 
					
						
							|  |  |  |  | #include "sqstdstring.h"
 | 
					
						
							|  |  |  |  | #include "sqstdsystem.h"
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | class SquirrelClassEx | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public://API<50><49>
 | 
					
						
							|  |  |  |  | 	//<2F><><EFBFBD><EFBFBD>Nut<75>ű<EFBFBD>
 | 
					
						
							|  |  |  |  | 	static SQInteger ReloadingScript(); | 
					
						
							|  |  |  |  | 	//<2F>˳<EFBFBD><CBB3><EFBFBD>Ϸ
 | 
					
						
							|  |  |  |  | 	static SQInteger Exit(HSQUIRRELVM v); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public://ע<><D7A2><EFBFBD>հ<EFBFBD><D5B0><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	//<2F><><EFBFBD><EFBFBD>nut<75>ӿ<EFBFBD>funcName<6D><65><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD>Ժ<EFBFBD><D4BA><EFBFBD>funcAddr
 | 
					
						
							|  |  |  |  | 	static void RegisterNutApi(const SQChar* funcName, void* funcAddr, HSQUIRRELVM v); | 
					
						
							|  |  |  |  | 	//ע<><D7A2><EFBFBD>ӿ<EFBFBD>
 | 
					
						
							|  |  |  |  | 	void R_Register_Nut(HSQUIRRELVM v); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public: | 
					
						
							| 
									
										
										
										
											2024-05-04 22:04:36 +08:00
										 |  |  |  | 	SquirrelClassEx() { | 
					
						
							|  |  |  |  | 		 | 
					
						
							|  |  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2024-05-04 20:51:05 +08:00
										 |  |  |  | 	//<2F><>ʼ<EFBFBD><CABC>
 | 
					
						
							|  |  |  |  | 	void Init(); | 
					
						
							|  |  |  |  | 	//<2F><><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	void Run(); | 
					
						
							|  |  |  |  | 	//<2F>ر<EFBFBD>
 | 
					
						
							|  |  |  |  | 	void Close(); | 
					
						
							|  |  |  |  | }; |