示例#1
0
        public UnrealObject(byte[] mem, string Uclass, string[] Names)
        {
            objectclass = Uclass;
            names       = Names;
            switch (objectclass)
            {
            case "DecalActor":
                UDecA = new UDecalActor(mem, names);
                break;

            case "DecalComponent":
                UDecC = new UDecalComponent(mem, names);
                break;

            case "InterpActor":
                UIntA = new UInterpActor(mem, names);
                break;

            case "StaticMesh":
                UStat = new UStaticMesh(mem, names);
                break;

            case "StaticMeshActor":
                UStatA = new  UStaticMeshActor(mem, names);
                break;

            case "StaticMeshComponent":
                UStatC = new UStaticMeshComponent(mem, names);
                break;

            case "SkeletalMesh":
                USkel = new USkelMesh(mem, names);
                break;

            case "Texture2D":
                UTex2D = new UTexture2D(mem, names);
                break;

            case "Material":
                UMat = new UMaterial(mem, names);
                break;

            case "WwiseStream":
                UWws = new UWwiseStream(mem, names);
                break;

            default:
                UUkn = new UnknownObject(mem, objectclass, names);
                break;
            }
        }
示例#2
0
        public UnrealObject(byte[] mem, string Uclass, PCCFile pcc)
        {
            objectclass = Uclass;
            names       = pcc.names;
            switch (objectclass)
            {
            case "Level":
                ULv = new ULevel(mem, pcc);
                break;

            case "StaticMeshCollectionActor":
                UStatCA = new UStaticMeshCollectionActor(mem, pcc);
                break;

            default:
                UUkn = new UnknownObject(mem, objectclass, names);
                break;
            }
        }