예제 #1
0
            public void Read(BinaryReader br)
            {
                byte len = br.ReadByte();

                file = new string(br.ReadChars(len));
                type = (MpkEntryType)br.ReadByte();
            }
예제 #2
0
		public static IMpkEntry GetType(MpkEntryType typ)
		{
			if(!init)
				InitTypes();
			if(typeHash[typ]==null)
				return null;

			Type t = (Type)typeHash[typ];
			ConstructorInfo ci = t.GetConstructor(new Type[]{});
			return (IMpkEntry)ci.Invoke(new Object[]{});
		}
예제 #3
0
        public static IMpkEntry GetType(MpkEntryType typ)
        {
            if (!init)
            {
                InitTypes();
            }
            if (typeHash[typ] == null)
            {
                return(null);
            }

            Type            t  = (Type)typeHash[typ];
            ConstructorInfo ci = t.GetConstructor(new Type[] {});

            return((IMpkEntry)ci.Invoke(new Object[] {}));
        }
예제 #4
0
			public void Read(BinaryReader br)
			{
				byte len = br.ReadByte();
				file = new string(br.ReadChars(len));
				type = (MpkEntryType)br.ReadByte();
			}
예제 #5
0
			public MpkEntryHeader(string file, MpkEntryType type){this.file=file;this.type=type;}
예제 #6
0
 public MpkEntryHeader(string file, MpkEntryType type)
 {
     this.file = file; this.type = type;
 }