Exemple #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);
        }
Exemple #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));
        }
Exemple #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));
 }