◆ CanDetachAttachment() [1/2]
43 {
44
47
48
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
52 }
53
54
55 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1 )
56 {
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }
◆ CanDetachAttachment() [2/2]
43 {
44
47
48
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
52 }
53
54
55 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1 )
56 {
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }
◆ CanPutAsAttachment() [1/2]
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") )
15 {
17 }
18
19
20 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1 )
21 {
23 }
24
25
26 for (
int i = 0;
i < SLOTS_ARRAY ;
i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[
i]) !=
NULL )
29 {
31 break;
32 }
33 }
34
36 {
37 return true;
38 }
39 return false;
40 }
◆ CanPutAsAttachment() [2/2]
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") )
15 {
17 }
18
19
20 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1 )
21 {
23 }
24
25
26 for (
int i = 0;
i < SLOTS_ARRAY ;
i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[
i]) !=
NULL )
29 {
31 break;
32 }
33 }
34
36 {
37 return true;
38 }
39 return false;
40 }
Объявления и описания членов классов находятся в файлах:
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Bark_ColorBase/Bark_Birch.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Bark_ColorBase/Bark_Oak.c