public override void FromJson(Core.Misc.Map data) { this.nid = data.GetString("id"); this.pos = data.GetVector3("pos"); this.dir = data.GetVector3("dir"); this.MakePropertyNode(ref data); }
public override void FromJson(Core.Misc.Map data) { this.name = data.GetString("name"); this.model = data.GetString("model"); this.bornPos1 = data.GetVector3("bornPos1"); this.bornDir1 = data.GetVector3("bornDir1"); this.bornPos2 = data.GetVector3("bornPos2"); this.bornDir2 = data.GetVector3("bornDir2"); this.bornRnd = data.GetFloat("bornRnd"); ArrayList al = data.GetList("neutrals"); int count = al.Count; this.neutrals = new Neutral[count]; for (int i = 0; i < count; i++) { Core.Misc.Map m = (Core.Misc.Map)al[i]; Neutral neutral = new Neutral(); neutral.FromJson(m); neutral.parent = this; this.neutrals[i] = neutral; } this.MakePropertyNode(ref data); }