Inheritance: EntityInfo
Example #1
0
 public void AddProjectileInfo(string name, ProjectileInfo info)
 {
     info.mod  = this;
     info.Name = name;
     if (!ProjectileLoader.infoIndexes.ContainsKey(this.Name))
     {
         ProjectileLoader.infoIndexes[this.Name] = new Dictionary <string, int>();
     }
     ProjectileLoader.infoIndexes[this.Name][name] = ProjectileLoader.infoList.Count;
     ProjectileLoader.infoList.Add(info);
 }
Example #2
0
        private void AutoloadProjectileInfo(Type type)
        {
            ProjectileInfo projectileInfo = (ProjectileInfo)Activator.CreateInstance(type);

            projectileInfo.mod = this;
            string name = type.Name;

            if (projectileInfo.Autoload(ref name))
            {
                AddProjectileInfo(name, projectileInfo);
            }
        }
Example #3
0
		public void AddProjectileInfo(string name, ProjectileInfo info)
		{
			info.mod = this;
			info.Name = name;
			if (!ProjectileLoader.infoIndexes.ContainsKey(this.Name))
			{
				ProjectileLoader.infoIndexes[this.Name] = new Dictionary<string, int>();
			}
			ProjectileLoader.infoIndexes[this.Name][name] = ProjectileLoader.infoList.Count;
			ProjectileLoader.infoList.Add(info);
		}
Example #4
0
		public void AddProjectileInfo(string name, ProjectileInfo info)
		{
			info.mod = this;
			info.Name = name;
			ProjectileLoader.infoIndexes[Name + ':' + name] = ProjectileLoader.infoList.Count;
			ProjectileLoader.infoList.Add(info);
		}