/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Copyright (c) 2021 Silverlan
 */

#ifndef __C_PROP_BASE_HPP__
#define __C_PROP_BASE_HPP__

#include "pragma/clientdefinitions.h"
#include "pragma/entities/c_baseentity.h"
#include "pragma/entities/components/c_entity_component.hpp"
#include <pragma/entities/prop/prop_base.h>
#include <pragma/physics/movetypes.h>

namespace pragma {
	class DLLCLIENT CPropComponent final : public BasePropComponent, public CBaseNetComponent {
	  public:
		CPropComponent(BaseEntity &ent) : BasePropComponent(ent) {}
		virtual void Initialize() override;
		virtual void ReceiveData(NetPacket &packet) override;
		virtual void OnEntitySpawn() override;
		virtual void InitializeLuaObject(lua_State *l) override;
		virtual bool ShouldTransmitNetData() const override { return true; }
	  protected:
		PHYSICSTYPE m_propPhysType = PHYSICSTYPE::NONE;
		MOVETYPE m_propMoveType = MOVETYPE::NONE;
	};
};

class DLLCLIENT CBaseProp : public CBaseEntity {
  protected:
};

#endif
