/// <summary>
 ///     Get a <see cref="CustomRPC"/> for your mod
 /// </summary>
 /// <param name="name">Unique name for your RPC</param>
 /// <param name="serverReceive">Delegate which gets called on client instances when packages are received</param>
 /// <param name="clientReceive">Delegate which gets called on server instances when packages are received</param>
 /// <returns>Existing or newly created <see cref="CustomRPC"/></returns>
 public CustomRPC AddRPC(string name, CoroutineHandler serverReceive, CoroutineHandler clientReceive)
 {
     return(AddRPC(BepInExUtils.GetSourceModMetadata(), name, serverReceive, clientReceive));
 }
 /// <summary>
 ///     Get the CustomLocalization for your mod.
 ///     Creates a new <see cref="CustomLocalization"/> if no localization was added before.
 /// </summary>
 /// <returns>Existing or newly created <see cref="CustomLocalization"/>.</returns>
 public CustomLocalization GetLocalization()
 {
     return(GetLocalization(BepInExUtils.GetSourceModMetadata()));
 }
Beispiel #3
0
 /// <summary>
 ///     ctor automatically getting the SourceMod
 /// </summary>
 internal CustomEntity()
 {
     SourceMod = BepInExUtils.GetSourceModMetadata();
 }