Example #1
0
	public DataItem(int id, string name, string icon, ITEM_POCKET pocket, ITEM_FLAG_BINARY flags, string description) : base(id) {
		this.name = name;
		this.icon = (Texture2D)Resources.Load("Icons/items/" + icon);
		this.pocket = pocket;
		SetFlags(flags);
		this.description = description;
	}
Example #2
0
 public DataItem(int id, string name, string icon, ITEM_POCKET pocket, ITEM_FLAG_BINARY flags, string description) : base(id)
 {
     this.name   = name;
     this.icon   = (Texture2D)Resources.Load("Icons/items/" + icon);
     this.pocket = pocket;
     SetFlags(flags);
     this.description = description;
 }
Example #3
0
	public bool HasFlag(ITEM_FLAG_BINARY flag) {
		return (flags & flag) != 0;
	}
Example #4
0
	public void AddFlag(ITEM_FLAG_BINARY flag) {
		SetFlags(flags | flag);
	}
Example #5
0
	public void SetFlags(ITEM_FLAG_BINARY flags) {
		this.flags = flags;
	}
Example #6
0
 public bool HasFlag(ITEM_FLAG_BINARY flag)
 {
     return((flags & flag) != 0);
 }
Example #7
0
 public void AddFlag(ITEM_FLAG_BINARY flag)
 {
     SetFlags(flags | flag);
 }
Example #8
0
 public void SetFlags(ITEM_FLAG_BINARY flags)
 {
     this.flags = flags;
 }