aboutsummaryrefslogtreecommitdiff
path: root/src/content_abm.h
blob: 0a91a96a2f3a7ddb1bcfb9c8bd021b3421ff6ef8 (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
/*
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.
*/

#ifndef CONTENT_ABM_HEADER
#define CONTENT_ABM_HEADER

class ServerEnvironment;
class INodeDefManager;

/*
	Legacy ActiveBlockModifiers
*/

void add_legacy_abms(ServerEnvironment *env, INodeDefManager *nodedef);

#endif

ass="hl kwa">end return end if not F.has_rc(rev_rc) then --not our train. disregard atc_set_ars_disable(false) return end if rm_rc then F.remove_rc({rev_rc}) end schedule_in(";01",atc_id) return end if event.schedule then if not atc_id then --bounce the train that just passed atc_send_to_train(event.msg,"B0WRD1A1S3") else if atc_id == event.msg then --train hasn't fully passed yet, wait a bit longer schedule_in(";01",atc_id) else -- somehow another train crossed the controller before the first one returned. Unlikely but possible atc_send_to_train(event.msg,"BBOL") atc_send("BBOL") end end end