public int WriteSpeakerList(MemoryStream m, SpeakerListStruct sp) { int size = 0; size += WriteNameProperty(m, "sSpeakerTag", sp.SpeakerTag); size += WriteNone(m); return(size); }
private void ReadSpeakerList() { SpeakerList = new List <SpeakerListStruct>(); int f = FindPropByName("m_SpeakerList"); if (f == -1) { return; } byte[] buff = Props[f].raw; int count = BitConverter.ToInt32(buff, 0x18); int pos = 0x1C; for (int i = 0; i < count; i++) { List <PropertyReader.Property> p = PropertyReader.ReadProp(pcc, buff, pos); SpeakerListStruct sp = new SpeakerListStruct(); sp.SpeakerTag = p[0].Value.NameValue; SpeakerList.Add(sp); pos = p[p.Count - 1].offend; } }
public int WriteSpeakerList(MemoryStream m, SpeakerListStruct sp) { int size = 0; size += WriteNameProperty(m, "sSpeakerTag", sp.SpeakerTag); size += WriteNone(m); return size; }
private void ReadSpeakerList() { SpeakerList = new List<SpeakerListStruct>(); int f = FindPropByName("m_SpeakerList"); if (f == -1) return; byte[] buff = Props[f].raw; int count = BitConverter.ToInt32(buff, 0x18); int pos = 0x1C; for (int i = 0; i < count; i++) { List<PropertyReader.Property> p = PropertyReader.ReadProp(pcc, buff, pos); SpeakerListStruct sp = new SpeakerListStruct(); sp.SpeakerTag = p[0].Value.IntValue; sp.Text = pcc.getNameEntry(sp.SpeakerTag); SpeakerList.Add(sp); pos = p[p.Count - 1].offend; } }