/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include #include namespace XR { AZ::Crc32 Factory::GetPlatformService() { return AZ_CRC_CE("XRPlatformService"); } void Factory::Register(Factory* instance) { AZ::Interface::Register(instance); } void Factory::Unregister(Factory* instance) { AZ::Interface::Unregister(instance); } bool Factory::IsReady() { return AZ::Interface::Get() != nullptr; } Factory& Factory::Get() { Factory* factory = AZ::Interface::Get(); AZ_Assert(factory, "XR::Factory failed to create!!!"); return *factory; } } // namespace XR