예제 #1
0
 protected virtual void OnAuthVaultTreeFetched(uint transID, ENetError result, VaultNodeRef[] refs)
 {
     //Fire callback
     // - Method: ISomething(VaultNodeRef[] refs, ...)
     IFireAuthCallback(transID, new object[] { refs });
 }
예제 #2
0
 public void Read(UruStream s)
 {
     fTransID = s.ReadUInt();
     fResult = (ENetError)s.ReadInt();
     fRefs = new VaultNodeRef[s.ReadInt()];
     for (int i = 0; i < fRefs.Length; i++) {
         fRefs[i] = new VaultNodeRef();
         fRefs[i].Read(s);
     }
 }
예제 #3
0
파일: MainForm.cs 프로젝트: Hoikas/mudpit
        protected override void OnAuthVaultTreeFetched(uint transID, ENetError result, VaultNodeRef[] refs)
        {
            base.OnAuthVaultTreeFetched(transID, result, refs);

            foreach (VaultNodeRef nRef in refs) {
                if (!fVaultTree.ContainsKey(nRef.fParentIdx))
                    fVaultTree.Add(nRef.fParentIdx, new List<uint>());
                if (!fVaultTree[nRef.fParentIdx].Contains(nRef.fChildIdx)) {
                    LogDebug(String.Format("NodeRef [PARENT: {0}] [CHILD: {1}] [SAVER: {2}]", nRef.fParentIdx, nRef.fChildIdx, nRef.fSaverIdx));
                    fVaultTree[nRef.fParentIdx].Add(nRef.fChildIdx);
                }

                //Is this a "core node" ?
                if (nRef.fParentIdx == fActivePlayer)
                    FetchNode(nRef.fChildIdx, new Action<VaultNode>(IAddFolderToPanes), new object[0]);
            }
        }