Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Added some property details
Browse files Browse the repository at this point in the history
  • Loading branch information
Espen Killi committed Dec 2, 2018
1 parent af66bc7 commit ab41cc1
Show file tree
Hide file tree
Showing 11 changed files with 227 additions and 5 deletions.
7 changes: 6 additions & 1 deletion animals/Animal.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
Animal = {}
Animal = {
type = '',
class = '',
subTypes = {},
stats = {}
}

Animal.className = 'Animal'
Animal.classId = 25.000000
Expand Down
2 changes: 1 addition & 1 deletion animals/AnimalNameManager.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AnimalNameManager = {
names = {},
names = {}, -- array of strings
loadedMapData = false
}

Expand Down
13 changes: 12 additions & 1 deletion economy/Farmland.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
Farmland = {}
Farmland = {
isOwned = false,
npcIndex = 0,
id = 0,
defaultFarmProperty = false,
zWorldPos = 0.0,
xWorldPos = 0.0,
areaInHa = 0.0,
name = '',
priceFactor = 0,
price = 0
}

function Farmland:updatePrice() end
function Farmland:new() end
Expand Down
46 changes: 46 additions & 0 deletions fieldJobs/MissionManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,52 @@ MissionManager = {
transportMissionNextStartTime = 0
}

-- mission table property types
-- g_missionManager.missions
mission = {
vehiclesToLoad = {},
missionDirtyFlag = 0,
spawnedVehicles = false,
field = {},
lastSellChange = 0,
workAreaTypes = {},
ownerFarmId = 0,
isClient = false,
rewardPerHa = 0,
reward = 0,
sprayFactor = 0,
dirtyMask = 0,
nextDirtyFlag = 0,
limeFactor = 0,
reimbursementPerHa = 0,
deleteListeners = {},
sellPoint = {},
vehicles = {},
completionFilter = {}, -- userdata
id = 0,
isServer = false,
isRegistered = false,
completion = 0,
weedFactor = 0,
moneyMultiplier = 0,
isInMissionMap = false,
vehicleGroupIdentifier = 0,
growthState = 0,
expectedLiters = 0,
status = 0,
depositedLiters = 0,
fieldSpraySet = false,
fillType = 0,
generationTime = 0,
vehicleUseCost = 0,
completionModifier = {}, -- userdata
success = false,
type = {},
fieldState = 0,
fieldPercentageDone = 0,
fieldPlowFactor = 0
}

MissionManager.CATEGORY_FIELD = 1.000000
MissionManager.AI_PRICE_MULTIPLIER = 1.000000
MissionManager.MAX_MISSIONS_PER_GENERATION = 4.000000
Expand Down
23 changes: 21 additions & 2 deletions g_animalFoodManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
g_animalFoodManager = {}

g_animalFoodManager.loadedMapData = true
g_animalFoodManager.foodGroups = {}
g_animalFoodManager.foodMixtures = {}
g_animalFoodManager.foodGroups = {
PIG = {
content = {
1 = {
productionWeight = 0.49999999813735,
eatWeight = 0.49999999813735,
title = 'Base food',
fillTypes = {}
}
}
}
g_animalFoodManager.foodMixtures = {
48 = {
ingredients = {
1 = {
weight = 0.49999999813735,
fillTypes = {}
}
}
}
}
g_animalFoodManager.animalFoodMixtures = {}
12 changes: 12 additions & 0 deletions misc/BaleTypeManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ BaleTypeManager = {
baleTypes = {}
}

-- baleType table property types
baleType = {
filename = '.i3d',
width = 0.0,
fillTypeName = '',
index = 0,
diameter = 0.0,
length = 0.0,
isRoundbale = false,
height = 0.0
}

function BaleTypeManager:new() end
function BaleTypeManager:addBaleType() end
function BaleTypeManager:class() end
Expand Down
50 changes: 50 additions & 0 deletions misc/FruitTypeManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,56 @@ FruitTypeManager = {
nameToFruitType = {}
}

-- fruitType table property types
-- g_fruitTypeManager.fruitTypes
fruitType = {
groundTypeChangeGrowthState = 0,
destroyedByRoller = false,
useForFieldJob = false,
alignsToSun = false,
shownOnMap = false,
groundTypeChangeMask = 0,
needsSeeding = false,
directionSnapAngle = 0,
minHarvestingGrowthState = 0,
minForageGrowthState = 0,
witheringNumGrowthStates = 0,
literPerSqm = 0.0,
minPreparingGrowthState = 0,
startSprayState = 0,
allowsPartialGrowthState = false,
allowsSeeding = false,
numStateChannels = 0,
regrows = false,
numGrowthStates = 0,
windrowLiterPerSqm = 0,
destruction = {},
startStateChannel = 0,
fillType = {},
lowSoilDensityRequired = false,
plantsWeed = false,
increasesSoilDensity = false,
preparedGrowthState = 0,
missionMultiplier = 0,
maxPreparingGrowthState = 0,
consumesLime = false,
resetsSpray = false,
seedUsagePerSqm = 0.0,
name = '',
windrowName = '',
hasWindrow = false,
index = 0,
groundTypeChanged = 0,
useSeedingWidth = false,
growthRequiresLime = false,
maxHarvestingGrowthState = 6,
defaultMapColor = {},
growthStateTime = 0,
colorBlindMapColor = {},
layerName = '',
cutState = 8
}

FruitTypeManager.GROUND_TYPE_CULTIVATOR = 1.000000
FruitTypeManager.GROUND_TYPE_NONE = 0.000000
FruitTypeManager.SEND_NUM_BITS = 6.000000
Expand Down
21 changes: 21 additions & 0 deletions misc/ModManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ ModManager = {
hashToMod = {}
}

-- mod table property types
-- g_modManager.mods
mod = {
isPreorderBonus = false,
isMultiplayerSupported = false,
version = '',
id = 0,
isDirectory = false,
modDescVersion = 0,
absBaseFilename = '',
modName = '',
isDLC = false,
iconFilename = '',
title = '',
modDir = '',
modFile = '',
fileHash = '',
description = '',
author = ''
}

function ModManager:addMod() end
function ModManager:getModByFileHash() end
function ModManager:getModByIndex() end
Expand Down
13 changes: 13 additions & 0 deletions misc/SprayTypeManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ SprayTypeManager = {
indexToName = {}
}

-- sprayType table property types
-- g_sprayTypeManager.sprayTypes
sprayType = {
litersPerSecond = 0.0,
fillType = {},
groundType = 0,
index = 0,
isLime = false,
isFertilizer = false,
name = '',
isHerbicide = false
}

function SprayTypeManager:new() end
function SprayTypeManager:initDataStructures() end
function SprayTypeManager:loadMapData() end
Expand Down
9 changes: 9 additions & 0 deletions shop/BrandManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ BrandManager = {
indexToBrand = {}
}

-- brand table property types
brand = {
isMod = false,
title = '',
index = 0,
name = '',
image = '' -- image file path
}

function BrandManager:getBrandByName() end
function BrandManager:new() end
function BrandManager:class() end
Expand Down
36 changes: 36 additions & 0 deletions shop/StoreManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,42 @@ StoreManager.CATEGORY_TYPE = {
OBJECT = 'OBJECT'
}

-- item table property types
-- g_storeManager.items
item = {
lifetime = 0,
allowLeasing = false,
dailyUpkeep = 0,
id = 0,
isBundleItem = false,
sharedVramUsage = 0,
xmlFilenameLower = '',
price = 0,
isMod = false,
species = '',
dlcTitle = '',
shopFoldingState = 0,
shopRotationOffset = {},
functions = {},
showInStore = false,
subConfigurations = {},
brandIndex = 0,
xmlFileName = '',
runningLeasingFactor = 0.0,
categoryName = '',
canBeSold = false,
perInstanceVramUsage = 0,
configurations = {},
imageFilename = '',
ignoreVramUsage = false,
configurationSets = {},
shopHeight = 0,
name = '',
rotation = 0,
shopTranslationOffset = {},
specs = {}
}

function StoreManager:loadItemsFromXML() end
function StoreManager:getItems() end
function StoreManager:new() end
Expand Down

0 comments on commit ab41cc1

Please sign in to comment.