Aura.Channel.Scripting.Scripts.NpcShopScript.Init C# (CSharp) Метод

Init() публичный Метод

Initializes shop, calling setup and adding it to the script manager.
public Init ( ) : bool
Результат bool
		public override bool Init()
		{
			if (ChannelServer.Instance.ScriptManager.NpcShopScripts.ContainsKey(this.GetType().Name))
			{
				Log.Error("NpcShopScript.Init: Duplicate '{0}'", this.GetType().Name);
				return false;
			}

			this.Setup();

			ChannelServer.Instance.ScriptManager.NpcShopScripts.AddOrReplace(this);

			return true;
		}