Advertisement
AlFas

Stuff 3

Jun 11th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 16.87 KB | None | 0 0
  1.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the Object ID parameter set to 1.</summary>
  2.         public LevelObject() { this[ObjectParameter.ID] = 1; }
  3.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID.</summary>
  4.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  5.         public LevelObject(int objID) { this[ObjectParameter.ID] = objID; }
  6.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID and location.</summary>
  7.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  8.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  9.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  10.         public LevelObject(int objID, double x, double y)
  11.         {
  12.             this[ObjectParameter.ID] = objID;
  13.             this[ObjectParameter.X] = x;
  14.             this[ObjectParameter.Y] = y;
  15.         }
  16.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location and flipped values.</summary>
  17.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  18.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  19.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  20.         /// <param name="flippedHorizontally">The flipped horizontally value of the <see cref="LevelObject"/>.</param>
  21.         /// <param name="flippedVertically">The flipped vertically value of the <see cref="LevelObject"/>.</param>
  22.         public LevelObject(int objID, double x, double y, bool flippedHorizontally, bool flippedVertically)
  23.         {
  24.             this[ObjectParameter.ID] = objID;
  25.             this[ObjectParameter.X] = x;
  26.             this[ObjectParameter.Y] = y;
  27.             this[ObjectParameter.FlippedHorizontally] = flippedHorizontally;
  28.             this[ObjectParameter.FlippedVertically] = flippedVertically;
  29.         }
  30.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location and rotation.</summary>
  31.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  32.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  33.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  34.         /// <param name="rotation">The rotation of the <see cref="LevelObject"/> in degrees. Positive is clockwise.</param>
  35.         public LevelObject(int objID, double x, double y, double rotation)
  36.         {
  37.             this[ObjectParameter.ID] = objID;
  38.             this[ObjectParameter.X] = x;
  39.             this[ObjectParameter.Y] = y;
  40.             this[ObjectParameter.Rotation] = rotation;
  41.         }
  42.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, rotation and scaling.</summary>
  43.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  44.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  45.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  46.         /// <param name="rotation">The rotation of the <see cref="LevelObject"/> in degrees. Positive is clockwise.</param>
  47.         /// <param name="sacling">The scaling ratio of the <see cref="LevelObject"/>.</param>
  48.         public LevelObject(int objID, double x, double y, double rotation, double scaling)
  49.         {
  50.             this[ObjectParameter.ID] = objID;
  51.             this[ObjectParameter.X] = x;
  52.             this[ObjectParameter.Y] = y;
  53.             this[ObjectParameter.Rotation] = rotation;
  54.             this[ObjectParameter.Scaling] = scaling;
  55.         }
  56.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, rotation and flipped values.</summary>
  57.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  58.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  59.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  60.         /// <param name="flippedHorizontally">The flipped horizontally value of the <see cref="LevelObject"/>.</param>
  61.         /// <param name="flippedVertically">The flipped vertically value of the <see cref="LevelObject"/>.</param>
  62.         /// <param name="rotation">The rotation of the <see cref="LevelObject"/> in degrees. Positive is clockwise.</param>
  63.         public LevelObject(int objID, double x, double y, bool flippedHorizontally, bool flippedVertically, double rotation)
  64.         {
  65.             this[ObjectParameter.ID] = objID;
  66.             this[ObjectParameter.X] = x;
  67.             this[ObjectParameter.Y] = y;
  68.             this[ObjectParameter.FlippedHorizontally] = flippedHorizontally;
  69.             this[ObjectParameter.FlippedVertically] = flippedVertically;
  70.             this[ObjectParameter.Rotation] = rotation;
  71.         }
  72.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, rotation, scaling and flipped values.</summary>
  73.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  74.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  75.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  76.         /// <param name="flippedHorizontally">The flipped horizontally value of the <see cref="LevelObject"/>.</param>
  77.         /// <param name="flippedVertically">The flipped vertically value of the <see cref="LevelObject"/>.</param>
  78.         /// <param name="rotation">The rotation of the <see cref="LevelObject"/> in degrees. Positive is clockwise.</param>
  79.         /// <param name="scaling">The scaling ratio of the <see cref="LevelObject"/>.</param>
  80.         public LevelObject(int objID, double x, double y, bool flippedHorizontally, bool flippedVertically, double rotation, double scaling)
  81.         {
  82.             this[ObjectParameter.ID] = objID;
  83.             this[ObjectParameter.X] = x;
  84.             this[ObjectParameter.Y] = y;
  85.             this[ObjectParameter.FlippedHorizontally] = flippedHorizontally;
  86.             this[ObjectParameter.FlippedVertically] = flippedVertically;
  87.             this[ObjectParameter.Rotation] = rotation;
  88.             this[ObjectParameter.Scaling] = scaling;
  89.         }
  90.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location and Editor Layer 1.</summary>
  91.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  92.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  93.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  94.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  95.         public LevelObject(int objID, double x, double y, int EL1)
  96.         {
  97.             this[ObjectParameter.ID] = objID;
  98.             this[ObjectParameter.X] = x;
  99.             this[ObjectParameter.Y] = y;
  100.             this[ObjectParameter.EL1] = EL1;
  101.         }
  102.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location and Editor Layers.</summary>
  103.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  104.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  105.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  106.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  107.         /// <param name="EL2">The Editor Layer 2 of the <see cref="LevelObject"/>.</param>
  108.         public LevelObject(int objID, double x, double y, int EL1, int EL2)
  109.         {
  110.             this[ObjectParameter.ID] = objID;
  111.             this[ObjectParameter.X] = x;
  112.             this[ObjectParameter.Y] = y;
  113.             this[ObjectParameter.EL1] = EL1;
  114.             this[ObjectParameter.EL2] = EL2;
  115.         }
  116.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location and Group IDs.</summary>
  117.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  118.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  119.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  120.         /// <param name="groupIDs">The Group IDs of the <see cref="LevelObject"/>.</param>
  121.         public LevelObject(int objID, double x, double y, int[] groupIDs)
  122.         {
  123.             this[ObjectParameter.ID] = objID;
  124.             this[ObjectParameter.X] = x;
  125.             this[ObjectParameter.Y] = y;
  126.             this[ObjectParameter.GroupIDs] = groupIDs;
  127.         }
  128.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, Group IDs and Editor Layers.</summary>
  129.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  130.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  131.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  132.         /// <param name="groupIDs">The Group IDs of the <see cref="LevelObject"/>.</param>
  133.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  134.         /// <param name="EL2">The Editor Layer 2 of the <see cref="LevelObject"/>.</param>
  135.         public LevelObject(int objID, double x, double y, int[] groupIDs, int EL1, int EL2)
  136.         {
  137.             this[ObjectParameter.ID] = objID;
  138.             this[ObjectParameter.X] = x;
  139.             this[ObjectParameter.Y] = y;
  140.             this[ObjectParameter.GroupIDs] = groupIDs;
  141.             this[ObjectParameter.EL1] = EL1;
  142.             this[ObjectParameter.EL2] = EL2;
  143.         }
  144.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, Color IDs, Group IDs and Editor Layers.</summary>
  145.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  146.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  147.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  148.         /// <param name="mainColor">The Main Color ID of the <see cref="LevelObject"/>.</param>
  149.         /// <param name="detailColor">The Detail Color ID of the <see cref="LevelObject"/>.</param>
  150.         /// <param name="groupIDs">The Group IDs of the <see cref="LevelObject"/>.</param>
  151.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  152.         /// <param name="EL2">The Editor Layer 2 of the <see cref="LevelObject"/>.</param>
  153.         public LevelObject(int objID, double x, double y, int mainColor, int detailColor, int[] groupIDs, int EL1, int EL2)
  154.         {
  155.             this[ObjectParameter.ID] = objID;
  156.             this[ObjectParameter.X] = x;
  157.             this[ObjectParameter.Y] = y;
  158.             this[ObjectParameter.Color1] = mainColor;
  159.             this[ObjectParameter.Color2] = detailColor;
  160.             this[ObjectParameter.GroupIDs] = groupIDs;
  161.             this[ObjectParameter.EL1] = EL1;
  162.             this[ObjectParameter.EL2] = EL2;
  163.         }
  164.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, Color IDs, Group IDs, Editor Layers and glow attibute.</summary>
  165.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  166.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  167.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  168.         /// <param name="mainColor">The Main Color ID of the <see cref="LevelObject"/>.</param>
  169.         /// <param name="detailColor">The Detail Color ID of the <see cref="LevelObject"/>.</param>
  170.         /// <param name="groupIDs">The Group IDs of the <see cref="LevelObject"/>.</param>
  171.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  172.         /// <param name="EL2">The Editor Layer 2 of the <see cref="LevelObject"/>.</param>
  173.         /// <param name="disableGlow">The Disable Glow value of the <see cref="LevelObject"/>.</param>
  174.         public LevelObject(int objID, double x, double y, int mainColor, int detailColor, int[] groupIDs, int EL1, int EL2, bool disableGlow)
  175.         {
  176.             this[ObjectParameter.ID] = objID;
  177.             this[ObjectParameter.X] = x;
  178.             this[ObjectParameter.Y] = y;
  179.             this[ObjectParameter.Color1] = mainColor;
  180.             this[ObjectParameter.Color2] = detailColor;
  181.             this[ObjectParameter.GroupIDs] = groupIDs;
  182.             this[ObjectParameter.EL1] = EL1;
  183.             this[ObjectParameter.EL2] = EL2;
  184.             this[ObjectParameter.DisableGlow] = disableGlow;
  185.         }
  186.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, Color IDs, Group IDs, Editor Layers and glow attibute, Z Order and Z Layer.</summary>
  187.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  188.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  189.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  190.         /// <param name="mainColor">The Main Color ID of the <see cref="LevelObject"/>.</param>
  191.         /// <param name="detailColor">The Detail Color ID of the <see cref="LevelObject"/>.</param>
  192.         /// <param name="groupIDs">The Group IDs of the <see cref="LevelObject"/>.</param>
  193.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  194.         /// <param name="EL2">The Editor Layer 2 of the <see cref="LevelObject"/>.</param>
  195.         /// <param name="disableGlow">The Disable Glow value of the <see cref="LevelObject"/>.</param>
  196.         /// <param name="ZOrder">The Z Order value of the <see cref="LevelObject"/>.</param>
  197.         /// <param name="ZLayer">The Z Layer value of the <see cref="LevelObject"/>.</param>
  198.         public LevelObject(int objID, double x, double y, int mainColor, int detailColor, int[] groupIDs, int EL1, int EL2, bool disableGlow, int ZOrder, int ZLayer)
  199.         {
  200.             this[ObjectParameter.ID] = objID;
  201.             this[ObjectParameter.X] = x;
  202.             this[ObjectParameter.Y] = y;
  203.             this[ObjectParameter.Color1] = mainColor;
  204.             this[ObjectParameter.Color2] = detailColor;
  205.             this[ObjectParameter.GroupIDs] = groupIDs;
  206.             this[ObjectParameter.EL1] = EL1;
  207.             this[ObjectParameter.EL2] = EL2;
  208.             this[ObjectParameter.DisableGlow] = disableGlow;
  209.             this[ObjectParameter.ZOrder] = ZOrder;
  210.             this[ObjectParameter.ZLayer] = ZLayer;
  211.         }
  212.         /// <summary>Creates an instance of the <see cref="LevelObject"/> class with the specified Object ID, location, Color IDs, Group IDs, Editor Layers and glow attibute, Z Order and Z Layer.</summary>
  213.         /// <param name="objID">The Object ID of the <see cref="LevelObject"/>.</param>
  214.         /// <param name="x">The X position of the <see cref="LevelObject"/>.</param>
  215.         /// <param name="y">The Y position of the <see cref="LevelObject"/>.</param>
  216.         /// <param name="mainColor">The Main Color ID of the <see cref="LevelObject"/>.</param>
  217.         /// <param name="detailColor">The Detail Color ID of the <see cref="LevelObject"/>.</param>
  218.         /// <param name="groupIDs">The Group IDs of the <see cref="LevelObject"/>.</param>
  219.         /// <param name="EL1">The Editor Layer 1 of the <see cref="LevelObject"/>.</param>
  220.         /// <param name="EL2">The Editor Layer 2 of the <see cref="LevelObject"/>.</param>
  221.         /// <param name="disableGlow">The Disable Glow value of the <see cref="LevelObject"/>.</param>
  222.         /// <param name="ZOrder">The Z Order value of the <see cref="LevelObject"/>.</param>
  223.         /// <param name="ZLayer">The Z Layer value of the <see cref="LevelObject"/>.</param>
  224.         public LevelObject(int objID, double x, double y, int mainColor, int detailColor, int[] groupIDs, int EL1, int EL2, bool disableGlow, int ZOrder, ZLayer ZLayer)
  225.         {
  226.             this[ObjectParameter.ID] = objID;
  227.             this[ObjectParameter.X] = x;
  228.             this[ObjectParameter.Y] = y;
  229.             this[ObjectParameter.Color1] = mainColor;
  230.             this[ObjectParameter.Color2] = detailColor;
  231.             this[ObjectParameter.GroupIDs] = groupIDs;
  232.             this[ObjectParameter.EL1] = EL1;
  233.             this[ObjectParameter.EL2] = EL2;
  234.             this[ObjectParameter.DisableGlow] = disableGlow;
  235.             this[ObjectParameter.ZOrder] = ZOrder;
  236.             this[ObjectParameter.ZLayer] = (int)ZLayer;
  237.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement