public void Pack(DataPacker packer) { packer.Pack(this.VariableID); packer.Pack((byte)this.Operator); if (this.VariableID != HamTimeline.InvalidID) { this.Operand.Pack(packer); } }
public void Pack(DataPacker packer) { packer.Pack(this.VariableID); packer.Pack((byte)this.Comparison); if (this.VariableID != HamTimeline.InvalidID) { this.CompareValue.Pack(packer); } packer.Pack(this.NextNodeID); }
public static void Pack(HamTimelineNode node, DataPacker packer) { packer.Pack((byte)node.Type); packer.Pack(node.ID); packer.Pack(node.PreviousNodeIDs.Count); for (int i = 0; i < node.PreviousNodeIDs.Count; ++i) { packer.Pack(node.PreviousNodeIDs[i]); } node.Pack(packer); }
public void Pack(DataPacker packer) { packer.Pack((int)Version.Original); packer.Pack(this.Name); packer.Pack(this.IDCount); packer.Pack(this.OriginNodeID); packer.Pack(this.NarratorID); packer.Pack(this.DefaultSceneID); packer.Pack(this.Variables.Count); foreach (HamTimelineVariable variable in this.Variables.Values) { variable.Pack(packer); } packer.Pack(this.Scenes.Count); foreach (HamScene scene in this.Scenes.Values) { scene.Pack(packer); } packer.Pack(this.Characters.Count); foreach (HamCharacter character in this.Characters.Values) { character.Pack(packer); } packer.Pack(this.Nodes.Count); foreach (HamTimelineNode node in this.Nodes.Values) { HamTimelineNode.Pack(node, packer); } }
public void Pack(DataPacker packer) { this.timeline.Pack(packer); packer.Pack(this.variables.Count); foreach (int key in this.variables.Keys) { packer.Pack(key); this.variables[key].Pack(packer); } packer.Pack(this.currentNodeID); packer.Pack(this.currentSceneID); packer.Pack(this.currentCharactersInScene.Count); for (int i = 0; i < this.currentCharactersInScene.Count; ++i) { packer.Pack(this.currentCharactersInScene[i]); } packer.Pack(this.nodeHistory.Count); for (int i = 0; i < this.nodeHistory.Count; ++i) { packer.Pack(this.nodeHistory[i]); } }
// private methods... byte[] PackData(DataPacker packer, byte[] data) { return(packer.Pack(data)); }
public void Pack(DataPacker packer) { packer.Pack(this.ID); packer.Pack(this.Name); }
public override void Pack(DataPacker packer) { packer.Pack(this.NextNodeID); packer.Pack(this.Operations.Count); for (int i = 0; i < this.Operations.Count; ++i) { this.Operations[i].Pack(packer); } }
public override void Pack(DataPacker packer) { packer.Pack(this.Decisions.Count); for (int i = 0; i < this.Decisions.Count; ++i) { this.Decisions[i].Pack(packer); } }
public void Pack(DataPacker packer) { packer.Pack(this.DecisionText); packer.Pack(this.IsDialog); packer.Pack(this.Predicates.Count); for (int i = 0; i < this.Predicates.Count; ++i) { this.Predicates[i].Pack(packer); } packer.Pack(this.NextNodeID); }
public override void Pack(DataPacker packer) { packer.Pack(this.DefaultNextID); packer.Pack(this.Predicates.Count); for (int i = 0; i < this.Predicates.Count; ++i) { this.Predicates[i].Pack(packer); } }
public override void Pack(DataPacker packer) { packer.Pack(this.SceneID); packer.Pack(this.CharacterIDs.Count); for (int i = 0; i < this.CharacterIDs.Count; ++i) { packer.Pack(this.CharacterIDs[i]); } packer.Pack(this.SpeakerID); packer.Pack(this.Dialog); packer.Pack(this.NextNodeID); }