示例#1
0
        public MultiplayerMod(ModContentPack pack) : base(pack)
        {
            EarlyMarkNoInline(typeof(Multiplayer).Assembly);
            EarlyPatches();

            settings = GetSettings <MpSettings>();
        }
示例#2
0
        public MultiplayerMod(ModContentPack pack) : base(pack)
        {
            EarlyMarkNoInline();
            EarlyPatches();
            EarlyInit();

            settings = GetSettings <MpSettings>();
        }
        public MultiplayerMod(ModContentPack pack) : base(pack)
        {
            if (GenCommandLine.CommandLineArgPassed("arbiter"))
            {
                arbiterInstance = true;
            }

            EarlyMarkNoInline(typeof(Multiplayer).Assembly);
            EarlyPatches();

            settings = GetSettings <MpSettings>();
        }
示例#4
0
        public MultiplayerMod(ModContentPack pack) : base(pack)
        {
            if (GenCommandLine.CommandLineArgPassed("arbiter"))
            {
                arbiterInstance = true;
            }

            //EarlyMarkNoInline(typeof(Multiplayer).Assembly);
            EarlyPatches();

            CheckInterfaceVersions();

            settings = GetSettings <MpSettings>();

            LongEventHandler.ExecuteWhenFinished(() => {
                // Double Execute ensures it'll run last.
                LongEventHandler.ExecuteWhenFinished(LatePatches);
            });
        }
示例#5
0
        public MultiplayerMod(ModContentPack pack) : base(pack)
        {
            if (GenCommandLine.CommandLineArgPassed("arbiter"))
            {
                arbiterInstance = true;
            }

            EarlyMarkNoInline(typeof(Multiplayer).Assembly);
            EarlyPatches();

            CheckInterfaceVersions();

            settings = GetSettings <MpSettings>();

#if DEBUG
            LongEventHandler.ExecuteWhenFinished(() => {
                Log.Message("== Structure == \n" + Sync.syncWorkers.PrintStructure());
            });
#endif
        }