mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
init
This commit is contained in:
48
lua/metrostroi/systems/sys_ekg_17b.lua
Normal file
48
lua/metrostroi/systems/sys_ekg_17b.lua
Normal file
@@ -0,0 +1,48 @@
|
||||
--------------------------------------------------------------------------------
|
||||
-- Rheostat controller for 81-710/81-717 (ЕКГ-17B)
|
||||
--------------------------------------------------------------------------------
|
||||
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
|
||||
-- Contains proprietary code. See license.txt for additional information.
|
||||
--------------------------------------------------------------------------------
|
||||
Metrostroi.DefineSystem("EKG_17B")
|
||||
|
||||
function TRAIN_SYSTEM:Initialize()
|
||||
-- Rheostat configuration
|
||||
self.Configuration = {
|
||||
-- ## 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
|
||||
[ 1] = { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 },
|
||||
[ 2] = { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0 },
|
||||
[ 3] = { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
|
||||
[ 4] = { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0 },
|
||||
[ 5] = { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 },
|
||||
[ 6] = { 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0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 0, 0, 0, 0, 0 },
|
||||
[18] = { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1 },
|
||||
}
|
||||
self.WrapsAround = true
|
||||
self.RotationRate = 1.0/0.14
|
||||
Metrostroi.BaseSystems["EKG"].Initialize(self)
|
||||
end
|
||||
|
||||
function TRAIN_SYSTEM:Inputs(...)
|
||||
return Metrostroi.BaseSystems["EKG"].Inputs(self,...)
|
||||
end
|
||||
function TRAIN_SYSTEM:Outputs(...)
|
||||
return Metrostroi.BaseSystems["EKG"].Outputs(self,...)
|
||||
end
|
||||
function TRAIN_SYSTEM:TriggerInput(...)
|
||||
return Metrostroi.BaseSystems["EKG"].TriggerInput(self,...)
|
||||
end
|
||||
function TRAIN_SYSTEM:Think(...)
|
||||
return Metrostroi.BaseSystems["EKG"].Think(self,...)
|
||||
end
|
||||
Reference in New Issue
Block a user