protected bool SaveSettings() { AuthorCreationProject authorCreationProject; bool flag; Stream stream = this.GetStream(true, "dat.asc", out authorCreationProject); if (stream == null) { return(false); } try { using (JSONStream jSONStream = JSONStream.CreateWriter(stream)) { jSONStream.WriteObjectStart(); jSONStream.WriteObjectStart("project"); jSONStream.WriteText("guid", AuthorShared.PathToGUID(AuthorShared.GetAssetPath(authorCreationProject))); jSONStream.WriteText("name", authorCreationProject.project); jSONStream.WriteText("author", authorCreationProject.authorName); jSONStream.WriteText("scene", authorCreationProject.scene); jSONStream.WriteText("folder", authorCreationProject.folder); jSONStream.WriteObjectEnd(); jSONStream.WriteProperty("settings"); this.SaveSettings(jSONStream); jSONStream.WriteObjectEnd(); } flag = true; } finally { stream.Dispose(); } return(flag); }
// Token: 0x060001D0 RID: 464 RVA: 0x00007EC4 File Offset: 0x000060C4 public override void SaveJsonProperties(JSONStream stream) { base.SaveJsonProperties(stream); stream.WriteText("bone", base.FromRootBonePath(this.bone)); stream.WriteEnum("bonepart", this.bodyPart); stream.WriteBoolean("mirror", this.isMirror); stream.WriteText("mirrorbone", base.FromRootBonePath(this.mirrored)); stream.WriteEnum("mirrorbonepart", this.mirroredBodyPart); stream.WriteArrayStart("mirrorboneflip"); stream.WriteBoolean(this.mirrorX); stream.WriteBoolean(this.mirrorY); stream.WriteBoolean(this.mirrorZ); stream.WriteArrayEnd(); stream.WriteEnum("kind", this.kind); stream.WriteVector3("center", this.center); stream.WriteVector3("size", this.size); stream.WriteNumber("radius", this.radius); stream.WriteNumber("height", this.height); stream.WriteInteger("capsuleaxis", this.capsuleAxis); stream.WriteNumber("damagemul", this.damageMultiplier); stream.WriteInteger("hitpriority", this.hitPriority); stream.WriteNumber("mass", this.mass); stream.WriteNumber("drag", this.drag); stream.WriteNumber("adrag", this.angularDrag); }