Terraria.ModLoader.ModNet.GetMod C# (CSharp) Method

GetMod() public static method

public static GetMod ( int netID ) : Mod
netID int
return Mod
		public static Mod GetMod(int netID) =>
			netID >= 0 && netID < netMods.Length ? netMods[netID] : null;

Usage Example

Exemplo n.º 1
0
        internal static void ReadNetWorldOrder(BinaryReader r)
        {
            short n = r.ReadInt16();

            NetWorlds = new ModWorld[n];
            for (short i = 0; i < n; i++)
            {
                NetWorlds[i] = ModNet.GetMod(r.ReadInt16()).GetModWorld(r.ReadString());
            }
        }
All Usage Examples Of Terraria.ModLoader.ModNet::GetMod