DRObjects.Items.Archetypes.Local.TreasureChest.PerformAction C# (CSharp) Method

PerformAction() public method

public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
return ActionFeedback[]
        public override ActionFeedback[] PerformAction(ActionType actionType, Actor actor, object[] args)
        {
            if (actionType == ActionType.LOOT)
            {
                return new ActionFeedback[] { new InterfaceToggleFeedback(InternalActionEnum.OPEN_LOOT, true, new object[1] { this}) };
            }
            else
            {
                return base.PerformAction(actionType, actor, args);
            }
        }