Add files via upload

This commit is contained in:
Astronand
2025-03-30 18:01:39 -04:00
committed by GitHub
parent d1303c547a
commit f33fab7662
4 changed files with 50 additions and 5 deletions

14
LWGlass/README.md Normal file
View File

@@ -0,0 +1,14 @@
Name: LW+
Author: Astronand
Version: 0.0.1 alpha
___________________________________
This is a core mod
Addons:
Deco:
Microprocessors:
Vanilla expansion:

View File

@@ -1,4 +1,4 @@
Glass: Glass:
column: "Miscellaneous" column: "Miscellaneous"
category: "Structural" category: "Structural"
prefab: prefab:

View File

@@ -1,7 +1,7 @@
ID: LWGlass ID: LWGlass
Name: LWGlass Name: LWGlass
Author: Astronand Author: Astronand
Version: 1.0.0 Version: 0.0.1
Priority: 0 Priority: 0
Dependencies: Dependencies:
- AssemblyLoader - AssemblyLoader

View File

@@ -69,7 +69,7 @@ namespace LWGlass.Client
protected override ChildPlacementInfo GenerateChildPlacementInfo() protected override ChildPlacementInfo GenerateChildPlacementInfo()
{ {
ChildPlacementInfo childPlacementInfo = new ChildPlacementInfo(); ChildPlacementInfo childPlacementInfo = new ChildPlacementInfo();
childPlacementInfo.Points = new FixedPlacingPoint[SizeZ * SizeX]; childPlacementInfo.Points = new FixedPlacingPoint[SizeZ * SizeX * 2];
int i = 0; int i = 0;
for (int iX = 0; iX < SizeX; iX++) for (int iX = 0; iX < SizeX; iX++)
@@ -78,11 +78,42 @@ namespace LWGlass.Client
{ {
childPlacementInfo.Points[i++] = new FixedPlacingPoint() childPlacementInfo.Points[i++] = new FixedPlacingPoint()
{ {
Position = new Vector3(iX, .5f, iZ) Position = new Vector3(iX, .5f, iZ),
UpDirection = new Vector3(0, 1, 0)
};
childPlacementInfo.Points[i++] = new FixedPlacingPoint()
{
Position = new Vector3(iX, 0, iZ),
UpDirection = new Vector3(0, -1, 0)
}; };
} }
} }
//for (int SX1 = 0; SX1 < SizeX; SX1++)
//{
// childPlacementInfo.Points[i++] = new FixedPlacingPoint()
// {
// Position = new Vector3(SX1, 0, -.3f ),
// UpDirection = new Vector3(0, 0, -1)
// };
// childPlacementInfo.Points[i++] = new FixedPlacingPoint()
// {
// Position = new Vector3(SX1, 0, SizeZ+.3f ),
// UpDirection = new Vector3(0, 0, 1)
// };
//}
//for (int SX1 = 0; SX1 < SizeZ; SX1++)
//{
// childPlacementInfo.Points[i++] = new FixedPlacingPoint()
// {
// Position = new Vector3(-.3f, 0, SX1 ),
// UpDirection = new Vector3(-1, 0, 0)
// };
// childPlacementInfo.Points[i++] = new FixedPlacingPoint()
// {
// Position = new Vector3(SizeX+.3f, 0, SX1 ),
// UpDirection = new Vector3(1, 0, 0)
// };
//}
return childPlacementInfo; return childPlacementInfo;
} }
protected override IDecoration[] GenerateDecorations(Transform parentToCreateDecorationsUnder) protected override IDecoration[] GenerateDecorations(Transform parentToCreateDecorationsUnder)