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; }
public bool HasFlag(ITEM_FLAG_BINARY flag) { return (flags & flag) != 0; }
public void AddFlag(ITEM_FLAG_BINARY flag) { SetFlags(flags | flag); }
public void SetFlags(ITEM_FLAG_BINARY flags) { this.flags = flags; }
public bool HasFlag(ITEM_FLAG_BINARY flag) { return((flags & flag) != 0); }