コード例 #1
0
ファイル: PrototypingService.cs プロジェクト: coreafive/XLE
        IAdaptable IResourceConverter.Convert(IResource resource)
        {
            IPrototype prototype = resource as IPrototype;

            return((prototype != null) ? prototype.CreateInstance().As <IAdaptable>() : null);
        }
コード例 #2
0
        IGameObject IResourceConverter.Convert(IResource resource)
        {
            IPrototype prototype = resource as IPrototype;

            return((prototype != null) ? prototype.CreateInstance() : null);
        }