public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs) { helper.PreviewSprite = LuaHelper.GetSpriteFromViewId(tuple.GetIntNoThrow(ServerItemAttributes.ClassNumber), LuaHelper.ViewIdTypes.Weapon, helper.Db, tuple); if (helper.PreviewSprite == null) { helper.SetError(PreviewHelper.ViewIdNotSet); return; } helper.SetJobs(jobs); }
public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs) { helper.PreviewSprite = LuaHelper.GetSpriteFromViewId(helper.ViewId, LuaHelper.ViewIdTypes.Npc, helper.Db, tuple); if (helper.PreviewSprite == null) { helper.SetError(PreviewHelper.ViewIdNotSet); return; } helper.SetJobs(new List <Job>()); }