Beispiel #1
0
		/// <summary>BlamVersion from BlamBuild and BlamPlatform</summary>
		/// <param name="build">game engine</param>
		/// <param name="platform">game engine platform</param>
		/// <returns></returns>
		public static BlamVersion Version(BlamBuild build, BlamPlatform platform)
		{
			return ((BlamVersion)build) | ((BlamVersion)platform);
		}
Beispiel #2
0
		/// <summary>Invalid engine exception details</summary>
		/// <param name="expected">The engine platform we were expecting</param>
		/// <param name="got">The engine platform we actually got</param>
		public InvalidBlamVersionException(BlamPlatform expected, BlamPlatform got) : base(null, "Invalid engine platform")
		{
			Debug.LogFile.WriteLine(
				"Invalid platform: expected '{0}' but got '{1}'",
				expected, got);
		}
Beispiel #3
0
			public void Setup(BlamPlatform platform, string mm, string sm, string ss)
			{
				if(platform == BlamPlatform.PC)
				{
					PC_MM = new CacheFile(mm);
					PC_SM = new CacheFile(sm);
					PC_SS = new CacheFile(ss);
				}
				else if(platform == BlamPlatform.Xbox)
				{
					Xbox_MM = new CacheFile(mm);
					Xbox_SM = new CacheFile(sm);
					Xbox_SS = new CacheFile(ss);
				}
				else
				{
					Alpha_MM = new CacheFile(mm);
					Alpha_SM = new CacheFile(sm);
				}
			}
Beispiel #4
0
 /// <summary>Invalid engine exception details</summary>
 /// <param name="expected">The engine platform we were expecting</param>
 /// <param name="got">The engine platform we actually got</param>
 public InvalidBlamVersionException(BlamPlatform expected, BlamPlatform got) : base(null, "Invalid engine platform")
 {
     Debug.LogFile.WriteLine(
         "Invalid platform: expected '{0}' but got '{1}'",
         expected, got);
 }
Beispiel #5
0
 /// <summary>BlamVersion from BlamBuild and BlamPlatform</summary>
 /// <param name="build">game engine</param>
 /// <param name="platform">game engine platform</param>
 /// <returns></returns>
 public static BlamVersion Version(BlamBuild build, BlamPlatform platform)
 {
     return(((BlamVersion)build) | ((BlamVersion)platform));
 }
Beispiel #6
0
 /// <summary>
 /// Extension method for <see cref="BlamPlatform"/> for streaming an instance to a stream
 /// </summary>
 /// <param name="platform"></param>
 /// <param name="s"></param>
 public static void Write(this BlamPlatform platform, IO.EndianWriter s)
 {
     s.Write((ushort)platform);
 }
Beispiel #7
0
 /// <summary>
 /// Extension method for <see cref="BlamPlatform"/> for streaming an instance to a stream
 /// </summary>
 /// <param name="platform"></param>
 /// <param name="s"></param>
 public static void Read(this BlamPlatform platform, IO.EndianReader s)
 {
     platform = (BlamPlatform)s.ReadUInt16();
 }