Skip to content

Commit

Permalink
#479 MarkNetAction korrigieren
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerlindaYu committed Oct 23, 2022
1 parent adc165b commit 04a8c1f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Assets/SEE/Net/MarkNetAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class MarkNetAction : AbstractNetAction
// for the network transfer.

/// <summary>
/// The spehre of the mark
/// The diameter of the sphere of the marked node
/// </summary>
public int Spehre;
public int Diameter;

/// <summary>
/// The nodeid of the node of the new mark.
Expand All @@ -28,15 +28,14 @@ public class MarkNetAction : AbstractNetAction
/// <summary>
/// Constructor.
/// </summary>
/// <param name="color">color of the mark in which to add the new mark</param>
/// <param name="position">the position for the new node</param>
/// <param name="scale">the scale of the new node in world space</param>
/// <param name="diameter">diameter of the mark sphere in which to add the new mark</param>
/// <param name="nodeid">the id of the marked node</param>
public MarkNetAction
(int spehre,
(int diameter,
string nodeid)
: base()
{
this.Spehre = spehre;
this.Diameter = diameter;
this.NodeID = nodeid;
}

Expand All @@ -59,9 +58,9 @@ protected override void ExecuteOnClient()
GameObject mark = GraphElementIDMap.Find(NodeID);
if (mark == null)
{
throw new System.Exception($"There is no mark with the color {Color}.");
throw new System.Exception($"There is no mark with the nodeID {NodeID}.");
}
GameNodeMarker.AddChild(mark,Spehre,NodeID);
GameNodeMarker.AddMark(mark,Diameter,NodeID);
}
}
}
Expand Down

0 comments on commit 04a8c1f

Please sign in to comment.