Ejemplo n.º 1
0
        public static SharedComponentDataBinder <T> BindSharedComponent <T>(this DiContainer container)
            where T : struct, ISharedComponentData
        {
            var data = new SharedComponentDataSetter <T>();

            container.Bind <IComponentSetter>().To <SharedComponentDataSetter <T> >().FromInstance(data).AsSingle();

            return(new SharedComponentDataBinder <T>(data));
        }
Ejemplo n.º 2
0
 public SharedComponentDataBinder(SharedComponentDataSetter <T> data)
 {
     _data = data;
 }