1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 07:07:13 +02:00

WIP inventory prototyping.

This commit is contained in:
Sandu Liviu Catalin
2021-04-01 22:00:04 +03:00
parent 8dfeba7719
commit 41f7c4f75f
4 changed files with 80 additions and 0 deletions

19
module/Core/Inventory.cpp Normal file
View File

@ -0,0 +1,19 @@
// ------------------------------------------------------------------------------------------------
#include "Core/Inventory.hpp"
// ------------------------------------------------------------------------------------------------
#include <cstring>
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
// ================================================================================================
void Register_Inventory(HSQUIRRELVM vm)
{
}
} // Namespace:: SqMod

58
module/Core/Inventory.hpp Normal file
View File

@ -0,0 +1,58 @@
#pragma once
// ------------------------------------------------------------------------------------------------
#include "Core/Utility.hpp"
#include "Base/Vector3.hpp"
#include "Base/Quaternion.hpp"
// ------------------------------------------------------------------------------------------------
#include <array>
#include <vector>
#include <random>
#include <chrono>
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/* ------------------------------------------------------------------------------------------------
* Built-in inventory.
*/
class InventoryManager
{
public:
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
InventoryManager() = default;
/* --------------------------------------------------------------------------------------------
* Copy constructor. (disabled)
*/
InventoryManager(const InventoryManager & o) = delete;
/* --------------------------------------------------------------------------------------------
* Move constructor. (disabled)
*/
InventoryManager(InventoryManager && o) = delete;
/* --------------------------------------------------------------------------------------------
* Destructor.
*/
~InventoryManager() = default;
/* --------------------------------------------------------------------------------------------
* Copy assignment operator. (disabled)
*/
InventoryManager & operator = (const InventoryManager & o) = delete;
/* --------------------------------------------------------------------------------------------
* Copy assignment operator. (disabled)
*/
InventoryManager & operator = (InventoryManager && o) = delete;
private:
};
} // Namespace:: SqMod