added lights to some maps

fixed light type export
This commit is contained in:
devZoGok
2024-09-13 20:45:30 +03:00
parent 12a94b7fd3
commit dea5cf6e49
4 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ namespace battleship{
string mapScript = "map = {\nlights = {\n";
for(Node *light : map->getLights()){
mapScript += "{type = " + to_string((int)light->getLight(0)->getType());
mapScript += "{type = " + to_string((int)light->getLight(0)->getLightType());
if(light->getLight(0)->getLightType() == Light::Type::DIRECTIONAL){
Vector3 dir = light->getGlobalAxis(2);