mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-01-17 00:05:07 -05:00
42 lines
708 B
Java
Executable File
42 lines
708 B
Java
Executable File
/*
|
|
Title: resource_weight.java
|
|
Description: resource data used during crafting/manufacturing
|
|
*/
|
|
|
|
package script;
|
|
|
|
|
|
// This class is used to map a resource id to how much it influences crafting data
|
|
public class resource_weight
|
|
{
|
|
public static class weight
|
|
{
|
|
public int resource;
|
|
public int weight;
|
|
|
|
public weight(int r, int w)
|
|
{
|
|
resource = r;
|
|
weight = w;
|
|
}
|
|
}
|
|
|
|
public String attribName;
|
|
public int slot = -1;
|
|
public weight[] weights;
|
|
|
|
public resource_weight(String a, weight[] w)
|
|
{
|
|
attribName = a;
|
|
weights = w;
|
|
}
|
|
|
|
public resource_weight(String a, int s, weight[] w)
|
|
{
|
|
attribName = a;
|
|
slot = s;
|
|
weights = w;
|
|
}
|
|
}
|
|
|