コード例 #1
0
 public DoWork(WorkStructureBase structure, WorkOrderBase order)
 {
     _structure         = structure;
     StructureId        = structure.Id;
     Order              = order;
     RequiredSkill      = order.Skill;
     RequiredSkillLevel = order.Option.RequiredSkillLevel;
 }
コード例 #2
0
        internal void Load(WorkStructureBase structure, WorkDefinition definition, WorkOption option, StructureInfoPanel panel)
        {
            Panel      = panel;
            Structure  = structure;
            Definition = definition;
            Option     = option;

            Image.sprite = Loc.GetSpriteStore().GetSprite(Option.Icon);
            Title.text   = $"{definition.Name}: {option.Name}";
        }