AddType() публичный статический Метод

public static AddType ( ContactCreateFcn createFcn, ContactDestroyFcn destoryFcn, ShapeType type1, ShapeType type2 ) : void
createFcn ContactCreateFcn
destoryFcn ContactDestroyFcn
type1 ShapeType
type2 ShapeType
Результат void
Пример #1
0
 public static void InitializeRegisters()
 {
     Contact.AddType(new ContactCreateFcn(CircleContact.Create), new ContactDestroyFcn(CircleContact.Destroy), ShapeType.CircleShape, ShapeType.CircleShape);
     Contact.AddType(new ContactCreateFcn(PolyAndCircleContact.Create), new ContactDestroyFcn(PolyAndCircleContact.Destroy), ShapeType.PolygonShape, ShapeType.CircleShape);
     Contact.AddType(new ContactCreateFcn(PolygonContact.Create), new ContactDestroyFcn(PolygonContact.Destroy), ShapeType.PolygonShape, ShapeType.PolygonShape);
 }