Sprache Deutsch Language English

Script Dokumentation LS 2015 - SplitUtil (Patch 1.3)

Script Dokumentation Übersicht

scripts/SplitUtil.lua

Copyright (c) 2008-2015 GIANTS Software GmbH, Confidential, All Rights Reserved.
This document is to be published solely by ls-mods.de
1-- Copyright (C) GIANTS Software GmbH, Confidential, All Rights Reserved.
2
3SplitUtil = {};
4SplitUtil.splitTypes = {};
5
6function SplitUtil.registerSplitType(name, splitType, pricePerLiter, woodChipsPerLiter, allowsWoodHarvester)
7 if SplitUtil.splitTypes[splitType] == nil then
8 local desc = {};
9 desc.name = name;
10 desc.splitType = splitType;
11 desc.pricePerLiter = pricePerLiter;
12 desc.woodChipsPerLiter = woodChipsPerLiter;
13 desc.allowsWoodHarvester = allowsWoodHarvester;
14 SplitUtil.splitTypes[splitType] = desc;
15 end
16end;
Copyright (c) 2008-2015 GIANTS Software GmbH, Confidential, All Rights Reserved.
This document is to be published solely by ls-mods.de
Script Dokumentation Übersicht