public void DespawnSkill(BaseSkill skill) { if (!System.Object.ReferenceEquals(null, skill)) { SKMgr.Respawn(skill); } }
public void AddPrototype(BaseSkill skill) { if (!System.Object.ReferenceEquals(null, skill)) { if (!SkillPrototypes.ContainsKey(skill.KindType)) { SkillPrototypes.Add(skill.KindType, skill); } } }
// public bool TryUseSkill(int uniqueID) { TinyLogger.Instance.DebugLog( string.Format("$ try use skill with uniqueID {0}", uniqueID) ); if (CanBeUsed(uniqueID)) { CurSkill2Use = new RiseupSkill(); FindCurSkillTargets(ref Position2Use, CurSkill2Use.Range); for (int i = 0; i < Targets.Count; ++i) { CurSkill2Use.Use((BaseGameEntity)Targets[i]); } return(true); } else { return(false); } }
public void RemoveSkill(BaseSkill skill) { }
public void AddSkill(BaseSkill skill) { Skills.Add(skill.UniqueID, skill); }