Esempio 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] = ModContent.Find <ModWorld>(ModNet.GetMod(r.ReadInt16()).Name, r.ReadString());
            }
        }
Esempio n. 2
0
 /// <summary> Attempts to find the content instance from this mod with the specified name. Caching the result is recommended.<para/>This will throw exceptions on failure. </summary>
 /// <exception cref="KeyNotFoundException"/>
 public T Find <T>(string name) where T : IModType => ModContent.Find <T>(Name, name);