コード例 #1
0
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        int num      = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        int dwItemID = CheatCommandBase.SmartConvert <int>(InArguments[1]);
        int num2     = CheatCommandBase.SmartConvert <int>(InArguments[2]);

        CheatCmdRef.set_stAddItem(new CSDT_CHEAT_ITEMINFO());
        CheatCmdRef.get_stAddItem().wItemType = (ushort)num;
        CheatCmdRef.get_stAddItem().dwItemID  = (uint)dwItemID;
        CheatCmdRef.get_stAddItem().wItemCnt  = (ushort)num2;
        return(CheatCommandBase.Done);
    }