Beispiel #1
0
        /// <summary>Creates a new GameObject with the given parameters</summary>
        public static GameObject Create(GOEntryId id, Map map, GOSpawnEntry spawnEntry = null,
                                        GOSpawnPoint spawnPoint = null)
        {
            GOEntry entry = GOMgr.GetEntry(id, true);

            if (entry != null)
            {
                return(GameObject.Create(entry, map, spawnEntry, spawnPoint));
            }
            return((GameObject)null);
        }
Beispiel #2
0
        /// <summary>
        /// Creates the given kind of GameObject with the default Template
        /// </summary>
        public static GameObject Create(GOEntryId id, IWorldLocation location, GOSpawnEntry spawnEntry = null,
                                        GOSpawnPoint spawnPoint = null)
        {
            GOEntry entry = GOMgr.GetEntry(id, true);

            if (entry == null)
            {
                return((GameObject)null);
            }
            return(GameObject.Create(entry, location, spawnEntry, spawnPoint));
        }
Beispiel #3
0
 public static GameObject Create(GOEntry entry, Map map, GOSpawnEntry spawnEntry = null,
                                 GOSpawnPoint spawnPoint = null)
 {
     return(GameObject.Create(entry, (IWorldLocation) new WorldLocation(map, Vector3.Zero, 1U), spawnEntry,
                              spawnPoint));
 }