public override AbstractConstruct Clone(ConstructCollection newcol) { var newc = new LooseConstruct(this); newc.constructs = constructs; return(newc); }
protected AbstractConstruct(BinaryReader reader, ConstructCollection constructs) { if (reader == null) { throw new ArgumentNullException("reader"); } if (constructs == null) { throw new ArgumentNullException("construct"); } this.constructs = constructs; byte[] buffer = new byte[STR_LENGTH]; reader.Read(buffer, 0, STR_LENGTH); ParentName = Encoding.ASCII.GetString(buffer); ParentName = ParentName.Substring(0, ParentName.IndexOf('\0')); reader.Read(buffer, 0, STR_LENGTH); ChildName = Encoding.ASCII.GetString(buffer); ChildName = ChildName.Substring(0, ChildName.IndexOf('\0')); Origin = ConvertData.ToVector3(reader); }
public override AbstractConstruct Clone(ConstructCollection newcol) { var newc = new FixConstruct(this); newc.constructs = newcol; newc.fixtransform = fixtransform; return(newc); }
public PrisConstruct(BinaryReader reader, ConstructCollection constructs) : base(reader, constructs) { Offset = ConvertData.ToVector3(reader); Rotation = ConvertData.ToMatrix3x3(reader); AxisTranslation = ConvertData.ToVector3(reader); Min = reader.ReadSingle(); Max = reader.ReadSingle(); }
public ConstructCollection CloneAll() { var newcol = new ConstructCollection(); foreach (var c in constructs) { newcol.constructs.Add(c.Clone(newcol)); } return(newcol); }
public override AbstractConstruct Clone(ConstructCollection newcol) { var newc = new PrisConstruct(this); newc.constructs = newcol; newc.Offset = Offset; newc.AxisTranslation = AxisTranslation; newc.Min = Min; newc.Max = Max; return(newc); }
public SphereConstruct(BinaryReader reader, ConstructCollection constructs) : base(reader, constructs) { Offset = ConvertData.ToVector3(reader); Rotation = ConvertData.ToMatrix3x3(reader); Min1 = reader.ReadSingle(); Max1 = reader.ReadSingle(); Min2 = reader.ReadSingle(); Max2 = reader.ReadSingle(); Min3 = reader.ReadSingle(); Max3 = reader.ReadSingle(); }
public override AbstractConstruct Clone(ConstructCollection newcol) { var newc = new SphereConstruct(this); newc.constructs = newcol; newc.Offset = Offset; newc.Min1 = Min1; newc.Min2 = Min2; newc.Min3 = Min3; newc.Max1 = Max1; newc.Max2 = Max2; newc.Max3 = Max3; return(newc); }
public FixConstruct(BinaryReader reader, ConstructCollection constructs) : base(reader, constructs) { Rotation = ConvertData.ToMatrix3x3(reader); fixtransform = Rotation * Matrix4.CreateTranslation(Origin); }
public FixConstruct(ConstructCollection constructs) : base(constructs) { }
public RevConstruct(ConstructCollection constructs) : base(constructs) { }
public LooseConstruct(BinaryReader reader, ConstructCollection constructs) : base(reader, constructs) { Rotation = ConvertData.ToMatrix3x3(reader); }
public PrisConstruct(ConstructCollection constructs) : base(constructs) { }
public SphereConstruct(ConstructCollection constructs) : base(constructs) { }
public abstract AbstractConstruct Clone(ConstructCollection newcol);
protected AbstractConstruct(ConstructCollection constructs) { this.constructs = constructs; }