Skip to content

Commit

Permalink
Minor documentation additions
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpup committed Sep 18, 2016
1 parent d1ee372 commit 6fbb183
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Dota2GSI/Dota2GSI/GameState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ private String GetNode(string name)
return "";
}

/// <summary>
/// Returns the json string that generated this GameState instance
/// </summary>
/// <returns>Json string</returns>
public override string ToString()
{
return json;
Expand Down
9 changes: 7 additions & 2 deletions Dota2GSI/Dota2GSI/Nodes/Abilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public Ability this[int index]
}
}

/// <summary>
/// Gets the IEnumerable of Abilities
/// </summary>
public IEnumerator<Ability> GetEnumerator()
{
return abilities.GetEnumerator();
Expand All @@ -63,11 +66,13 @@ IEnumerator IEnumerable.GetEnumerator()
return abilities.GetEnumerator();
}

/// <summary>
/// Returns the json string that generated this Abilities instance
/// </summary>
/// <returns>Json string</returns>
public override string ToString()
{
return json;
}


}
}
3 changes: 3 additions & 0 deletions Dota2GSI/Dota2GSI/Nodes/Auth.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
namespace Dota2GSI.Nodes
{
/// <summary>
/// A class representing the authentication information for GSI
/// </summary>
public class Auth : Node
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Dota2GSI/Dota2GSI/Nodes/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ public enum PlayerTeam
Radiant
}

/// <summary>
/// Class representing information about the map
/// </summary>
public class Map : Node
{
/// <summary>
Expand Down

0 comments on commit 6fbb183

Please sign in to comment.