Add files via upload
This commit is contained in:
14
LWGlass/README.md
Normal file
14
LWGlass/README.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Name: LW+
|
||||||
|
Author: Astronand
|
||||||
|
Version: 0.0.1 alpha
|
||||||
|
|
||||||
|
___________________________________
|
||||||
|
|
||||||
|
This is a core mod
|
||||||
|
|
||||||
|
Addons:
|
||||||
|
|
||||||
|
Deco:
|
||||||
|
Microprocessors:
|
||||||
|
Vanilla expansion:
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
Glass:
|
Glass:
|
||||||
column: "Miscellaneous"
|
column: "Miscellaneous"
|
||||||
category: "Structural"
|
category: "Structural"
|
||||||
prefab:
|
prefab:
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user