Exemplo n.º 1
0
        public FaceAnimationFactory(Hangout.Shared.Action finishedLoadingFaceAnimationAssets)
        {
            // TODO: Put in a better loading handler which processes all three of these in parallel.
            ClientAssetRepository clientAssetRepository = GameFacade.Instance.RetrieveProxy <ClientAssetRepository>();

            if (mSimpleUvAnimationsXml != null && mComplexUvAnimationsXml != null && mMoodToXml != null)
            {
                SetupSimpleUvAnimations(mSimpleUvAnimationsXml);
                SetupComplexUvAnimations(mComplexUvAnimationsXml);
                SetupMoodNameToXmlLookUp(mMoodToXml);
            }
            else
            {
                // The simple uvs must be created first since the complex uvs rely on them to be constructed.
                clientAssetRepository.LoadAssetFromPath <XmlAsset>(SIMPLE_UV_ANIMATION_LOOKUP_PATH, delegate(XmlAsset simpleUvAnimationsXmlAsset)
                {
                    mSimpleUvAnimationsXml = simpleUvAnimationsXmlAsset.XmlDocument;
                    SetupSimpleUvAnimations(simpleUvAnimationsXmlAsset.XmlDocument);
                    clientAssetRepository.LoadAssetFromPath <XmlAsset>(COMPLEX_UV_ANIMATION_LOOKUP_PATH, delegate(XmlAsset complexUvAnimationsXmlAsset)
                    {
                        mComplexUvAnimationsXml = complexUvAnimationsXmlAsset.XmlDocument;
                        SetupComplexUvAnimations(complexUvAnimationsXmlAsset.XmlDocument);
                        clientAssetRepository.LoadAssetFromPath <XmlAsset>(AVATAR_MOOD_TO_XML_LOOKUP_PATH, delegate(XmlAsset moodToXml)
                        {
                            mMoodToXml = moodToXml.XmlDocument;
                            SetupMoodNameToXmlLookUp(moodToXml.XmlDocument);
                            finishedLoadingFaceAnimationAssets();
                        });
                    });
                });
            }
        }
Exemplo n.º 2
0
 public Receipt(Hangout.Shared.Action onExit)
 {
     if (onExit == null)
     {
         throw new ArgumentNullException("onExit");
     }
     mOnExit = onExit;
 }
Exemplo n.º 3
0
 public ReporterReceipt(Hangout.Shared.Action cleanupReporter)
 {
     if (cleanupReporter == null)
     {
         throw new ArgumentNullException("cleanupReporter");
     }
     mCleanupReporter = cleanupReporter;
 }
Exemplo n.º 4
0
 public PurchaseCompleteState(Window guiWindow, Hangout.Shared.Action backToStoreSelector)
     : base(guiWindow)
 {
     mPurchaseCompleteFrame = GuiWindow.SelectSingleElement <GuiFrame>("MainFrame/PurchaseCompleteFrame");
     mOkButton = GuiWindow.SelectSingleElement <Button>("MainFrame/PurchaseCompleteFrame/OkButton");
     mOkButton.AddOnPressedAction(delegate()
     {
         backToStoreSelector();
     });
 }
Exemplo n.º 5
0
        public StoreSelectionState(Window guiWindow, Action <string> openStore, Hangout.Shared.Action closeInventoryGui)
            : base(guiWindow)
        {
            mOpenStore = openStore;

            mStoreSelectorFrame = guiWindow.SelectSingleElement <GuiFrame>("MainFrame/StoreSelector");
            mCategorySideBar    = GuiWindow.SelectSingleElement <GuiFrame>("MainFrame/CategorySideBarFrame");
            mStoreSelectorGrid  = guiWindow.SelectSingleElement <GridView>("MainFrame/StoreSelector/StoreSelectorGrid");
            //mShopLabel = guiWindow.SelectSingleElement<Label>("MainFrame/StoreSelector/ShopLabel");
            mStoreButton = GuiWindow.SelectSingleElement <Button>("MainFrame/StoreSelector/StoreSelectorGrid/StoreButton");
            mStoreSelectorGrid.RemoveChildWidget(mStoreButton);
            mCloseInventoryGuiButton = guiWindow.SelectSingleElement <Button>("MainFrame/StoreSelector/CancelButton");
            //mCloseInventoryGui = closeInventoryGui;
            mCloseInventoryGuiButton.AddOnPressedAction(closeInventoryGui);
        }
Exemplo n.º 6
0
        private IEnumerator <IYieldInstruction> MockCoroutine(IYieldInstruction yieldInstruction, Hangout.Shared.Action onStep)
        {
            while (true)
            {
                yield return(yieldInstruction);

                onStep();
            }
        }
Exemplo n.º 7
0
 /// <summary>
 /// A receipt that does nothing
 /// </summary>
 public Receipt()
 {
     mOnExit = null;
 }
 public GameStateMachineLoadingState(Hangout.Shared.Action finishedLoadingCallback)
 {
     mFinishedLoadingCallback = finishedLoadingCallback;
 }
Exemplo n.º 9
0
 public void AddOnExitAction(Hangout.Shared.Action onExit)
 {
     mOnExit += onExit;
 }
Exemplo n.º 10
0
 public TestRoomManager(ServerObjectRepository serverObjectRepository, ZoneIdManager zoneIdManager, DistributedObjectIdManager distributedObjectIdManager, ServerEngine serverEngine, SessionManager sessionManager, ServerAssetRepository serverAssetRepository, Hangout.Shared.Action <Message, Guid> sendMessageToClientCallback)
     : base(null)
 {
 }