Example #1
0
		public RmpEntry(byte idx, byte row, byte col, byte height)
		{
			index = idx;
			this.row=row;
			this.col=col;
			this.height=height;
			links = new Link[5];
			for(int i=0;i<5;i++)
			{
				links[i] = new Link(Link.NotUsed,0,0);
			}
			unitType = (UnitType)0;
			unitRank1 = 0;
			unitRank2 = (UnitRankNum)0;
			zero1 = 0;
			usage = 0;
		}
Example #2
0
		//private byte[] data;

		public RmpEntry(byte idx,byte[] data)
		{
			//this.data = data;
			index=idx;
			row = data[0];
			col = data[1];
			height = data[2];

			links = new Link[5];

			int x=4;
			for(int i=0;i<5;i++)
			{
				links[i] = new Link(data[x],data[x+1],data[x+2]);
				x+=3;
			}

			unitType = (UnitType)data[19];
			unitRank1 = data[20];
			unitRank2 = (UnitRankNum)data[21];
			zero1 = data[22];
			usage = (SpawnUsage)data[23];
		}