Example #1
0
        public LTInstanceNode(int x, int y, int originTerra, bool sight, bool controllered, Hotfix_LT.Data.LostChallengeChapterElement terraDataTemplate)
        {
            this.x         = x;
            this.y         = y;
            OriginTerra    = originTerra > 0 ? originTerra : terraDataTemplate.Id;
            IsSight        = sight;
            IsControllered = controllered;

            Img      = terraDataTemplate.Img;
            Rotation = terraDataTemplate.Rotation;
            CanPass  = terraDataTemplate.CanPass;
            Type     = terraDataTemplate.CanPass ? NodeType.Floor : NodeType.WALL;
            RoleData = new LTInstanceNodeRoleData();
        }
Example #2
0
        public LTInstanceNode(int x, int y, int originTerra, bool sight, bool controllered,
                              string img, Vector3 rotaion, bool canpass, NodeType type,
                              LTInstanceNodeRoleData rd)
        {
            this.x         = x;
            this.y         = y;
            OriginTerra    = originTerra;
            IsSight        = sight;
            IsControllered = controllered;

            Img      = img;
            Rotation = rotaion;
            CanPass  = canpass;
            Type     = type;
            RoleData = rd.DeepCopy();
        }
Example #3
0
        public LTInstanceNodeRoleData DeepCopy()
        {
            var rd = new LTInstanceNodeRoleData();

            rd.Id            = Id;
            rd.Img           = Img;
            rd.IsDynImg      = IsDynImg;
            rd.Model         = Model;
            rd.OtherModel    = OtherModel;
            rd.IsElite       = IsElite;
            rd.ModelScale    = ModelScale;
            rd.Rotation      = Rotation;
            rd.Span          = Span;
            rd.Offset        = Offset;
            rd.Order         = Order;
            rd.Type          = Type;
            rd.Param         = Param;
            rd.CampaignData  = CampaignData.DeepCopy();
            rd.IsCorrelation = IsCorrelation;
            return(rd);
        }