public void WriteTable(IWritableStream s, EntityDef e, TableVal v) { var Writer = GetRowWriter(e); var NumRow = v.Rows.Count; s.WriteInt32(NumRow); for (int k = 0; k < NumRow; k += 1) { Writer(s, v.Rows[k]); } }
public List <Node> WriteTable(EntityDef e, TableVal v) { var Writer = GetRowWriter(e); var TreeTable = new List <Node>(); foreach (var Row in v.Rows) { var r = Writer(Row); TreeTable.Add(r); } return(TreeTable); }