Ejemplo n.º 1
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;
            }
        }
Ejemplo n.º 2
0
 public void LoadLevel(ULevel level)
 {
     Level = level;
     if (!InitializeGraphics(pic1))
         return;
     level.LoadLevelObjects(device,rtb1);
     if(level.UStat.Count == 0)
         return;            
     timer1.Enabled = true;
     CamEye = Vector3.TransformCoordinate(new Vector3(0,0,0),Level.UStat[0].DirectX.m);
     CamDir = new Vector3(0, -1, 1);
     SelectStatLast = -1;
     GenerateTree();
     string loc = Path.GetDirectoryName(Application.ExecutablePath);
     seltex = TextureLoader.FromFile(device, loc + "\\exec\\select.bmp");
     defaulttex = TextureLoader.FromFile(device, loc + "\\exec\\Default.bmp");
     DrawSphere = true;
     DrawTexture = true;
     MoveWASD = true;
     
 }