Example #1
0
        public PacketConverterInstance(PacketConvertManager pcvtm, PacketConverterClass pcvtd, PacketConverterProperty pcvtp, Guid id)
        {
            InitializeComponent();

            pcvtm_   = pcvtm;
            Class    = pcvtd;
            Property = pcvtp;
            ID       = id;

            UpdateFilter();
        }
Example #2
0
        public PacketConverterInstance CreateInstance(PacketConvertManager pcvtm, Guid obj_id, PacketConverterProperty pcvtp)
        {
            /* プロパティがnullのときはデフォルト値で新規作成 */
            if (pcvtp == null)
            {
                pcvtp = CreateProperty();
            }

            /* プロパティタイプが異なるときは失敗 */
            if (pcvtp.GetType() != GetPropertyType())
            {
                return(null);
            }

            return(OnCreateInstance(pcvtm, obj_id, pcvtp));
        }
Example #3
0
 protected virtual PacketConverterInstance OnCreateInstance(PacketConvertManager pcvtm, Guid obj_id, PacketConverterProperty pcvtp)
 {
     return(null);
 }