Пример #1
0
 public void Load(string Path)
 {
     this.path = Path;
     BinaryReader binaryReader = new BinaryReader(File.Open(Path, FileMode.Open));
     short num = binaryReader.ReadInt16();
     for (int i = 0; i < (int)num; i++)
     {
         ZSC.Mesh mesh = new ZSC.Mesh();
         mesh.read(ref binaryReader);
         this.listMesh.Add(mesh);
     }
     short num2 = binaryReader.ReadInt16();
     for (int i = 0; i < (int)num2; i++)
     {
         ZSC.Materiel materiel = new ZSC.Materiel();
         materiel.read(ref binaryReader);
         this.listMateriel.Add(materiel);
     }
     short num3 = binaryReader.ReadInt16();
     for (int i = 0; i < (int)num3; i++)
     {
         ZSC.Effect effect = new ZSC.Effect();
         effect.read(ref binaryReader);
         this.listEffect.Add(effect);
     }
     short num4 = binaryReader.ReadInt16();
     for (int i = 0; i < (int)num4; i++)
     {
         ZSC.Object @object = new ZSC.Object();
         @object.read(ref binaryReader);
         this.listObject.Add(@object);
     }
     binaryReader.Close();
 }
Пример #2
0
        public void Load(string Path)
        {
            this.path = Path;
            BinaryReader binaryReader = new BinaryReader(File.Open(Path, FileMode.Open));
            short        num          = binaryReader.ReadInt16();

            for (int i = 0; i < (int)num; i++)
            {
                ZSC.Mesh mesh = new ZSC.Mesh();
                mesh.read(ref binaryReader);
                this.listMesh.Add(mesh);
            }
            short num2 = binaryReader.ReadInt16();

            for (int i = 0; i < (int)num2; i++)
            {
                ZSC.Materiel materiel = new ZSC.Materiel();
                materiel.read(ref binaryReader);
                this.listMateriel.Add(materiel);
            }
            short num3 = binaryReader.ReadInt16();

            for (int i = 0; i < (int)num3; i++)
            {
                ZSC.Effect effect = new ZSC.Effect();
                effect.read(ref binaryReader);
                this.listEffect.Add(effect);
            }
            short num4 = binaryReader.ReadInt16();

            for (int i = 0; i < (int)num4; i++)
            {
                ZSC.Object @object = new ZSC.Object();
                @object.read(ref binaryReader);
                this.listObject.Add(@object);
            }
            binaryReader.Close();
        }
Пример #3
0
 public void LoadTexture(string clientPath, GraphicsDevice graphics, ZSC.Materiel Materiel)
 {
     this.texture  = Texture2D.FromFile(graphics, clientPath + "\\" + Materiel.path);
     this.Materiel = Materiel;
 }
Пример #4
0
 public void LoadTexture(string clientPath, GraphicsDevice graphics, ZSC.Materiel Materiel)
 {
     this.texture = Texture2D.FromFile(graphics, clientPath + "\\" + Materiel.path);
     this.Materiel = Materiel;
 }