Наследование: IUnitFile
Пример #1
0
		public override IUnit GetNewUnit(Palette p)
		{
			if(myFile==null)
			{
				PckFile myPck;
				try
				{
					myPck = GameInfo.CachePck(basePath,basename,4,p);
				}
				catch
				{
					myPck = GameInfo.CachePck(basePath,basename,2,p);
				}
				myFile = new Type3File(this);
				myFile.ImageFile=myPck;
			}

			return new Type3Unit((Type3File)myFile,p);
		}
Пример #2
0
		public Type3Unit(Type3File file,Palette p):base(file,p)
		{
			images=file;
			//curr = DXTimer.RandInt()%8;
		}