// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Core/Types/String.h" #include "Engine/Scripting/ScriptingObject.h" API_INJECT_CPP_CODE("#include \"Engine/Platform/User.h\""); /// /// Native platform user object. /// API_CLASS(NoSpawn, NoConstructor, Sealed, Name="User") class FLAXENGINE_API UserBase : public ScriptingObject { DECLARE_SCRIPTING_TYPE_NO_SPAWN(UserBase); protected: const String _name; public: UserBase(const String& name); UserBase(const SpawnParams& params, const String& name); /// /// Gets the username. /// API_PROPERTY() String GetName() const; };