public CollisionShape(BinaryReader br) { ObjSize = br.ReadUInt32(); Name = br.ReadCString(Constants.SizeName); ObjectId = br.ReadInt32(); ParentId = br.ReadInt32(); Flags = (GENOBJECTFLAGS)br.ReadUInt32(); LoadTracks(br); Type = (GEOM_SHAPE)br.ReadUInt32(); switch (Type) { case GEOM_SHAPE.SHAPE_BOX: Box = new CBox(br); break; case GEOM_SHAPE.SHAPE_CYLINDER: Cylinder = new CCylinder(br); break; case GEOM_SHAPE.SHAPE_PLANE: Plane = new CPlane(br); break; case GEOM_SHAPE.SHAPE_SPHERE: Sphere = new CSphere(br); break; } }
internal CShotModel(CServiceLocatorNode aParent) : base(aParent) { this.Sphere = new CSphere(5, 1, true); }