// Token: 0x06000060 RID: 96 RVA: 0x00003438 File Offset: 0x00001638
 public bool Create(global::AuthorCreation creation, out global::AuthorPeice peice)
 {
     if (this.creator == null)
     {
         peice = null;
         return(false);
     }
     peice = this.creator(creation, this);
     return(peice);
 }
Ejemplo n.º 2
0
 // Token: 0x06000039 RID: 57 RVA: 0x0000289C File Offset: 0x00000A9C
 public bool Contains(global::AuthorPeice comp)
 {
     if (this.allPeices != null)
     {
         foreach (global::AuthorPeice authorPeice in this.allPeices)
         {
             if (authorPeice && authorPeice == comp)
             {
                 return(true);
             }
         }
         return(false);
     }
     return(false);
 }
Ejemplo n.º 3
0
 // Token: 0x0600002A RID: 42 RVA: 0x00002344 File Offset: 0x00000544
 protected virtual bool RegisterPeice(global::AuthorPeice peice)
 {
     if (this.allPeices == null)
     {
         this.allPeices = new List <global::AuthorPeice>();
         this.allPeices.Add(peice);
     }
     else
     {
         if (this.allPeices.Contains(peice))
         {
             return(false);
         }
         this.allPeices.Add(peice);
     }
     peice.Registered(this);
     return(true);
 }
Ejemplo n.º 4
0
 // Token: 0x0600003D RID: 61 RVA: 0x00002934 File Offset: 0x00000B34
 internal void UnregisterPeice(global::AuthorPeice peice)
 {
     if (this.allPeices != null)
     {
         int num = this.allPeices.IndexOf(peice);
         if (num != -1)
         {
             this.OnWillUnregisterPeice(peice);
             this.allPeices.Remove(peice);
             if (this.selected != null)
             {
                 this.selected.Remove(peice);
             }
             this.OnUnregisteredPeice(peice);
             if (!Application.isPlaying)
             {
                 global::AuthorShared.SetDirty(this);
             }
         }
     }
 }
Ejemplo n.º 5
0
 // Token: 0x06000044 RID: 68 RVA: 0x00002E00 File Offset: 0x00001000
 public virtual string RootBonePath(global::AuthorPeice callingPeice, Transform bone)
 {
     return(global::AuthorShared.CalculatePath(bone, bone.root));
 }
Ejemplo n.º 6
0
 // Token: 0x0600003C RID: 60 RVA: 0x00002930 File Offset: 0x00000B30
 protected virtual void OnUnregisteredPeice(global::AuthorPeice peice)
 {
 }
Ejemplo n.º 7
0
 // Token: 0x0600002B RID: 43 RVA: 0x000023A4 File Offset: 0x000005A4
 private bool RegisterPeice(global::AuthorPeice peice, string id)
 {
     peice.peiceID = id;
     return(this.RegisterPeice(peice));
 }