Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 348eabf

Browse files
committed
add some doc, remove some unused using
1 parent 795344c commit 348eabf

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

ValheimLib/Language.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using MonoMod.RuntimeDetour;
22
using System;
33
using System.Collections.Generic;
4-
using ValheimLib.Util;
54
using ValheimLib.Util.Reflection;
65

76
namespace ValheimLib

ValheimLib/Mock.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
namespace ValheimLib
55
{
6+
/// <summary>
7+
/// Helper class for creating Mock for a given vanilla Component
8+
/// </summary>
9+
/// <typeparam name="T"></typeparam>
610
public static class Mock<T> where T : Component
711
{
812
public static T Create(string name)

ValheimLib/ODB/ObjectDBHelper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace ValheimLib.ODB
66
{
7+
/// <summary>
8+
/// Helper class for registering custom items, recipes, and status effects to the game ObjectDB
9+
/// </summary>
710
public static class ObjectDBHelper
811
{
912
internal static readonly List<CustomItem> CustomItems = new List<CustomItem>();

ValheimLib/ODB/SaveCustomData.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.IO;
22
using System.Linq;
3-
using UnityEngine.Assertions;
43

54
namespace ValheimLib.ODB
65
{

ValheimLib/Util/Events/EventsHelper.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22

33
namespace ValheimLib.Util.Events
44
{
5+
/// <summary>
6+
/// Helper class for C# Events
7+
/// </summary>
58
public static class EventsHelper
69
{
10+
/// <summary>
11+
/// Try catch the delegate chain so that it doesnt break on the first failing Delegate
12+
/// </summary>
13+
/// <param name="events"></param>
714
public static void SafeInvoke(this Action events)
815
{
916
if (events == null)
@@ -24,6 +31,12 @@ public static void SafeInvoke(this Action events)
2431
}
2532
}
2633

34+
/// <summary>
35+
/// Try catch the delegate chain so that it doesnt break on the first failing Delegate
36+
/// </summary>
37+
/// <typeparam name="TArg1"></typeparam>
38+
/// <param name="events"></param>
39+
/// <param name="arg1"></param>
2740
public static void SafeInvoke<TArg1>(this Action<TArg1> events, TArg1 arg1)
2841
{
2942
if (events == null)

0 commit comments

Comments
 (0)