-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuilding.cs
More file actions
90 lines (76 loc) · 2.31 KB
/
Building.cs
File metadata and controls
90 lines (76 loc) · 2.31 KB
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
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.GameContent.Tile_Entities;
using TShockAPI;
namespace CreateSpawn;
//建筑操作记录
public class BuildOperation
{
public Building BeforeState { get; set; } // 操作前的状态
public string CreatedRegion { get; set; } // 本次操作创建的区域
public DateTime Timestamp { get; set; } // 操作时间
public Rectangle Area { get; set; } // 操作区域
}
//剪贴板数据
public class Building
{
public string RegionName { get; set; } // 区域名称
public List<string> Conditions { get; set; } = new List<string>(); //进度条件
public int Width { get; set; }
public int Height { get; set; }
public Tile[,]? Tiles { get; set; }
public Point Origin { get; set; }
public List<ChestItems>? ChestItems { get; set; } // 箱子的物品
public List<Sign>? Signs { get; set; } // 标牌
public List<ItemFrames> ItemFrames { get; set; } //物品框
public List<WRacks> WeaponsRacks { get; set; } //武器架
public List<FPlatters> FoodPlatters { get; set; } //盘子
public List<DDolls> DisplayDolls { get; set; } //人偶
public List<HatRacks> HatRacks { get; set; } //衣帽架
public List<LogicSensors> LogicSensors { get; set; } //逻辑感应器
}
//箱子物品数据
public class ChestItems
{
public Item? Item { get; set; } // 物品本身(可空)
public Point Position { get; set; } // 箱子位置(世界坐标)
public int Slot { get; set; } // 槽位编号(0 ~ 39)
}
//物品框数据
public class ItemFrames
{
public NetItem Item { get; set; }
public Point Position { get; set; }
}
//武器架
public class WRacks
{
public NetItem Item { get; set; }
public Point Position { get; set; }
}
//盘子
public class FPlatters
{
public NetItem Item { get; set; }
public Point Position { get; set; }
}
//人偶
public class DDolls
{
public NetItem[] Items;
public NetItem[] Dyes;
public Point Position { get; set; }
}
//帽架
public class HatRacks
{
public NetItem[] Items;
public NetItem[] Dyes;
public Point Position { get; set; }
}
// 逻辑感应器
public class LogicSensors
{
public Point Position { get; set; }
public TELogicSensor.LogicCheckType type { get; set; }
}