public void SendInventoryConsumption(byte ItemID, ushort wAwardGlod = 10, byte cbCostType = 0) { Debug.LogWarning("------------SendInventoryConsumption"); CMD_C_InventoryConsumptionInfo kNetInfo = new CMD_C_InventoryConsumptionInfo(); kNetInfo.dwUserID = GlobalUserInfo.getUserID(); kNetInfo.cbItemID = ItemID; kNetInfo.wAmount = wAwardGlod; kNetInfo.cbCostType = cbCostType; //发送数据 var buf = StructConverterByteArray.StructToBytes(kNetInfo); SendSocketData(HNMJ_Defines.SUB_C_CONSUMPTION_INVENTORY, buf, (ushort)buf.Length); }
public uint getUserID() { return(GlobalUserInfo.getUserID()); }