public bool CollectDataFromBinary(BinaryTable table, int index) { CameraConfigRecord record = GetRecord(table, index); Id = DBCUtil.ExtractInt(table, record.Id, 0); Description = DBCUtil.ExtractString(table, record.Description, ""); Pitch = DBCUtil.ExtractFloat(table, record.Pitch, 0); Yaw = DBCUtil.ExtractFloat(table, record.Yaw, 0); Distance = DBCUtil.ExtractFloat(table, record.Distance, 0); return(true); }
public bool CollectDataFromBinary(BinaryTable table, int index) { CharacterConfigRecord record = GetRecord(table, index); Id = DBCUtil.ExtractInt(table, record.Id, 0); Description = DBCUtil.ExtractString(table, record.Description, ""); Model = DBCUtil.ExtractString(table, record.Model, ""); Scale = DBCUtil.ExtractFloat(table, record.Scale, 0); ActionId = DBCUtil.ExtractInt(table, record.ActionId, 0); ActionPrefix = DBCUtil.ExtractString(table, record.ActionPrefix, ""); AIScript = DBCUtil.ExtractString(table, record.AIScript, ""); AttrId = DBCUtil.ExtractInt(table, record.AttrId, 0); Skills = DBCUtil.ExtractIntArray(table, record.Skills, null); return(true); }
public bool CollectDataFromBinary(BinaryTable table, int index) { BlocksRecord record = GetRecord(table, index); Id = DBCUtil.ExtractInt(table, record.Id, 0); Description = DBCUtil.ExtractString(table, record.Description, ""); Length = DBCUtil.ExtractFloat(table, record.Length, 0); Width = DBCUtil.ExtractFloat(table, record.Width, 0); Res = DBCUtil.ExtractString(table, record.Res, ""); Type = DBCUtil.ExtractInt(table, record.Type, 0); LeftPortType = DBCUtil.ExtractInt(table, record.LeftPortType, 0); LeftOffeset = DBCUtil.ExtractFloatArray(table, record.LeftOffeset, null); RightPortType = DBCUtil.ExtractInt(table, record.RightPortType, 0); RightOffset = DBCUtil.ExtractFloatArray(table, record.RightOffset, null); ForwardPortType = DBCUtil.ExtractInt(table, record.ForwardPortType, 0); ForwardOffset = DBCUtil.ExtractFloatArray(table, record.ForwardOffset, null); BackPortType = DBCUtil.ExtractInt(table, record.BackPortType, 0); BackOffset = DBCUtil.ExtractFloatArray(table, record.BackOffset, null); return(true); }