Пример #1
0
 public Entity(string name, IRenderData renderData, double rotationAngle, double paddleInitialY, CollisionTypeEnum collisionType)
 {
     Name           = name;
     RenderData     = renderData;
     RotationAngle  = rotationAngle;
     PaddleInitialY = paddleInitialY;
     CollisionType  = collisionType;
 }
Пример #2
0
 public BlockTraits(
     MatterTypeEnum matterType,
     TransparencyTypeEnum transparencyType,
     CollisionTypeEnum collisionType
     )
 {
     this.matterType       = matterType;
     this.transparencyType = transparencyType;
     this.collisionType    = collisionType;
 }
Пример #3
0
			public void Setup(SplinatedMeshMaker SMM){
				CurrentSplination = SMM.CurrentSplination;
				CurrentSplinationCap1 = SMM.CurrentSplinationCap1;
				CurrentSplinationCap2 = SMM.CurrentSplinationCap2;
				
				CapHeightOffset1 = SMM.CapHeightOffset1;
				CapHeightOffset2 = SMM.CapHeightOffset2;

				bMaterialOverride = SMM.bMaterialOverride;
				SplinatedMaterial1 = SMM.SplinatedMaterial1;
				SplinatedMaterial2 = SMM.SplinatedMaterial2;
				bExactSplination = SMM.bExactSplination;
				bMatchRoadDefinition = SMM.bMatchRoadDefinition;
				bMatchRoadIncrements = SMM.bMatchRoadIncrements;
				bTrimStart = SMM.bTrimStart;
				bTrimEnd = SMM.bTrimEnd;
				bMatchTerrain = SMM.bMatchTerrain;
				MinMaxMod = SMM.MinMaxMod;
				bIsBridge = SMM.bIsBridge;
				VertexMatchingPrecision = SMM.VertexMatchingPrecision;
				
				bIsStretch = SMM.bIsStretch;
				bStretchLocOffset = SMM.bStretchLocOffset;
				bStretchSize = SMM.bStretchSize;
				StretchBC_LocOffset = SMM.StretchBC_LocOffset;
				StretchBC_Size = SMM.StretchBC_Size;
				Stretch_UVThreshold = SMM.Stretch_UVThreshold;
				bStraightLineMatchStartEnd = SMM.bStraightLineMatchStartEnd;
				bBCFlipX = SMM.bBCFlipX;
				bBCFlipZ = SMM.bBCFlipZ;

				//Horizontal offsets:
				HorizontalSep = SMM.HorizontalSep;
				HorizontalCurve = SMM.HorizontalCurve;
				//Vertical offset:
				VerticalRaise = SMM.VerticalRaise;
				VerticalCurve = SMM.VerticalCurve;
				//Vertical cutoff
				VerticalCutoff = SMM.VerticalCutoff;
				bVerticalCutoff = SMM.bVerticalCutoff;
				bVerticalCutoffDownwards = SMM.bVerticalCutoffDownwards;
				bVerticalMeshCutoff_OppositeDir = SMM.bVerticalMeshCutoff_OppositeDir;
				VerticalMeshCutoffOffset = SMM.VerticalMeshCutoffOffset;
				bVerticalCutoff_MatchZero = SMM.bVerticalCutoff_MatchZero;
				
				RoadRaise = SMM.RoadRaise;
				CustomRotation = SMM.CustomRotation;
				bFlipRotation = SMM.bFlipRotation;
				bStatic = SMM.bStatic;
				StartTime = SMM.StartTime;
				EndTime = SMM.EndTime;
				Axis = SMM.Axis;
				
				RepeatUVType = SMM.RepeatUVType;
				
				//End objects:
				EndCapStart = SMM.EndCapStart;
				EndCapEnd = SMM.EndCapEnd;
				
				bEndCapCustomMatchStart = SMM.bEndCapCustomMatchStart;
				EndCapCustomOffsetStart = SMM.EndCapCustomOffsetStart;
				EndCapCustomOffsetEnd = SMM.EndCapCustomOffsetEnd;
				EndCapCustomRotOffsetStart = SMM.EndCapCustomRotOffsetStart;
				EndCapCustomRotOffsetEnd = SMM.EndCapCustomRotOffsetEnd;
				bEndObjectsMatchGround = SMM.bEndObjectsMatchGround;
				//Endings down:
				bEndDown = SMM.bEndDown;
				bEndTypeDownOverride = SMM.bEndTypeDownOverride;
				EndTypeDownOverride = SMM.EndTypeDownOverride;

				//Collision:
				CollisionType = SMM.CollisionType;
				bCollisionConvex = SMM.bCollisionConvex;
				bSimpleCollisionAutomatic = SMM.bSimpleCollisionAutomatic;
				bCollisionTrigger = SMM.bCollisionTrigger;
				
				CollisionBoxBL = SMM.CollisionBoxBL;
				CollisionBoxBR = SMM.CollisionBoxBR;
				CollisionBoxTL = SMM.CollisionBoxTL;
				CollisionBoxTR = SMM.CollisionBoxTR;
		
				CollisionTriBL = SMM.CollisionTriBL;
				CollisionTriBR = SMM.CollisionTriBR;
				CollisionTriT = SMM.CollisionTriT;
				
				tName = SMM.tName;
			}