Definition at line 1 of file Bark_Birch.c.
◆ CanDetachAttachment() [1/2]
Definition at line 36 of file Bark_Birch.c.
37 {
38
41
42
43 if (parent.IsKindOf("Barrel_ColorBase"))
45
46
47 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1)
49
51 return true;
52 return false;
53 }
◆ CanDetachAttachment() [2/2]
Definition at line 36 of file Bark_Oak.c.
37 {
38
41
42
43 if (parent.IsKindOf("Barrel_ColorBase"))
45
46
47 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1)
49
51 return true;
52 return false;
53 }
◆ CanPutAsAttachment() [1/2]
Definition at line 3 of file Bark_Birch.c.
4 {
5 if (!
super.CanPutAsAttachment(parent))
return false;
6 const int SLOTS_ARRAY = 8;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Plant", "Nails", "OakBark", "Lime", "Disinfectant", "Guts" };
11
12
13
14 if (parent.IsKindOf("Barrel_ColorBase"))
16
17
18 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1)
20
21
22 for (
int i = 0;
i < SLOTS_ARRAY ;
i++)
23 {
24 if (parent.FindAttachmentBySlotName(slot_names[
i]) !=
NULL)
25 {
27 break;
28 }
29 }
30
32 return true;
33 return false;
34 }
◆ CanPutAsAttachment() [2/2]
Definition at line 3 of file Bark_Oak.c.
4 {
5 if (!
super.CanPutAsAttachment(parent))
return false;
6 const int SLOTS_ARRAY = 8;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Plant", "Nails", "BirchBark", "Lime", "Disinfectant", "Guts" };
11
12
13
14 if (parent.IsKindOf("Barrel_ColorBase"))
16
17
18 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1)
20
21
22 for (
int i = 0;
i < SLOTS_ARRAY ;
i++)
23 {
24 if (parent.FindAttachmentBySlotName(slot_names[
i]) !=
NULL)
25 {
27 break;
28 }
29 }
30
32 return true;
33 return false;
34 }
The documentation for this class was generated from the following files:
- scripts/4_World/Entities/ItemBase/Bark_ColorBase/Bark_Birch.c
- scripts/4_World/Entities/ItemBase/Bark_ColorBase/Bark_Oak.c