protected virtual void OnNPCSpawned(SpawnedEventArgs e) { EventHandler<SpawnedEventArgs> handler = this.NPCSpawned; if (handler != null) { handler(this, e); } }
private void HandleNPCSpawned(object sender, SpawnedEventArgs e) { if (e.X == this.x && e.Y == this.y && e.Z == this.z) { this.writeToClient(e.Name + " arrives.\r\n"); } }