Exemplo n.º 1
0
 public Material(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 2
0
 public RigidBody(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 3
0
 public MonoBehaviour(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 4
0
 public LoadedByTypeDefinition(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 5
0
 public CapsuleCollider(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 6
0
 public FlareLayer(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 7
0
 public CharacterJoint(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 8
0
 public Avatar(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 9
0
 public NotLoaded(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 10
0
 public EllipsoidParticleEmitter(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 11
0
 public void MergeTypeDefinition(AssetCabinet file, UnityClassID cls)
 {
     AssetCabinet.TypeDefinition clsDef = Types.Find
                                          (
         delegate(AssetCabinet.TypeDefinition def)
     {
         return(def.typeId == (int)cls);
     }
                                          );
     if (clsDef == null)
     {
         clsDef = file.Types.Find
                  (
             delegate(AssetCabinet.TypeDefinition def)
         {
             return(def.typeId == (int)cls);
         }
                  );
         if (clsDef == null)
         {
             Report.ReportLog("Warning! Class Definition for " + cls + " not found!");
             return;
         }
         Types.Add(clsDef);
     }
 }
Exemplo n.º 12
0
 public AnimatorController(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 13
0
 public MeshRenderer(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 14
0
 public AudioListener(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 15
0
 public MonoScript(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 16
0
 public AudioListener(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 17
0
 public Rigidbody(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 18
0
 public SphereCollider(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 19
0
 public AudioMixerSnapshot(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 20
0
 public CanvasGroup(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 21
0
 public MonoBehaviour(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 22
0
 public PhysicMaterial(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 23
0
 public NotLoaded(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 24
0
 public GameObject(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 25
0
 public EllipsoidParticleEmitter(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 26
0
 public AssetBundleManifest(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 27
0
 public AnimationClip(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 28
0
 public AnimatorOverrideController(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 29
0
 public Projector(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 30
0
 public ParticleSystem(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 31
0
        //public List<PPtr<Transform>> m_Children { get; protected set; }
        //public PPtr<Transform> m_Father { get; protected set; }

        public Transform(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
        {
            this.file     = file;
            this.pathID   = pathID;
            this.classID1 = classID1;
            this.classID2 = classID2;
        }
Exemplo n.º 32
0
 public CapsuleCollider(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 33
0
 public ParticleAnimator(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 34
0
 public LinkToGameObject225(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 35
0
 public MeshRenderer(AssetCabinet file, long pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file     = file;
     this.pathID   = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 36
0
        public AssetBundle(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
        {
            this.file     = file;
            this.pathID   = pathID;
            this.classID1 = classID1;
            this.classID2 = classID2;

            NeedsUpdate = new HashSet <Component>();
        }
Exemplo n.º 37
0
        public AssetBundle(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
        {
            this.file = file;
            this.pathID = pathID;
            this.classID1 = classID1;
            this.classID2 = classID2;

            NeedsUpdate = new HashSet<Component>();
        }
Exemplo n.º 38
0
 public void DumpType(UnityClassID cls)
 {
     for (int i = 0; i < Types.Count; i++)
     {
         if (Types[i].typeId == (int)cls)
         {
             DumpType(Types[i]);
             return;
         }
     }
 }
Exemplo n.º 39
0
 public dynamic FindLinkedComponent(UnityClassID classID)
 {
     for (int i = 0; i < m_Component.Count; i++)
     {
         if (m_Component[i].Value.asset != null && m_Component[i].Value.asset.classID2 == classID)
         {
             return(m_Component[i].Value.asset);
         }
     }
     return(null);
 }
Exemplo n.º 40
0
        public Component FindComponent(string name, UnityClassID cls)
        {
            string lName = name.ToLower();

            for (int i = 0; i < m_Container.Count; i++)
            {
                if (m_Container[i].Key == lName && m_Container[i].Value.asset.asset != null && m_Container[i].Value.asset.asset.classID2 == cls)
                {
                    return(m_Container[i].Value.asset.asset);
                }
            }
            return(null);
        }
Exemplo n.º 41
0
        public int numContainerEntries(string name, UnityClassID cls)
        {
            string lName = name.ToLower();

            for (int i = 0; i < m_Container.Count; i++)
            {
                if (m_Container[i].Key == lName && m_Container[i].Value.asset.asset != null && m_Container[i].Value.asset.asset.classID2 == cls)
                {
                    int j = i;
                    while (++j < m_Container.Count && m_Container[j].Key == lName && m_Container[j].Value.preloadIndex == m_Container[i].Value.preloadIndex)
                    {
                        ;
                    }
                    return(j - i);
                }
            }
            return(0);
        }
Exemplo n.º 42
0
        public void AppendComponent(string name, UnityClassID cls, Component asset)
        {
            string key = name.ToLower();

            for (int idx = 0; idx < m_Container.Count; idx++)
            {
                int cmp = m_Container[idx].Key.CompareTo(key);
                if (cmp == 0)
                {
                    while (m_Container[idx].Value.asset.asset.classID2 != cls)
                    {
                        if (++idx >= m_Container.Count)
                        {
                            return;
                        }
                        cmp = m_Container[idx].Key.CompareTo(key);
                        if (cmp != 0)
                        {
                            return;
                        }
                    }

                    AssetInfo info = new AssetInfo(file);
                    info.preloadIndex = m_Container[idx].Value.preloadIndex;
                    info.preloadSize  = 0;
                    info.asset        = new PPtr <Object>(asset);

                    while (++idx < m_Container.Count && m_Container[idx].Value.preloadIndex == info.preloadIndex)
                    {
                    }
                    m_Container.Insert(idx, new KeyValuePair <string, AssetInfo>(key, info));
                    return;
                }
                else if (cmp > 0)
                {
                    return;
                }
            }
        }
Exemplo n.º 43
0
 public MonoBehaviour(AssetCabinet file, UnityClassID classID1)
     : this(file, 0, classID1, UnityClassID.MonoBehaviour)
 {
     file.ReplaceSubfile(-1, this, null);
 }
Exemplo n.º 44
0
 public Cubemap(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
     : base(file, pathID, classID1, classID2)
 {
 }
Exemplo n.º 45
0
 public Texture2D(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
 {
     this.file = file;
     this.pathID = pathID;
     this.classID1 = classID1;
     this.classID2 = classID2;
 }
Exemplo n.º 46
0
 public int numContainerEntries(string name, UnityClassID cls)
 {
     string lName = name.ToLower();
     for (int i = 0; i < m_Container.Count; i++)
     {
         if (m_Container[i].Key == lName && m_Container[i].Value.asset.asset != null && m_Container[i].Value.asset.asset.classID2 == cls)
         {
             int j = i;
             while (++j < m_Container.Count && m_Container[j].Key == lName && m_Container[j].Value.preloadIndex == m_Container[i].Value.preloadIndex)
                 ;
             return j - i;
         }
     }
     return 0;
 }
Exemplo n.º 47
0
 public dynamic FindLinkedComponent(UnityClassID classID)
 {
     for (int i = 0; i < m_Component.Count; i++)
     {
         if (m_Component[i].Value.asset != null && m_Component[i].Value.asset.classID2 == classID)
         {
             return m_Component[i].Value.asset;
         }
     }
     return null;
 }
Exemplo n.º 48
0
 public Cubemap(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
     : base(file, pathID, classID1, classID2)
 {
 }
Exemplo n.º 49
0
 public ParticleRenderer(AssetCabinet file, int pathID, UnityClassID classID1, UnityClassID classID2)
     : base(file, pathID, classID1, classID2)
 {
 }
Exemplo n.º 50
0
 public void MergeTypeDefinition(AssetCabinet file, UnityClassID cls)
 {
     AssetCabinet.TypeDefinition clsDef = Types.Find
     (
         delegate(AssetCabinet.TypeDefinition def)
         {
             return def.typeId == (int)cls;
         }
     );
     if (clsDef == null)
     {
         clsDef = file.Types.Find
         (
             delegate(AssetCabinet.TypeDefinition def)
             {
                 return def.typeId == (int)cls;
             }
         );
         if (clsDef == null)
         {
             Report.ReportLog("Warning! Class Definition for " + cls + " not found!");
             return;
         }
         Types.Add(clsDef);
     }
 }
Exemplo n.º 51
0
 public void DumpType(UnityClassID cls)
 {
     for (int i = 0; i < Types.Count; i++)
     {
         if (Types[i].typeId == (int)cls)
         {
             DumpType(Types[i]);
             return;
         }
     }
 }
Exemplo n.º 52
0
        public void AppendComponent(string name, UnityClassID cls, Component asset)
        {
            string key = name.ToLower();
            for (int idx = 0; idx < m_Container.Count; idx++)
            {
                int cmp = m_Container[idx].Key.CompareTo(key);
                if (cmp == 0)
                {
                    while (m_Container[idx].Value.asset.asset.classID2 != cls)
                    {
                        if (++idx >= m_Container.Count)
                        {
                            return;
                        }
                        cmp = m_Container[idx].Key.CompareTo(key);
                        if (cmp != 0)
                        {
                            return;
                        }
                    }

                    AssetInfo info = new AssetInfo(file);
                    info.preloadIndex = m_Container[idx].Value.preloadIndex;
                    info.preloadSize = 0;
                    info.asset = new PPtr<Object>(asset);

                    while (++idx < m_Container.Count && m_Container[idx].Value.preloadIndex == info.preloadIndex)
                    {
                    }
                    m_Container.Insert(idx, new KeyValuePair<string, AssetInfo>(key, info));
                    return;
                }
                else if (cmp > 0)
                {
                    return;
                }
            }
        }
Exemplo n.º 53
0
 public Component FindComponent(string name, UnityClassID cls)
 {
     string lName = name.ToLower();
     for (int i = 0; i < m_Container.Count; i++)
     {
         if (m_Container[i].Key == lName && m_Container[i].Value.asset.asset != null && m_Container[i].Value.asset.asset.classID2 == cls)
         {
             return m_Container[i].Value.asset.asset;
         }
     }
     return null;
 }