public override void ReinitializeMembers(Unit InitializedUnitBase)
        {
            UnitBuilder Other = (UnitBuilder)InitializedUnitBase;

            Map = Other.Map;

            if (OriginalUnit == null)
            {
                OriginalUnit = FromFullName(OriginalUnitName, Map.Content, Map.DicUnitType, Map.DicRequirement, Map.DicEffect);
                _UnitStat    = OriginalUnit.UnitStat;
                _HP          = OriginalUnit.MaxHP;
                _EN          = OriginalUnit.MaxEN;
            }
        }
Beispiel #2
0
 public ActionPanelBuildUnit(DeathmatchMap Map, UnitBuilder ActiveUnit)
     : base("Build", Map, true)
 {
     this.ActiveUnit = ActiveUnit;
 }
 public ActionPanelBuild(DeathmatchMap Map, UnitBuilder ActiveUnit)
     : base(PanelName, Map, true)
 {
     this.ActiveUnit = ActiveUnit;
 }