29 {
31 if ( player )
32 {
33 ConstructionActionData construction_action_data = player.GetConstructionActionData();
35
36 if ( constrution_part )
37 {
38 string ret = "";
39 switch (constrution_part.
GetName())
40 {
41 case "leather":
42 ret = "#build_shelter_leather";
43 break;
44
45 case "fabric":
46 ret = "#build_shelter_fabric";
47 break;
48
49 case "stick":
50 ret = "#build_shelter_stick";
51 break;
52 }
53 }
54 }
55
56 return ret;
57 }
ConstructionPart GetBuildPartNoToolAtIndex(int idx)
proto native CGame GetGame()