示例#1
0
        public PaletteEntry(JToken json)
        {
            if (json == null)
            {
                throw new ArgumentNullException(nameof(json));
            }

            m_fabricStyle = new FabricStyle(json[JsonNames.FabricStyle]);
        }
示例#2
0
        protected PaletteEntry(PaletteEntry prototype)
        {
            if (prototype == null)
            {
                throw new ArgumentNullException(nameof(prototype));
            }

            m_fabricStyle = prototype.m_fabricStyle?.Clone();
        }
示例#3
0
 public PaletteEntry(FabricStyle fabricStyle)
 {
     m_fabricStyle = fabricStyle ?? throw new ArgumentNullException(nameof(fabricStyle));
 }