GetMod() public static method

public static GetMod ( int netID ) : Mod
netID int
return Mod
Ejemplo 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());
            }
        }
Ejemplo n.º 2
0
        internal static void ReadNetSystemOrder(BinaryReader r)
        {
            short n = r.ReadInt16();

            NetSystems = new ModSystem[n];

            for (short i = 0; i < n; i++)
            {
                NetSystems[i] = ModContent.Find <ModSystem>(ModNet.GetMod(r.ReadInt16()).Name, r.ReadString());
            }
        }