public void Read(MpqFileStream stream) { I0 = stream.ReadValueS32(); I1 = stream.ReadValueS32(); LineID = stream.ReadValueS32(); Speaker1 = (Speaker)stream.ReadValueS32(); Speaker2 = (Speaker)stream.ReadValueS32(); AnimationTag = stream.ReadValueS32(); I4 = stream.ReadValueS32(); ClassFilter = stream.ReadValueS32(); for (int i = 0; i < ConvLocalDisplayTimes.Length; i++) { ConvLocalDisplayTimes[i] = new ConvLocalDisplayTimes(stream); } stream.Position += (2 * 4); Comment = stream.ReadSerializedString(); this.I6 = stream.ReadValueS32(); stream.Position += 4; // these are unaccounted for...xml offsets just skips ahead stream.Position += (2 * 4); TrueNodes = stream.ReadSerializedData <ConversationTreeNode>(); stream.Position += (2 * 4); FalseNodes = stream.ReadSerializedData <ConversationTreeNode>(); stream.Position += (2 * 4); ChildNodes = stream.ReadSerializedData <ConversationTreeNode>(); }
public void Read(MpqFileStream stream) { I0 = stream.ReadValueS32(); I1 = stream.ReadValueS32(); LineID = stream.ReadValueS32(); Speaker1 = (Speaker)stream.ReadValueS32(); Speaker2 = (Speaker)stream.ReadValueS32(); AnimationTag = stream.ReadValueS32(); I4 = stream.ReadValueS32(); ClassFilter = stream.ReadValueS32(); for (int i = 0; i < ConvLocalDisplayTimes.Length; i++) ConvLocalDisplayTimes[i] = new ConvLocalDisplayTimes(stream); stream.Position += (2 * 4); Comment = stream.ReadSerializedString(); this.I6 = stream.ReadValueS32(); stream.Position += 4; // these are unaccounted for...xml offsets just skips ahead stream.Position += (2 * 4); TrueNodes = stream.ReadSerializedData<ConversationTreeNode>(); stream.Position += (2 * 4); FalseNodes = stream.ReadSerializedData<ConversationTreeNode>(); stream.Position += (2 * 4); ChildNodes = stream.ReadSerializedData<ConversationTreeNode>(); }