Beispiel #1
0
 public RustWebPlugin()
 {
     Name = "rustweb";
     Title = "RustWeb Core";
     Author = "dcode";
     Version = new VersionNumber(1, 1, 0);
     HasConfig = false;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the SpaceEngineersCore class
 /// </summary>
 public SpaceEngineersCore()
 {
     // Set attributes
     Name = "SpaceEngineersCore";
     Title = "Space Engineers";
     Author = "Oxide Team";
     Version = new VersionNumber(1, 0, 0);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the RustCore class
 /// </summary>
 public RustLegacyCore()
 {
     // Set attributes
     Name = "rustlegacycore";
     Title = "Rust Legacy Core";
     Author = "Oxide Team";
     Version = new VersionNumber(1, 0, 0);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the UnityCore class
 /// </summary>
 public UnityCore()
 {
     // Set attributes
     Name = "unitycore";
     Title = "Unity Core";
     Author = "Oxide Team";
     Version = new VersionNumber(1, 0, 0);
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the NomadCore class
 /// </summary>
 public NomadCore()
 {
     // Set attributes
     Name = "NomadCore";
     Title = "Nomad";
     Author = "Oxide Team";
     Version = new VersionNumber(1, 0, 0);
 }
 /// <summary>
 /// Initializes a new instance of the InterstellarRiftCore class
 /// </summary>
 public InterstellarRiftCore()
 {
     // Set attributes
     Name = "interstellarriftcore";
     Title = "Interstellar Rift Core";
     Author = "Oxide Team";
     Version = new VersionNumber(1, 0, 0);
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the TerrariaCore class
 /// </summary>
 public TerrariaCore()
 {
     // Set attributes
     Name = "TerrariaCore";
     Title = "Terraria";
     Author = "Oxide Team";
     Version = new VersionNumber(1, 0, 0);
 }
        /// <summary>
        /// Initializes a new instance of the FromTheDepthsCore class
        /// </summary>
        public FromTheDepthsCore()
        {
            // Set attributes
            Name = "fromthedepthscore";
            Title = "From the Depths Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.Oxide.GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #9
0
        /// <summary>
        /// Initializes a new instance of the DeadLingerCore class
        /// </summary>
        public DeadLingerCore()
        {
            // Set attributes
            Name = "deadlingercore";
            Title = "The Dead Linger Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.GetMod().GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #10
0
        /// <summary>
        /// Initializes a new instance of the FortressCraftCore class
        /// </summary>
        public FortressCraftCore()
        {
            // Set attributes
            Name = "fortresscraftscore";
            Title = "FortressCraft Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.GetMod().GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #11
0
        /// <summary>
        /// Initializes a new instance of the UE4Core class
        /// </summary>
        public UE4Core()
        {
            // Set attributes
            Name = "ue4core";
            Title = "UE4 Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            // Get logger
            logger = Interface.Oxide.RootLogger;
        }
Beispiel #12
0
        private bool IsOutdated(Version installed, string latest)
        {
            if (!IsNumeric(latest.Replace(".", string.Empty)))
            {
                return(false);
            }

            var latestPartials = latest.Split('.').Select(int.Parse).ToArray();

            return(installed < GetVersion(latestPartials));
        }
Beispiel #13
0
        /// <summary>
        /// Initializes a new instance of the ElseHeartBreakCore class
        /// </summary>
        public ElseHeartBreakCore()
        {
            // Set attributes
            Name = "elseheartbreakcore";
            Title = "ElseHeartBreak Core";
            Author = "MSylvia";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.GetMod().GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #14
0
        /// <summary>
        /// Initializes a new instance of the HurtworldCore class
        /// </summary>
        public HurtworldCore()
        {
            // Set attributes
            Name = "hurtworldcore";
            Title = "Hurtworld Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.Oxide.GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #15
0
        /// <summary>
        /// Initializes a new instance of the BoPCore class
        /// </summary>
        public BeastsOfPreyCore()
        {
            // Set attributes
            Name = "beastsofpreycore";
            Title = "Beasts of Prey Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.GetMod().GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #16
0
        /// <summary>
        /// Initializes a new instance of the TheForestCore class
        /// </summary>
        public TheForestCore()
        {
            // Set attributes
            Name = "theforestcore";
            Title = "The Forest Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.Oxide.GetLibrary<Core.Libraries.Plugins>();
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #17
0
        /// <summary>
        /// Initializes a new instance of the SavageLandsCore class
        /// </summary>
        public SavageLandsCore()
        {
            // Set attributes
            Name = "savagelandscore";
            Title = "Savage Lands Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.GetMod().GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();
        }
Beispiel #18
0
 private void SetVersion(string version)
 {
     var version_parts = version.Split('.').Select(part =>
     {
         ushort number;
         if (!ushort.TryParse(part, out number)) number = 0;
         return number;
     }).ToList();
     while (version_parts.Count < 3) version_parts.Add(0);
     Version = new VersionNumber(version_parts[0], version_parts[1], version_parts[2]);
 }
Beispiel #19
0
        /// <summary>
        /// Initializes a new instance of the ReignOfKingsCore class
        /// </summary>
        public ReignOfKingsCore()
        {
            // Set attributes
            Name = "reignofkingscore";
            Title = "Reign of Kings Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            var plugins = Interface.GetMod().GetLibrary<Core.Libraries.Plugins>("Plugins");
            if (plugins.Exists("unitycore")) InitializeLogging();

            // Cheat a reference for UnityEngine and uLink in the default plugin reference list
            var zero = Vector3.zero;
            var isServer = Network.isServer;
        }
Beispiel #20
0
        /// <summary>
        /// Initializes a new instance of the RustCore class
        /// </summary>
        public RustCore()
        {
            // Set attributes
            Name = "RustCore";
            Title = "Rust";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            // Cheat references in the default plugin reference list
            var fpNetwork = Network.Client.disconnectReason; // Facepunch.Network
            var fpSystem = Facepunch.Math.Epoch.Current; // Facepunch.System
            var fpUnity = TimeWarning.Enabled; // Facepunch.UnityEngine
            var rustXp = global::Rust.Xp.Config.LevelToXp(1); // Rust.Xp
        }
Beispiel #21
0
        /// <summary>
        /// Initializes a new instance of the RustCore class
        /// </summary>
        public RustCore()
        {
            // Set attributes
            Name = "rustcore";
            Title = "Rust Core";
            Author = "Oxide Team";
            Version = new VersionNumber(1, 0, 0);

            // Cheat references in the default plugin reference list
            var fpNetwork = Network.Client.disconnectReason; // Facepunch.Network
            var fpSystem = Math.unixTimestamp; // Facepunch.System
            var fpUnity = TimeWarning.Enabled; // Facepunch.UnityEngine
        }
 static OxideMod()
 {
     OxideMod.AssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
     OxideMod.Version         = new VersionNumber(OxideMod.AssemblyVersion.Major, OxideMod.AssemblyVersion.Minor, OxideMod.AssemblyVersion.Build);
 }