コード例 #1
0
        public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper)
        {
            if (helper.PreviewSprite == PreviewHelper.SpriteNone)
            {
                return(helper.PreviewSprite);
            }

            return(LuaHelper.GetSpriteFromJob(helper.Grf, helper.Job, helper, helper.PreviewSprite, LuaHelper.ViewIdTypes.Headgear) + ".act");
        }
コード例 #2
0
        public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper)
        {
            var name = LuaHelper.GetSpriteFromJob(helper.Grf, null, helper, helper.PreviewSprite, LuaHelper.ViewIdTypes.Npc);

            if (name.EndsWith(".gr2"))
            {
                return(name);
            }
            return(name + ".act");
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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>());
        }
コード例 #5
0
 public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper)
 {
     return(LuaHelper.GetSpriteFromJob(helper.Grf, helper.Job, helper, helper.PreviewSprite, LuaHelper.ViewIdTypes.Shield) + ".act");
 }
コード例 #6
0
 public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper)
 {
     return(PreviewHelper.SpriteNone);
 }
コード例 #7
0
 public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs)
 {
     helper.SetError("Item type not supported.");
 }