예제 #1
0
 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);
 }
예제 #2
0
            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);
            }
예제 #3
0
 public override void FromJson(Core.Misc.Map data)
 {
     this.name = data.GetString("name");
 }
예제 #4
0
 public override void FromJson(Core.Misc.Map data)
 {
     this.name         = data.GetString("name");
     this.liftTime     = data.GetFloat("life_time");
     this.programmatic = data.GetBoolean("programmatic");
 }