-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KOTOR2: Add back modules and areas with doors and placeables
- Loading branch information
Showing
8 changed files
with
314 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* xoreos - A reimplementation of BioWare's Aurora engine | ||
* | ||
* xoreos is the legal property of its developers, whose names can be | ||
* found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* | ||
* The Infinity, Aurora, Odyssey, Eclipse and Lycium engines, Copyright (c) BioWare corp. | ||
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp. | ||
*/ | ||
|
||
/** @file engines/kotor2/area.cpp | ||
* KotOR2 area. | ||
*/ | ||
|
||
#include "engines/kotor2/area.h" | ||
|
||
namespace Engines { | ||
|
||
namespace KotOR2 { | ||
|
||
Area::Area() { | ||
} | ||
|
||
Area::~Area() { | ||
} | ||
|
||
} // End of namespace KotOR2 | ||
|
||
} // End of namespace Engines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* xoreos - A reimplementation of BioWare's Aurora engine | ||
* | ||
* xoreos is the legal property of its developers, whose names can be | ||
* found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* | ||
* The Infinity, Aurora, Odyssey, Eclipse and Lycium engines, Copyright (c) BioWare corp. | ||
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp. | ||
*/ | ||
|
||
/** @file engines/kotor2/area.h | ||
* KotOR2 area. | ||
*/ | ||
|
||
#ifndef ENGINES_KOTOR2_AREA_H | ||
#define ENGINES_KOTOR2_AREA_H | ||
|
||
#include "engines/kotor/area.h" | ||
|
||
namespace Engines { | ||
|
||
namespace KotOR2 { | ||
|
||
class Area : public Engines::KotOR::Area { | ||
public: | ||
Area(); | ||
~Area(); | ||
}; | ||
|
||
} // End of namespace KotOR2 | ||
|
||
} // End of namespace Engines | ||
|
||
#endif // ENGINES_KOTOR2_AREA_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* xoreos - A reimplementation of BioWare's Aurora engine | ||
* | ||
* xoreos is the legal property of its developers, whose names can be | ||
* found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* | ||
* The Infinity, Aurora, Odyssey, Eclipse and Lycium engines, Copyright (c) BioWare corp. | ||
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp. | ||
*/ | ||
|
||
/** @file engines/kotor2/model.cpp | ||
* Utility functions for Star Wars: Knights of the Old Republic II - The Sith Lords models. | ||
*/ | ||
|
||
#include "common/maths.h" | ||
|
||
#include "graphics/aurora/sceneman.h" | ||
#include "graphics/aurora/model_kotor.h" | ||
|
||
#include "engines/kotor2/model.h" | ||
|
||
namespace Engines { | ||
|
||
namespace KotOR2 { | ||
|
||
Graphics::Aurora::Model_KotOR *createWorldModel(const Common::UString &model, const Common::UString &texture) { | ||
Graphics::Aurora::Model_KotOR *modelInstance = (Graphics::Aurora::Model_KotOR *) SceneMan.createModel(model, texture); | ||
|
||
modelInstance->setBaseOrientation(Common::deg2rad(-90.0), 1.0, 0.0, 0.0); | ||
|
||
return modelInstance; | ||
} | ||
|
||
void destroyModel(Graphics::Aurora::Model_KotOR *model) { | ||
SceneMan.destroy(model); | ||
} | ||
|
||
} // End of namespace KotOR2 | ||
|
||
} // End of namespace Engines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* xoreos - A reimplementation of BioWare's Aurora engine | ||
* | ||
* xoreos is the legal property of its developers, whose names can be | ||
* found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* | ||
* The Infinity, Aurora, Odyssey, Eclipse and Lycium engines, Copyright (c) BioWare corp. | ||
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp. | ||
*/ | ||
|
||
/** @file engines/kotor2/model.h | ||
* Utility functions for Star Wars: Knights of the Old Republic II - The Sith Lords models. | ||
*/ | ||
|
||
#ifndef ENGINES_KOTOR2_MODEL_H | ||
#define ENGINES_KOTOR2_MODEL_H | ||
|
||
namespace Graphics { | ||
namespace Aurora { | ||
class Model_KotOR; | ||
} | ||
} | ||
|
||
namespace Engines { | ||
|
||
namespace KotOR2 { | ||
|
||
Graphics::Aurora::Model_KotOR *createWorldModel(const Common::UString &model, const Common::UString &texture = ""); | ||
|
||
void destroyModel(Graphics::Aurora::Model_KotOR *model); | ||
|
||
} // End of namespace KotOR2 | ||
|
||
} // End of namespace Engines | ||
|
||
#endif // ENGINES_KOTOR2_MODEL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* xoreos - A reimplementation of BioWare's Aurora engine | ||
* | ||
* xoreos is the legal property of its developers, whose names can be | ||
* found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* | ||
* The Infinity, Aurora, Odyssey, Eclipse and Lycium engines, Copyright (c) BioWare corp. | ||
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp. | ||
*/ | ||
|
||
/** @file engines/kotor2/module.cpp | ||
* The context needed to run a KotOR2 module. | ||
*/ | ||
|
||
#include "engines/kotor2/module.h" | ||
#include "engines/kotor2/area.h" | ||
|
||
namespace Engines { | ||
|
||
namespace KotOR2 { | ||
|
||
Module::Module() : Engines::KotOR::Module() { | ||
} | ||
|
||
Module::~Module() { | ||
} | ||
|
||
::Engines::KotOR::Area *Module::createArea() const { | ||
return new ::Engines::KotOR2::Area; | ||
} | ||
|
||
} // End of namespace KotOR2 | ||
|
||
} // End of namespace Engines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* xoreos - A reimplementation of BioWare's Aurora engine | ||
* | ||
* xoreos is the legal property of its developers, whose names can be | ||
* found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* | ||
* The Infinity, Aurora, Odyssey, Eclipse and Lycium engines, Copyright (c) BioWare corp. | ||
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp. | ||
*/ | ||
|
||
/** @file engines/kotor2/module.h | ||
* The context needed to run a KotOR2 module. | ||
*/ | ||
|
||
#ifndef ENGINES_KOTOR2_MODULE_H | ||
#define ENGINES_KOTOR2_MODULE_H | ||
|
||
#include "engines/kotor/module.h" | ||
|
||
namespace Engines { | ||
|
||
namespace KotOR { | ||
class Area; | ||
} | ||
|
||
namespace KotOR2 { | ||
|
||
class Module : public Engines::KotOR::Module { | ||
public: | ||
Module(); | ||
~Module(); | ||
|
||
protected: | ||
::Engines::KotOR::Area *createArea() const; | ||
}; | ||
|
||
} // End of namespace KotOR2 | ||
|
||
} // End of namespace Engines | ||
|
||
#endif // ENGINES_KOTOR2_MODULE_H |