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(); }
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(); }
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); }