示例#1
0
        public override CommandActionResult Execute(DialogContext dc, IList <IActivity> activities, GameFlags flags)
        {
            flags.SetFlag(InventoryItemId);

            activities.Add(CreateEventActivity(dc, "InventoryItemAdded", JObject.FromObject(new
            {
                inventoryItemId = InventoryItemId,
                description     = Description
            })));

            return(CommandActionResult.None);
        }
示例#2
0
        public override CommandActionResult Execute(DialogContext dc, IList <IActivity> activities, GameFlags flags)
        {
            flags.SetFlag(FlagName);

            return(CommandActionResult.None);
        }