public static LocationType Read(DatReader datReader) { LocationType obj = new LocationType(); obj.PartId = datReader.ReadUInt32(); obj.Frame = PositionExtensions.ReadPosition(datReader); return(obj); }
public static Plane Read(DatReader datReader) { Plane obj = new Plane(); obj.N = PositionExtensions.ReadPositionFrame(datReader); obj.D = datReader.ReadSingle(); return(obj); }
public static LightInfo Read(DatReader datReader) { LightInfo obj = new LightInfo(); obj.ViewerspaceLocation = PositionExtensions.ReadPosition(datReader); obj.Color = datReader.ReadUInt32(); obj.Intensity = datReader.ReadSingle(); obj.Falloff = datReader.ReadSingle(); obj.ConeAngle = datReader.ReadSingle(); return(obj); }
public static ObjectDesc Read(DatReader datReader) { ObjectDesc obj = new ObjectDesc(); obj.ObjId = datReader.ReadUInt32(); obj.BaseLoc = PositionExtensions.ReadPosition(datReader); obj.Freq = datReader.ReadSingle(); obj.DisplaceX = datReader.ReadSingle(); obj.DisplaceY = datReader.ReadSingle(); obj.MinScale = datReader.ReadSingle(); obj.MaxScale = datReader.ReadSingle(); obj.MaxRotation = datReader.ReadSingle(); obj.MinSlope = datReader.ReadSingle(); obj.MaxSlope = datReader.ReadSingle(); obj.Align = datReader.ReadUInt32(); obj.Orient = datReader.ReadUInt32(); obj.WeenieObj = datReader.ReadUInt32(); return(obj); }
public static Contract Read(DatReader datReader) { Contract obj = new Contract(); obj.Version = datReader.ReadUInt32(); obj.ContractId = datReader.ReadUInt32(); obj.ContractName = datReader.ReadPString(); datReader.AlignBoundary(); obj.Description = datReader.ReadPString(); datReader.AlignBoundary(); obj.DescriptionProgress = datReader.ReadPString(); datReader.AlignBoundary(); obj.NameNPCStart = datReader.ReadPString(); datReader.AlignBoundary(); obj.NameNPCEnd = datReader.ReadPString(); datReader.AlignBoundary(); obj.QuestflagStamped = datReader.ReadPString(); datReader.AlignBoundary(); obj.QuestflagStarted = datReader.ReadPString(); datReader.AlignBoundary(); obj.QuestflagFinished = datReader.ReadPString(); datReader.AlignBoundary(); obj.QuestflagProgress = datReader.ReadPString(); datReader.AlignBoundary(); obj.QuestflagTimer = datReader.ReadPString(); datReader.AlignBoundary(); obj.QuestflagRepeatTime = datReader.ReadPString(); datReader.AlignBoundary(); obj.LocationNPCStart = PositionExtensions.ReadLandblockPosition(datReader); obj.LocationNPCEnd = PositionExtensions.ReadLandblockPosition(datReader); obj.LocationQuestArea = PositionExtensions.ReadLandblockPosition(datReader); return(obj); }