Exemple #1
0
 /// <summary>
 /// Spanw an object
 /// </summary>
 /// <param name="obj"></param>
 public void SpawnObject(AObject obj)
 {
     this.Player.SpawnedObjects.Add(obj);
     if (obj is Character)
     {
         this.SendSpawnToOthers(obj as Character);
     }
 }
Exemple #2
0
 /// <summary>
 /// Despawn an object
 /// </summary>
 /// <param name="obj">Object to despawn</param>
 public void DespawnObject(AObject obj)
 {
     this.Player.SpawnedObjects.Remove(obj);
     this.SendRemoveObject(obj.ObjectId);
 }