public void write(Writer writer) { name.write(writer); writer.Write((byte)(variables.Count + 1)); foreach (VariableInfo variable in variables) { variable.write(writer); } writer.Write((ushort)entities.Count); foreach (SceneEntity entity in entities) { entity.write(writer); } }
public void write(Writer writer) { name.write(writer); writer.Write((byte)type); }