Add float3 return type to connected blocks move func
This commit is contained in:
parent
d2a870b95c
commit
1bee05612b
1 changed files with 3 additions and 1 deletions
|
@ -89,8 +89,9 @@ namespace ExtraCommands.Building
|
||||||
return posStruct.position;
|
return posStruct.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TranslateConnectedBlocks(uint blockID, float3 translationVector)
|
private float3 TranslateConnectedBlocks(uint blockID, float3 translationVector)
|
||||||
{
|
{
|
||||||
|
newPosition = TranslateSingleBlock(blockID, translationVector);
|
||||||
uint count = this.entitiesDB.Count<PositionEntityStruct>(CommonExclusiveGroups.OWNED_BLOCKS_GROUP);
|
uint count = this.entitiesDB.Count<PositionEntityStruct>(CommonExclusiveGroups.OWNED_BLOCKS_GROUP);
|
||||||
Stack<uint> cubeStack = new Stack<uint>(count);
|
Stack<uint> cubeStack = new Stack<uint>(count);
|
||||||
FasterList<uint> cubeList = new FasterList<uint>(count);
|
FasterList<uint> cubeList = new FasterList<uint>(count);
|
||||||
|
@ -99,6 +100,7 @@ namespace ExtraCommands.Building
|
||||||
{
|
{
|
||||||
TranslateSingleBlock(id, translationVector);
|
TranslateSingleBlock(id, translationVector);
|
||||||
}
|
}
|
||||||
|
return newPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
// unused; for future reference
|
// unused; for future reference
|
||||||
|
|
Loading…
Reference in a new issue