30 lines
		
	
	
		
			793 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			793 B
		
	
	
	
		
			Plaintext
		
	
	
	
| /*
 | |
| 文件名:AccountCargoClass.nut
 | |
| 路径:Dps_A/BaseClass/AccountCargoClass/AccountCargoClass.nut
 | |
| 创建日期:2024-09-16	10:00
 | |
| 文件用途:账号金库类
 | |
| */
 | |
| class AccountCargo extends Base_C_Object {
 | |
| 
 | |
|     SUser = null;
 | |
| 
 | |
|     constructor(CObject, gSUser) {
 | |
|         base.constructor(CObject);
 | |
|         SUser = gSUser;
 | |
|     }
 | |
| 
 | |
|     //获取空格子
 | |
|     function GetEmptySlot() {
 | |
|         return Sq_CallFunc(S_Ptr("0x0828a580"), "int", ["pointer"], this.C_Object);
 | |
|     }
 | |
| 
 | |
|     //存储物品
 | |
|     function InsertItem(ItemObj, Slot) {
 | |
|         Sq_CallFunc(S_Ptr("0x08289c82"), "int", ["pointer", "pointer", "int"], this.C_Object, ItemObj.C_Object, Slot);
 | |
|     }
 | |
| 
 | |
|     //刷新列表
 | |
|     function SendItemList() {
 | |
|         return Sq_CallFunc(S_Ptr("0x0828a88a"), "int", ["pointer"], this.C_Object);
 | |
|     }
 | |
| } |