Esempio n. 1
0
        ///////////////////////////////System presence detection///////////////////////////////

        public static bool IsPresent(Decal.Adapter.Wrappers.PluginHost pHost, eViewSystem VSystem)
        {
            switch (VSystem)
            {
                case eViewSystem.DecalInject:
                    return true;
                case eViewSystem.VirindiViewService:
                    return VirindiViewsPresent(pHost);
                default:
                    return false;
            }
        }
Esempio n. 2
0
        ///////////////////////////////System presence detection///////////////////////////////

        public static bool IsPresent(Decal.Adapter.Wrappers.PluginHost pHost, eViewSystem VSystem)
        {
            switch (VSystem)
            {
            case eViewSystem.DecalInject:
                return(true);

            case eViewSystem.VirindiViewService:
                return(VirindiViewsPresent(pHost));

            default:
                return(false);
            }
        }
Esempio n. 3
0
        public static IView CreateViewXML(Decal.Adapter.Wrappers.PluginHost pHost, string pXML, eViewSystem VSystem)
        {
            if (!IsPresent(pHost, VSystem)) return null;
            switch (VSystem)
            {
                case eViewSystem.DecalInject:
                    return CreateDecalViewXML(pHost, pXML);
                case eViewSystem.VirindiViewService:
#if VVS_REFERENCED
                    return CreateMyHudViewXML(pHost, pXML);
#else
                    break;
#endif
            }
            return null;
        }
Esempio n. 4
0
        public static IView CreateViewXML(Decal.Adapter.Wrappers.PluginHost pHost, string pXML, eViewSystem VSystem)
        {
            if (!IsPresent(pHost, VSystem))
            {
                return(null);
            }
            switch (VSystem)
            {
            case eViewSystem.DecalInject:
                return(CreateDecalViewXML(pHost, pXML));

            case eViewSystem.VirindiViewService:
#if VVS_REFERENCED
                return(CreateMyHudViewXML(pHost, pXML));
#else
                break;
#endif
            }
            return(null);
        }