コード例 #1
0
 public HoldOffsetStats(HoldOffset s)
 {
     if (s.offset != null)
     {
         this.offset = new Vector3Stats(s.offset);
     }
     this.flip   = s.flip;
     this.behind = s.behind;
 }
コード例 #2
0
 public ShadowDataStats(ShadowData s)
 {
     if (s.volume != null)
     {
         this.volume = new Vector3Stats(s.volume);
     }
     if (s.offset != null)
     {
         this.offset = new Vector3Stats(s.offset);
     }
 }
コード例 #3
0
        public MotePropertiesStats(MoteProperties p)
        {
            this.realTime                   = p.realTime;
            this.fadeInTime                 = p.fadeInTime;
            this.fadeOutTime                = p.fadeOutTime;
            this.solidTime                  = p.solidTime;
            this.speedPerTime               = p.speedPerTime;
            this.growthRate                 = p.growthRate;
            this.collide                    = p.collide;
            this.needsMaintenance           = p.needsMaintenance;
            this.rotateTowardsTarget        = p.rotateTowardsTarget;
            this.rotateTowardsMoveDirection = p.rotateTowardsMoveDirection;

            Util.AssignDefStat(p.landSound, out this.landSound);

            this.acceleration       = new Vector3Stats(p.acceleration);
            this.attachedDrawOffset = new Vector3Stats(p.attachedDrawOffset);
        }