Changes

Jump to navigation Jump to search
Line 80: Line 80:  
FieldInfo field = this.Helper.Reflection.GetField<string>(…).FieldInfo;
 
FieldInfo field = this.Helper.Reflection.GetField<string>(…).FieldInfo;
 
MethodInfo method = this.Helper.Reflection.GetMethod(…).MethodInfo;
 
MethodInfo method = this.Helper.Reflection.GetMethod(…).MethodInfo;
</source>
  −
  −
===Multiplayer===
  −
The multiplayer API provides methods to support modding in a multiplayer context:
  −
<source lang="c#">
  −
// get a unique multiplayer ID (e.g. for animal IDs)
  −
int uniqueID = this.Helper.Multiplayer.GetNewID();
  −
  −
// get the locations being sync'd from the main player
  −
foreach (GameLocation location in this.Helper.Multiplayer.GetActiveLocations())
   
</source>
 
</source>
translators
8,404

edits

Navigation menu