Implementing starfall version of engine
This commit is contained in:
28
koptilnya/engine/gearboxes/base.txt
Normal file
28
koptilnya/engine/gearboxes/base.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
Gearbox = class("Gearbox")
|
||||
|
||||
function Gearbox:initialize(options)
|
||||
options = options or {}
|
||||
|
||||
self.ratios = options.ratios
|
||||
self.finalDrive = options.finalDrive
|
||||
|
||||
self._linkedDiffs = {}
|
||||
|
||||
self.gear = 0
|
||||
end
|
||||
|
||||
function Gearbox:linkDiff(diff)
|
||||
table.insert(self._linkedDiffs, diff)
|
||||
end
|
||||
|
||||
function Gearbox:shift(dir)
|
||||
|
||||
end
|
||||
|
||||
function Gearbox:setGear(gear)
|
||||
self.gear = gear
|
||||
end
|
||||
|
||||
function Gearbox:update()
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user