public bool CollectDataFromDBC(DBC_Row node) { Id = DBCUtil.ExtractNumeric <int>(node, "Id", 0); Description = DBCUtil.ExtractString(node, "Description", ""); Model = DBCUtil.ExtractString(node, "Model", ""); Scale = DBCUtil.ExtractNumeric <float>(node, "Scale", 0); ActionId = DBCUtil.ExtractNumeric <int>(node, "ActionId", 0); ActionPrefix = DBCUtil.ExtractString(node, "ActionPrefix", ""); AIScript = DBCUtil.ExtractString(node, "AIScript", ""); AttrId = DBCUtil.ExtractNumeric <int>(node, "AttrId", 0); Skills = DBCUtil.ExtractNumericArray <int>(node, "Skills", null); return(true); }
public bool CollectDataFromDBC(DBC_Row node) { Id = DBCUtil.ExtractNumeric <int>(node, "Id", 0); Description = DBCUtil.ExtractString(node, "Description", ""); Length = DBCUtil.ExtractNumeric <float>(node, "Length", 0); Width = DBCUtil.ExtractNumeric <float>(node, "Width", 0); Res = DBCUtil.ExtractString(node, "Res", ""); Type = DBCUtil.ExtractNumeric <int>(node, "Type", 0); LeftPortType = DBCUtil.ExtractNumeric <int>(node, "LeftPortType", 0); LeftOffeset = DBCUtil.ExtractNumericArray <float>(node, "LeftOffeset", null); RightPortType = DBCUtil.ExtractNumeric <int>(node, "RightPortType", 0); RightOffset = DBCUtil.ExtractNumericArray <float>(node, "RightOffset", null); ForwardPortType = DBCUtil.ExtractNumeric <int>(node, "ForwardPortType", 0); ForwardOffset = DBCUtil.ExtractNumericArray <float>(node, "ForwardOffset", null); BackPortType = DBCUtil.ExtractNumeric <int>(node, "BackPortType", 0); BackOffset = DBCUtil.ExtractNumericArray <float>(node, "BackOffset", null); return(true); }