public void SetValues(Template t) { Name = t.Name; Prefab = t.Prefab; Constraint = t.Constraint; CastBox = t.CastBox; CellCentre = t.CellCentre; foreach (PosInCell pc in t.ValidPosInCell) { ValidPosInCell.Add(pc); } foreach (SnapTarget st in t.SnapTargets) { SnapTargets.Add(st); } foreach (string s in t.Tags) { Tags.Add(s); } }
public void AddSnapTarget(PosInCell fromPos, int x, int y, int z, List <string> totags, PosInCell toPos) { SnapTarget st = new SnapTarget(fromPos, x, y, z, totags, toPos); SnapTargets.Add(st); }