aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_node.cpp
blob: a905f843de4c0127493a2b6d1ecc9e4d9466d1ba (plain)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "cpp_api/s_node.h"
#include "cpp_api/s_internal.h"
#include "common/c_converter.h"
#include "common/c_content.h"
#include "nodedef.h"
#include "server.h"
#include "environment.h"
#include "util/pointedthing.h"


struct EnumString ScriptApiNode::es_DrawType[] =
	{
		{NDT_NORMAL, "normal"},
		{NDT_AIRLIKE, "airlike"},
		{NDT_LIQUID, "liquid"},
		{NDT_FLOWINGLIQUID, "flowingliquid"},
		{NDT_GLASSLIKE, "glasslike"},
		{NDT_GLASSLIKE_FRAMED, "glasslike_framed"},
		{NDT_GLASSLIKE_FRAMED_OPTIONAL, "glasslike_framed_optional"},
		{NDT_ALLFACES, "allfaces"},
		{NDT_ALLFACES_OPTIONAL, "allfaces_optional"},
		{NDT_TORCHLIKE, "torchlike"},
		{NDT_SIGNLIKE, "signlike"},
		{NDT_PLANTLIKE, "plantlike"},
		{NDT_FIRELIKE, "firelike"},
		{NDT_FENCELIKE, "fencelike"},
		{NDT_RAILLIKE, "raillike"},
		{NDT_NODEBOX, "nodebox"},
		{NDT_MESH, "mesh"},
		{0, NULL},
	};

struct EnumString ScriptApiNode::es_ContentParamType2[] =
	{
		{CPT2_NONE, "none"},
		{CPT2_FULL, "full"},
		{CPT2_FLOWINGLIQUID, "flowingliquid"},
		{CPT2_FACEDIR, "facedir"},
		{CPT2_WALLMOUNTED, "wallmounted"},
		{CPT2_LEVELED, "leveled"},
		{CPT2_DEGROTATE, "degrotate"},
		{0, NULL},
	};

struct EnumString ScriptApiNode::es_LiquidType[] =
	{
		{LIQUID_NONE, "none"},
		{LIQUID_FLOWING, "flowing"},
		{LIQUID_SOURCE, "source"},
		{0, NULL},
	};

struct EnumString ScriptApiNode::es_ContentParamType[] =
	{
		{CPT_NONE, "none"},
		{CPT_LIGHT, "light"},
		{0, NULL},
	};

struct EnumString ScriptApiNode::es_NodeBoxType[] =
	{
		{NODEBOX_REGULAR, "regular"},
		{NODEBOX_FIXED, "fixed"},
		{NODEBOX_WALLMOUNTED, "wallmounted"},
		{NODEBOX_LEVELED, "leveled"},
		{0, NULL},
	};

ScriptApiNode::ScriptApiNode() {
}

ScriptApiNode::~ScriptApiNode() {
}

bool ScriptApiNode::node_on_punch(v3s16 p, MapNode node,
		ServerActiveObject *puncher, PointedThing pointed)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "on_punch"))
		return false;

	// Call function
	push_v3s16(L, p);
	pushnode(L, node, ndef);
	objectrefGetOrCreate(L, puncher);
	pushPointedThing(pointed);
	PCALL_RES(lua_pcall(L, 4, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
	return true;
}

bool ScriptApiNode::node_on_dig(v3s16 p, MapNode node,
		ServerActiveObject *digger)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "on_dig"))
		return false;

	// Call function
	push_v3s16(L, p);
	pushnode(L, node, ndef);
	objectrefGetOrCreate(L, digger);
	PCALL_RES(lua_pcall(L, 3, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
	return true;
}

void ScriptApiNode::node_on_construct(v3s16 p, MapNode node)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "on_construct"))
		return;

	// Call function
	push_v3s16(L, p);
	PCALL_RES(lua_pcall(L, 1, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
}

void ScriptApiNode::node_on_destruct(v3s16 p, MapNode node)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "on_destruct"))
		return;

	// Call function
	push_v3s16(L, p);
	PCALL_RES(lua_pcall(L, 1, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
}

void ScriptApiNode::node_after_destruct(v3s16 p, MapNode node)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "after_destruct"))
		return;

	// Call function
	push_v3s16(L, p);
	pushnode(L, node, ndef);
	PCALL_RES(lua_pcall(L, 2, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
}

bool ScriptApiNode::node_on_timer(v3s16 p, MapNode node, f32 dtime)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "on_timer"))
		return false;

	// Call function
	push_v3s16(L, p);
	lua_pushnumber(L,dtime);
	PCALL_RES(lua_pcall(L, 2, 1, error_handler));
	lua_remove(L, error_handler);
	return (bool) lua_isboolean(L, -1) && (bool) lua_toboolean(L, -1) == true;
}

void ScriptApiNode::node_on_receive_fields(v3s16 p,
		const std::string &formname,
		const StringMap &fields,
		ServerActiveObject *sender)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	INodeDefManager *ndef = getServer()->ndef();

	// If node doesn't exist, we don't know what callback to call
	MapNode node = getEnv()->getMap().getNodeNoEx(p);
	if (node.getContent() == CONTENT_IGNORE)
		return;

	// Push callback function on stack
	if (!getItemCallback(ndef->get(node).name.c_str(), "on_receive_fields"))
		return;

	// Call function
	push_v3s16(L, p);                    // pos
	lua_pushstring(L, formname.c_str()); // formname
	lua_newtable(L);                     // fields
	StringMap::const_iterator it;
	for (it = fields.begin(); it != fields.end(); it++) {
		const std::string &name = it->first;
		const std::string &value = it->second;
		lua_pushstring(L, name.c_str());
		lua_pushlstring(L, value.c_str(), value.size());
		lua_settable(L, -3);
	}
	objectrefGetOrCreate(L, sender);        // player
	PCALL_RES(lua_pcall(L, 4, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
}

void ScriptApiNode::node_falling_update(v3s16 p)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	lua_getglobal(L, "nodeupdate");
	push_v3s16(L, p);
	PCALL_RES(lua_pcall(L, 1, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
}

void ScriptApiNode::node_falling_update_single(v3s16 p)
{
	SCRIPTAPI_PRECHECKHEADER

	int error_handler = PUSH_ERROR_HANDLER(L);

	lua_getglobal(L, "nodeupdate_single");
	push_v3s16(L, p);
	PCALL_RES(lua_pcall(L, 1, 0, error_handler));
	lua_pop(L, 1);  // Pop error handler
}
an class="hl str">"trains. Save files will be reloaded afterwards!" msgstr "" #: init.lua msgid "Delete all train routes, force them to recalculate" msgstr "" #: init.lua msgid "" "Detach all players, especially the offline ones, from all trains. Use only " "when no one serious is on a train." msgstr "" #: init.lua msgid "Disable the advtrains globalstep temporarily" msgstr "" #: init.lua msgid "Disabled advtrains successfully" msgstr "" #: init.lua msgid "Instructed to save() but load() was never called!" msgstr "" #: init.lua msgid "Print advtrains status info" msgstr "" #: init.lua msgid "Re-enabling advtrains globalstep..." msgstr "" #: init.lua msgid "Reload successful!" msgstr "" #: init.lua msgid "Removing unused wagon" msgstr "" #: init.lua msgid "Restoring saved state in 1 second..." msgstr "" #: init.lua msgid "Returns the position of the train with the given id" msgstr "" #: init.lua msgid "Saving failed: @1" msgstr "" #: init.lua msgid "Successfully invalidated train routes" msgstr "" #: init.lua msgid "Teleporting to train @1" msgstr "" #: init.lua msgid "Teleports you to the position of the train with the given id" msgstr "" #: init.lua msgid "" "The advtrains globalstep has been disabled. Trains are not moving, and no " "data is saved! Run '/at_disable_step no' to enable again!" msgstr "" #: init.lua msgid "Train @1 does not exist or is invalid" msgstr "" #: init.lua msgid "" "Train @1 had no wagons left because of some bug. It is being deleted. Wave " "it goodbye!" msgstr "" #: init.lua msgid "Train @1 is at @2" msgstr "" #: init.lua msgid "from wagon_save table." msgstr "" #: misc_nodes.lua msgid "@1 Platform (45 degree)" msgstr "较高的@1站台 (45°)" #: misc_nodes.lua msgid "@1 Platform (high)" msgstr "较高的@1站台" #: misc_nodes.lua msgid "@1 Platform (low)" msgstr "较低的@1站台" #: misc_nodes.lua msgid "@1 Platform (low, 45 degree)" msgstr "较低的@1站台 (45°)" #: protection.lua msgid "Can operate turnouts and signals in unprotected areas" msgstr "" #: protection.lua msgid "Can place and dig tracks in unprotected areas" msgstr "" #: protection.lua msgid "" "Can place, remove and operate any train, regardless of owner, whitelist, or " "protection" msgstr "" #: protection.lua msgid "Can place, remove and operate trains" msgstr "" #: protection.lua msgid "You are not allowed to build near tracks at this protected position." msgstr "这里已被保护,您不能在这里的铁路附近建任何东西。" #: protection.lua msgid "" "You are not allowed to build near tracks without the track_builder privilege." msgstr "您没有“train_operator”权限,不能在铁路附近建任何东西。" #: protection.lua msgid "You are not allowed to build tracks at this protected position." msgstr "这里已被保护,您不能在这里建造铁路。" #: protection.lua msgid "" "You are not allowed to build tracks without the track_builder privilege." msgstr "您没有“train_operator”权限,不能在这里建造铁路。" #: protection.lua msgid "" "You are not allowed to operate turnouts and signals without the " "railway_operator privilege." msgstr "您没有“railway_operator”权限,不能控制铁路设施。" #: signals.lua msgid "Andrew's Cross" msgstr "铁路道口信号灯" #: signals.lua #, fuzzy msgid "Lampless Signal (deprecated!)" msgstr "臂板信号机" #: signals.lua msgid "Signal (deprecated!)" msgstr "" #: signals.lua #, fuzzy msgid "Wallmounted Signal (left) (deprecated!)" msgstr "壁挂式信号灯 (左侧)" #: signals.lua #, fuzzy msgid "Wallmounted Signal (right) (deprecated!)" msgstr "壁挂式信号灯 (右侧)" #: signals.lua #, fuzzy msgid "Wallmounted Signal (top) (deprecated!)" msgstr "悬挂式信号灯" #: track_reg_helper.lua msgid "@1 Slope" msgstr "@1斜坡" #: track_reg_helper.lua #, fuzzy msgid "Can't place: Not enough slope items left (@1 required)" msgstr "无法放置斜坡:您没有足够的铁路斜坡放置工具 (您总共需要@1个)" #: track_reg_helper.lua #, fuzzy msgid "Can't place: There's no slope of length @1" msgstr "无法放置斜坡:advtrains 不支持长度为@1米的斜坡。" #: track_reg_helper.lua #, fuzzy msgid "Can't place: no supporting node at upper end." msgstr "无法放置斜坡:较高端没有支撑方块。" #: track_reg_helper.lua #, fuzzy msgid "Can't place: not pointing at node" msgstr "无法放置斜坡:您没有选择任何方块。" #: track_reg_helper.lua #, fuzzy msgid "Can't place: space occupied!" msgstr "无法放置斜坡:此区域已被占用。" #: track_reg_helper.lua tracks.lua #, fuzzy msgid "This track can not be removed!" msgstr "您不能移除这段轨道。" #: trackplacer.lua #, fuzzy msgid "This node can't be changed using the trackworker!" msgstr "您不能使用铁路调整工具调整这个方块。" #: trackplacer.lua #, fuzzy msgid "This node can't be rotated using the trackworker!" msgstr "您不能使用铁路调整工具旋转这个方块。" #: trackplacer.lua #, fuzzy msgid "This track can not be rotated!" msgstr "您不能旋转这段轨道。" #: trackplacer.lua msgid "" "Track Worker Tool\n" "\n" "Left-click: change rail type (straight/curve/switch)\n" "Right-click: rotate object" msgstr "" "铁路调整工具\n" "\n" "左键单击:切换轨道类型\n" "右键单击:旋转方块" #: tracks.lua msgid "Position is occupied by a train." msgstr "" #: tracks.lua msgid "There's a Signal Influence Point here." msgstr "" #: tracks.lua msgid "There's a Track Circuit Break here." msgstr "" #: trainhud.lua msgid "OVERRUN RED SIGNAL! Examine situation and reverse train to move again." msgstr "" #: wagonprop_tool.lua msgid "Insufficient privileges to use this!" msgstr "" #: wagonprop_tool.lua #, fuzzy msgid "Wagon Properties Tool" msgstr "车厢属性" #: wagonprop_tool.lua msgid "" "Wagon Properties Tool\n" "Punch a wagon to view and edit the Wagon Properties" msgstr "" #: wagons.lua msgid " units" msgstr "" #: wagons.lua msgid "!!! Train off track !!!" msgstr "" #: wagons.lua msgid "(Doors closed)" msgstr "(车门已关闭)" #: wagons.lua msgid "Allow these players to access your wagon:" msgstr "" #: wagons.lua msgid "Clear 'Disable ARS' flag" msgstr "" #: wagons.lua msgid "Current FC: " msgstr "" #: wagons.lua msgid "" "Destroying wagon with inventory, but inventory is not found? Shouldn't " "happen!" msgstr "" #: wagons.lua msgid "Doors are closed! (Try holding sneak key!)" msgstr "" #: wagons.lua msgid "" "Doors are closed. Use Sneak+rightclick to ignore the closed doors and get " "off." msgstr "车门已关闭,请使用潜行+右键单击下车。" #: wagons.lua msgid "Freight Code:" msgstr "" #: wagons.lua msgid "Get off" msgstr "下车" #: wagons.lua msgid "Get off (forced)" msgstr "强制下车" #: wagons.lua msgid "Line" msgstr "火车线路" #: wagons.lua msgid "Liquid: " msgstr "" #: wagons.lua msgid "Liquid: empty" msgstr "" #: wagons.lua msgid "Missing train_operator privilege" msgstr "" #: wagons.lua msgid "Next FC:" msgstr "" #: wagons.lua msgid "Not a valid wagon id." msgstr "" #: wagons.lua #, fuzzy msgid "Not allowed to do this." msgstr "您不能调整这段轨道。" #: wagons.lua msgid "Onboard Computer" msgstr "" #: wagons.lua msgid "Please specify a player name to transfer ownership to." msgstr "" #: wagons.lua msgid "Prev FC" msgstr "" #: wagons.lua msgid "Remote Routesetting" msgstr "" #: wagons.lua msgid "Routingcode" msgstr "路由码" #: wagons.lua msgid "Save wagon properties" msgstr "保存车厢属性" #: wagons.lua msgid "Select seat:" msgstr "请选择座位:" #: wagons.lua msgid "Show Inventory" msgstr "显示物品栏" #: wagons.lua msgid "Text displayed inside train" msgstr "车厢内部显示" #: wagons.lua msgid "Text displayed outside on train" msgstr "车厢外部显示" #: wagons.lua msgid "That player does not exist!" msgstr "" #: wagons.lua #, fuzzy msgid "That wagon does not exist!" msgstr "这节车厢没有座位。" #: wagons.lua #, fuzzy msgid "The track you are trying to place the wagon on is not long enough!" msgstr "轨道太短。" #: wagons.lua msgid "The wagon's inventory is not empty." msgstr "" #: wagons.lua #, fuzzy msgid "This Wagon ID" msgstr "车厢已满。" #: wagons.lua msgid "This wagon has no seats." msgstr "这节车厢没有座位。" #: wagons.lua msgid "This wagon is full." msgstr "车厢已满。" #: wagons.lua msgid "This wagon is owned by @1, you can't destroy it." msgstr "这是 @1 的车厢,您不能摧毁它。" #: wagons.lua msgid "Train ID" msgstr "" #: wagons.lua msgid "Train overview / coupling control is only shown when the train stands." msgstr "" #: wagons.lua msgid "Train overview /coupling control:" msgstr "" #: wagons.lua msgid "Uninitialized, removing" msgstr "" #: wagons.lua msgid "Wagon @1 ownership changed from @2 to @3" msgstr "" #: wagons.lua msgid "Wagon needs to be decoupled from other wagons in order to destroy it." msgstr "" #: wagons.lua #, fuzzy msgid "Wagon placeholder" msgstr "车厢属性" #: wagons.lua msgid "Wagon properties" msgstr "车厢属性" #: wagons.lua msgid "Wagon road number:" msgstr "" #: wagons.lua msgid "" "Warning: If you destroy this wagon, you only get some steel back! If you are " "sure, hold Sneak and left-click the wagon." msgstr "" "警告:如果您摧毁此车厢,您只能拿到一些钢方块。如果您确定要摧毁这节车厢,请按" "潜行键并左键单击此车厢。" #: wagons.lua msgid "You are not allowed to access the driver stand." msgstr "" #: wagons.lua msgid "You can't get on this wagon." msgstr "" #: wagons.lua #, fuzzy msgid "You don't have the train_operator privilege." msgstr "您没有“@1”权限。" #: wagons.lua msgid "You have been given ownership of wagon @1" msgstr "" #~ msgid "3-way turnout" #~ msgstr "三开道岔" #~ msgid "90+Angle Diamond Crossing Track" #~ msgstr "交叉轨道 (其中一条轨道与坐标轴平行)" #~ msgid "ATC controller" #~ msgstr "ATC 控制器" #~ msgid "" #~ "ATC controller, mode @1\n" #~ "Channel: @2" #~ msgstr "" #~ "ATC 控制器\n" #~ "模式:@1\n" #~ "频道:@2" #~ msgid "Access to @1" #~ msgstr "可前往@1" #~ msgid "Big Industrial Train Engine" #~ msgstr "大型工业用火车头" #~ msgid "Box Wagon" #~ msgstr "货运车厢" #~ msgid "Bumper" #~ msgstr "保险杠" #~ msgid "Can't get on: wagon full or doors closed!" #~ msgstr "无法上车:车门已关闭或车厢已满。" #~ msgid "Can't place: protected position!" #~ msgstr "无法放置:此区域已被保护。" #~ msgid "Command (on)" #~ msgstr "命令 (激活时)" #~ msgid "Default Seat" #~ msgstr "默认座位" #~ msgid "Default Seat (driver stand)" #~ msgstr "默认座位 (司机座位)" #~ msgid "Dep. Speed" #~ msgstr "出发速度" #~ msgid "Deprecated Track" #~ msgstr "请不要使用" #~ msgid "Detailed Steam Engine" #~ msgstr "精细的蒸汽机车" #~ msgid "Detector Rail" #~ msgstr "探测轨道" #~ msgid "Diagonal Diamond Crossing Track" #~ msgstr "交叉轨道" #~ msgid "Door Delay" #~ msgstr "车门关闭时间" #, fuzzy #~ msgid "Driver Stand" #~ msgstr "司机座位" #~ msgid "Driver Stand (left)" #~ msgstr "左侧司机座位" #~ msgid "Driver Stand (right)" #~ msgstr "右侧司机座位" #~ msgid "Driver stand" #~ msgstr "司机座位" #~ msgid "Industrial Train Engine" #~ msgstr "工业用火车头" #~ msgid "Industrial tank wagon" #~ msgstr "液体运输车厢" #~ msgid "Industrial wood wagon" #~ msgstr "木材运输车厢" #~ msgid "Japanese Train Engine" #~ msgstr "高速列车车头" #~ msgid "Japanese Train Inter-Wagon Connection" #~ msgstr "日本火车车钩" #~ msgid "Japanese Train Wagon" #~ msgstr "高速列车车厢" #, fuzzy #~ msgid "Japanese signal pole" #~ msgstr "高速列车车厢" #~ msgid "Kick out passengers" #~ msgstr "踢出乘客" #~ msgid "Loading Track" #~ msgstr "装货轨道" #~ msgid "Lock couples" #~ msgstr "锁定连接处" #~ msgid "Passenger Wagon" #~ msgstr "客车" #, fuzzy #~ msgid "Passenger area" #~ msgstr "客车" #~ msgid "" #~ "Passive Component Naming Tool\n" #~ "\n" #~ "Right-click to name a passive component." #~ msgstr "" #~ "被动元件命名工具\n" #~ "\n" #~ "右键单击命名所选元件。" #~ msgid "Perpendicular Diamond Crossing Track" #~ msgstr "垂直交叉轨道" #~ msgid "Reverse train" #~ msgstr "改变行车方向" #~ msgid "Signal" #~ msgstr "信号灯" #~ msgid "Speed:" #~ msgstr "速度" #~ msgid "Station Code" #~ msgstr "车站代码" #~ msgid "Station Name" #~ msgstr "车站名称" #~ msgid "Station/Stop Track" #~ msgstr "车站轨道" #~ msgid "Steam Engine" #~ msgstr "蒸汽机车" #~ msgid "Stop Time" #~ msgstr "停站时间" #~ msgid "Subway Passenger Wagon" #~ msgstr "地铁车厢" #~ msgid "Target:" #~ msgstr "目标速度" #, fuzzy #~ msgid "This node can't be rotated using the trackworker," #~ msgstr "您不能使用铁路调整工具旋转这个方块。" #~ msgid "This position is protected!" #~ msgstr "这里已被保护。" #~ msgid "This track can not be changed." #~ msgstr "您不能调整这段轨道。" #~ msgid "Track" #~ msgstr "轨道" #, fuzzy #~ msgid "Train " #~ msgstr "已复制列车。" #~ msgid "Unconfigured LuaATC component" #~ msgstr "LuaATC 部件 (未配置)" #~ msgid "Unloading Track" #~ msgstr "卸货轨道" #~ msgid "Use Sneak+rightclick to bypass closed doors!" #~ msgstr "请使用潜行+右键上车。" #~ msgid "Y-turnout" #~ msgstr "对称道岔" #~ msgid "" #~ "You are not allowed to configure this LuaATC component without the @1 " #~ "privilege." #~ msgstr "您没有“@1”权限,不能配置这个 LuaATC 部件。"