Implemented engine

This commit is contained in:
Ivan Grachyov
2021-11-09 22:32:12 +05:00
parent e2c1c4bc88
commit 8a426a1d5c
7 changed files with 182 additions and 46 deletions

View File

@@ -4,7 +4,14 @@ require("./base.txt")
ManualGearbox = class("ManualGearbox")
function ManualGearbox:initialize(options)
-- create base gearbox inside
options = options or {}
-- might want to segregate construction options for base gearbox
self.base = Gearbox:new(options)
end
-- proxy the methods here
function ManualGearbox:linkClutch(clutch)
return self.base:linkClutch(clutch)
end
-- proxy the methods here