Exemplo n.º 1
0
 public Equipment(Hashtable hash) // : base(hash)
     {
   super(hash);
   _equipType = EquipmentType.FromInt(GetValueFromHash(hash, "_equipType", Integer.class));
   _price = GetValueFromHash(hash, "_price", Integer.class);
   _minTech = TechLevel.FromInt(GetValueFromHash(hash, "_minTech", Integer.class));
   _chance = GetValueFromHash(hash, "_chance", Integer.class);
 }
Exemplo n.º 2
0
  @Override
  public Hashtable Serialize() {
    Hashtable hash = super.Serialize();

    hash.put("_equipType", _equipType.CastToInt());
    hash.put("_price", _price);
    hash.put("_minTech", _minTech.CastToInt());
    hash.put("_chance", _chance);

    return hash;
  }