◆ ActionRemoveSeed()
◆ ActionCondition()
22 {
23 if (
player.GetCommand_Vehicle() )
24 return false;
25
28 {
30
33 string selection;
34
36 {
39 if ( slot )
40 break;
41 }
42
43
44 if ( slot && slot.GetSeed() )
45 {
46 if ( slot.GetWateredState() != 0 )
47 return false;
48
50
52 {
54 return true;
55 else
56 return player.GetInventory().CanAddEntityIntoHands(
m_Seed );
57 }
58 }
59 }
60 return false;
61 }
SeedBase m_Seed
Definition ActionRemoveSeed.c:3
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition GardenPlot.c:2
Definition cultivation.c:53
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Перекрестные ссылки Class::CastTo() и m_Seed.
◆ CreateConditionComponents()
◆ GetInputType()
◆ InventoryReservation()
64 {
66
68
70 {
73 {
75 }
76 else
77 {
79 }
80 }
81
83 {
86 }
87
89 }
FindInventoryLocationType
flags for searching locations in inventory
Definition InventoryLocation.c:17
script counterpart to engine's class Inventory
Definition Inventory.c:79
const int c_InventoryReservationTimeoutMS
reservations
Definition Inventory.c:712
InventoryLocation.
Definition InventoryLocation.c:29
Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutMS и m_Seed.
◆ OnExecuteClient()
92 {
94
98
99
100 if ( !
player.GetInventory().CanAddEntityIntoHands(
m_Seed ) )
101 {
105
107
110 {
112 }
113 else
114 {
115 m_Seed.SplitIntoStackMaxToInventoryLocationClient(
il );
116 }
117 }
118 else
119 {
120
123
125 {
127 }
128 else
129 {
132 m_Seed.SplitIntoStackMaxToInventoryLocationClient(
il );
133 }
134 }
135 }
void ClearInventoryReservationEx(ActionData action_data)
Definition ActionBase.c:921
Definition PlayerBaseClient.c:2
Перекрестные ссылки ActionBase::ClearInventoryReservationEx() и m_Seed.
◆ m_Seed
Объявления и описания членов класса находятся в файле:
- D:/Ishodniki/scripts/4_World/Classes/UserActionsComponent/Actions/Interact/ActionRemoveSeed.c