Example #1
0
        protected override bool ExecCommand(StoryInstance instance, StoryValueParam <int, int, int, int> _params, long delta)
        {
            Robot robot = instance.Context as Robot;

            if (null != robot)
            {
                int money   = _params.Param1Value;
                int gold    = _params.Param2Value;
                int exp     = _params.Param3Value;
                int stamina = _params.Param4Value;
                robot.AddAssets(money, gold, exp, stamina);
            }
            return(false);
        }