123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- class ActionEatCanCB : ActionContinuousBaseCB
- {
- override void CreateActionComponent()
- {
- m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_BIG, UATimeSpent.DEFAULT);
- }
- };
- class ActionEatCan: ActionEatBig
- {
- void ActionEatCan()
- {
- m_CallbackClass = ActionEatCanCB;
- }
-
- override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
- {
- return super.ActionCondition(player, target, item);
- /*
- //if staging for cans is introduced
- if ( item && item.IsOpen() )
- {
- return true;
- }
- return false;
- */
- }
- };
- //-----------------SMALL BITES VARIANT-------------------
- class ActionEatSmallCanCB : ActionContinuousBaseCB
- {
- override void CreateActionComponent()
- {
- m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_SMALL, UATimeSpent.DEFAULT);
- }
- };
- class ActionEatSmallCan: ActionEatBig
- {
- void ActionEatSmallCan()
- {
- m_CallbackClass = ActionEatSmallCanCB;
- }
-
- override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
- {
- if (!super.ActionCondition(player, target, item))
- return false;
- return true;
- /*
- //if staging for cans is introduced
- if ( item && item.IsOpen() )
- {
- return true;
- }
- return false;
- */
- }
- };
|