public static void Serialize <TDoc, TCursor>(TagElementStream <TDoc, TCursor, string> s, ref Shell.Platform value) where TDoc : class where TCursor : class { bool reading = s.IsReading; var platform_type = reading ? 0 : value.Type; var processor = reading ? new Shell.Processor() : value.ProcessorType; s.StreamAttributeEnum("platformType", ref platform_type); Serialize(s, ref processor); if (reading) { value = new Shell.Platform(platform_type, processor); } }
public EngineTargetPlatform() { Name = ""; mPlatform = Shell.Platform.Undefined; }