public PacketConverterInstance(PacketConvertManager pcvtm, PacketConverterClass pcvtd, PacketConverterProperty pcvtp, Guid id) { InitializeComponent(); pcvtm_ = pcvtm; Class = pcvtd; Property = pcvtp; ID = id; UpdateFilter(); }
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)); }
protected virtual PacketConverterInstance OnCreateInstance(PacketConvertManager pcvtm, Guid obj_id, PacketConverterProperty pcvtp) { return(null); }