예제 #1
0
 public clsUnitType(UnitTypeInfo info)
 {
     this.ID = info.ID;
     this.strBez = info.Bezeichnung;
     this.intSichtweite = info.Sichtweite;
     this.intMovement = info.Movement;
     this.strClientData = info.ClientData;
     this.strDescription = info.Description;
     this.intMaxResourceValue = info.MaxResourceValue;
     this.intCreateValuePerRound = info.CreateValuePerRound;
 }
예제 #2
0
 public UnitTypeInfo getInfo()
 {
     UnitTypeInfo result = new UnitTypeInfo();
     result.ID = ID;
     result.Bezeichnung = strBez;
     result.Sichtweite = intSichtweite;
     result.Movement = intMovement;
     result.ClientData = strClientData;
     result.Description = strDescription;
     result.MaxResourceValue = intMaxResourceValue;
     result.CreateValuePerRound = intCreateValuePerRound;
     return result;
 }