Skip to content

immcrab/Lasting-Utilla

Ownership not verified 1
Open on GitHub

Viewing main at commit a6a25ac430“Add files via upload”· 11 months ago

39 lines · 1.4 KBRaw on GitHub
// Decompiled with JetBrains decompiler
// Type: Utilla.Attributes.ModdedGamemodeAttribute
// Assembly: Utilla, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: FDD08D98-E155-49FA-85BC-1930928C3BAA
// Assembly location: C:\Program Files (x86)\Steam\steamapps\common\Gorilla Tag\BepInEx\plugins\Utilla\Utilla.dll

using GorillaGameModes;
using System;
using Utilla.Models;

#nullable disable
namespace Utilla.Attributes;

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class ModdedGamemodeAttribute : Attribute
{
  public readonly Gamemode gamemode;

  public ModdedGamemodeAttribute() => this.gamemode = (Gamemode) null;

  public ModdedGamemodeAttribute(string id, string displayName, GameModeType gameModeType = 1)
  {
    this.gamemode = new Gamemode(id, displayName, new GameModeType?(gameModeType));
  }

  [Obsolete]
  public ModdedGamemodeAttribute(string id, string displayName, BaseGamemode baseGamemode = BaseGamemode.Infection)
  {
    GameModeType result;
    GameModeType? game_mode_type = baseGamemode == BaseGamemode.None || !Enum.TryParse<GameModeType>(baseGamemode.ToString(), out result) ? new GameModeType?() : new GameModeType?(result);
    this.gamemode = new Gamemode(id, displayName, game_mode_type);
  }

  public ModdedGamemodeAttribute(string id, string displayName, Type gameManager)
  {
    this.gamemode = new Gamemode(id, displayName, gameManager);
  }
}

Code is shown from GitHub as-is. Linking a repository doesn’t prove that a release file on Canopy was built from it.