Exemple #1
0
        public static void AfterItemTypesServer()
        {
            ItemTypesServer.RegisterType("ExampleBlock1",
                                         new ItemTypesServer.ItemActionBuilder()
                                         .SetOnAdd(ExampleBlockCode.OnAdd)
                                         .SetOnRemove(ExampleBlockCode.OnRemove)
                                         .SetOnChange(ExampleBlockCode.OnChange)
                                         .SetChangeTypes("ExampleBlock1", "ExampleBlock2")
                                         );

            ItemTypesServer.RegisterParent("ExampleBlock2", "ExampleBlock1");
        }