Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rjw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nebuchadnezzer2
rjw
Commits
5a0dd9f6
Commit
5a0dd9f6
authored
5 years ago
by
Ed86
Browse files
Options
Downloads
Patches
Plain Diff
multiplayer api, probably does nothing
parent
6af53780
No related branches found
Branches containing commit
Tags
tag_pregmod_0.9.9.6_v38
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assemblies/0MultiplayerAPI.dll
+0
-0
0 additions, 0 deletions
Assemblies/0MultiplayerAPI.dll
Source/Modules/Multiplayer/Multiplayer.cs
+39
-0
39 additions, 0 deletions
Source/Modules/Multiplayer/Multiplayer.cs
with
39 additions
and
0 deletions
Assemblies/0MultiplayerAPI.dll
0 → 100644
+
0
−
0
View file @
5a0dd9f6
File added
This diff is collapsed.
Click to expand it.
Source/Modules/Multiplayer/Multiplayer.cs
0 → 100644
+
39
−
0
View file @
5a0dd9f6
using
Multiplayer.API
;
using
Verse
;
using
Harmony
;
namespace
rjw
{
[
StaticConstructorOnStartup
]
public
static
class
RJW_Multiplayer
{
static
RJW_Multiplayer
()
{
if
(!
MP
.
enabled
)
return
;
// This is where the magic happens and your attributes
// auto register, similar to Harmony's PatchAll.
MP
.
RegisterAll
();
var
type
=
AccessTools
.
TypeByName
(
"rjw.RJWdesignations"
);
Log
.
Message
(
"rjw MP compat "
+
type
.
Name
);
//MP.RegisterSyncMethod(type, "Comfort");
/*
MP.RegisterSyncMethod(type, "<GetGizmos>Service");
MP.RegisterSyncMethod(type, "<GetGizmos>BreedingHuman");
MP.RegisterSyncMethod(type, "<GetGizmos>BreedingAnimal");
MP.RegisterSyncMethod(type, "<GetGizmos>Breeder");
MP.RegisterSyncMethod(type, "<GetGizmos>Milking");
MP.RegisterSyncMethod(type, "<GetGizmos>Hero");
*/
// You can choose to not auto register and do it manually
// with the MP.Register* methods.
// Use MP.IsInMultiplayer to act upon it in other places
// user can have it enabled and not be in session
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment