Mod.io example

This commit is contained in:
Lucas 2020-04-08 19:11:21 +02:00
parent cb07dbaa2b
commit 77c0f5cbbf
8 changed files with 125 additions and 0 deletions

View file

@ -0,0 +1,13 @@
-- This is a generated file
-- Do not modify it, unless you know exactly what you are doing
ModId = "b8471b52-6089-4dbf-98cf-0b7faf1f06ca"
IdMap = {
{ "BROTHEL", "BUILDING_PART", "7195bf3a-b86e-46fe-b694-c03659119570" },
{ "BROTHEL", "", "00000000-0000-0000-0000-000000000000" },
{ "BROTHEL", "", "00000000-0000-0000-0000-000000000000" },
{ "BROTHEL", "", "00000000-0000-0000-0000-000000000000" },
{ "models/Brothel_base.fbx", "", "93cc1a96-9874-435f-8734-6626af083d3a" },
{ "models/PolygonPrototype_Texture_03.png", "", "60a49bc3-7598-4137-b8fe-0ba016806d1e" },
}

View file

@ -0,0 +1,10 @@
{
"BUILDINGS": {
"BROTHEL_NAME":"Brothel"
},
"BUILDING_DESCRIPTIONS": {
"BROTHEL_DESC":"A giant decorative boulder"
}
}

View file

@ -0,0 +1,10 @@
{
"BUILDINGS": {
"BROTHEL_NAME":"Bordel"
},
"BUILDING_DESCRIPTIONS": {
"BROTHEL_DESC":"Un bordel"
}
}

13
BrothelSystem/mod.json Normal file
View file

@ -0,0 +1,13 @@
{
"Name": "Brothel system",
"Author": "Lucastucious",
"Description": "A Brothel system",
"Version": "0.1.0",
"AdditionalLanguageList": [
{
"Name": "French",
"Code": "fr"
}
]
}

29
BrothelSystem/mod.lua Normal file
View file

@ -0,0 +1,29 @@
local mod = foundation.createMod();
mod:registerAssetId("models/Brothel_base.fbx/Prefab/Brothel", "PREFAB_BROTHEL")
mod:register({
DataType = "BUILDING",
Id = "BROTHEL",
Name = "BROTHEL_NAME",
Description = "BROTHEL_DESC",
BuildingType = "GENERAL",
BuildingPartSetList = {
{
Name = "BROTHEL_NAME",
BuildingPartList = { "BROTHEL" }
}
}
})
mod:register({
DataType = "BUILDING_PART",
Id = "BROTHEL",
Name = "BROTHEL_NAME",
Description = "BROTHEL_DESC",
Category = "GENERAL",
ConstructorData = {
DataType = "BUILDING_CONSTRUCTOR_DEFAULT",
CoreObjectPrefab = "PREFAB_BROTHEL"
}
})

Binary file not shown.

View file

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<meta id="93cc1a96-9874-435f-8734-6626af083d3a">
<meta id="09628e3b-9701-4b88-9b53-1a87b78a2ffa" type="group" folder="true" name="Materials">
<meta id="844a5d6f-e5c8-4adb-92b3-9d00ce49b352" name="lambert57"/>
</meta>
<meta id="d6511ecf-51d1-43a3-b15f-bb80f6cb32ee" type="group" folder="true" name="Meshes">
<meta id="c6d6b082-9d8a-48ea-a3a6-addc28ed60a4" name="SM_Generic_Tree_02_lambert57"/>
</meta>
<meta id="e8e9bf2d-31b1-489e-93b1-7223b1ef872d" name="Prefab">
<meta id="bcbb7028-18e8-46f6-abd2-1fafa869db2d" name="Brothel">
<meta id="421141c2-562f-4480-a1c6-eb8631f0788a" name="SM_Generic_Tree_02"/>
</meta>
</meta>
</meta>
<importer type="GamCFbxImporterConfiguration">
<Md5Checksum value="864e32e644f2c26a46c9ffb9d8a77183"/>
<Scale value="0.01"/>
<PatchMeshOffset value="true"/>
<UniqueNodeName value="false"/>
<ImportAnimation value="false"/>
<FlipXAxis value="true"/>
<ForceNormalUp value="false"/>
<MergeDuplicateMeshes value="true"/>
<GenerateLod value="false"/>
<OverrideExistingLod value="false"/>
<NodeConfig type="GenCFbxNodeConfig">
<LodConfig value="00000000-0000-0000-0000-000000000000"/>
<ChildList>
<Item type="GenCFbxNodeConfig">
<LodConfig value="00000000-0000-0000-0000-000000000000"/>
<ChildList>
<Item type="GenCFbxNodeConfig">
<LodConfig value="00000000-0000-0000-0000-000000000000"/>
<ChildList/>
<NodeName value="SM_Generic_Tree_02"/>
</Item>
</ChildList>
<NodeName value="Brothel"/>
</Item>
</ChildList>
<NodeName value="Prefab"/>
</NodeConfig>
<MaterialList>
<Item type="GamCDataMaterialPair">
<MaterialGuid value="844a5d6f-e5c8-4adb-92b3-9d00ce49b352"/>
<MaterialName value="lambert57"/>
</Item>
</MaterialList>
</importer>

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB