-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConstructionSign.cs
93 lines (75 loc) · 2.43 KB
/
ConstructionSign.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
namespace Eco.Mods.TechTree
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Eco.Gameplay.Blocks;
using Eco.Gameplay.Components;
using Eco.Gameplay.Components.Auth;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Economy;
using Eco.Gameplay.Housing;
using Eco.Gameplay.Interactions;
using Eco.Gameplay.Items;
using Eco.Gameplay.Minimap;
using Eco.Gameplay.Objects;
using Eco.Gameplay.Players;
using Eco.Gameplay.Property;
using Eco.Gameplay.Skills;
using Eco.Gameplay.Systems.TextLinks;
using Eco.Gameplay.Pipes.LiquidComponents;
using Eco.Gameplay.Pipes.Gases;
using Eco.Gameplay.Systems.Tooltip;
using Eco.Shared;
using Eco.Shared.Math;
using Eco.Shared.Localization;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.Shared.View;
using Eco.Shared.Items;
using Eco.Gameplay.Pipes;
using Eco.World.Blocks;
[Serialized]
[RequireComponent(typeof(PropertyAuthComponent))]
public partial class ConstructionSignObject :
WorldObject,
IRepresentsItem
{
public override string FriendlyName { get { return "Storage Chest"; } }
public virtual Type RepresentedItemType { get { return typeof(ConstructionSignItem); } }
protected override void Initialize()
{
}
public override void Destroy()
{
base.Destroy();
}
}
[Serialized]
public partial class ConstructionSignItem :
WorldObjectItem<ConstructionSignObject>
{
public override string FriendlyName { get { return "Storage Chest"; } }
public override string Description { get { return "A container you can store items in."; } }
static ConstructionSignItem()
{
}
}
public partial class ConstructionSignRecipe : Recipe
{
public ConstructionSignRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<ConstructionSignItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<LogItem>(10),
};
this.CraftMinutes = new ConstantValue(2);
this.Initialize("Storage Chest", typeof(ConstructionSignRecipe));
CraftingComponent.AddRecipe(typeof(WorkbenchObject), this);
}
}
}