Exemplo n.º 1
0
        public override void Initialize(ICoreAPI api)
        {
            base.Initialize(api);

            resolution = new Vec2i(128, 128);
            if (api.Side.IsClient())
            {
                capi        = (ICoreClientAPI)api;
                ownRenderer = new DisplayRenderer(capi, Pos, Block, resolution.X, resolution.Y, 1000 / 144);
                capi.Event.RegisterRenderer(ownRenderer, EnumRenderStage.Opaque);
                RegisterGameTickListener(UpdateDisplay, 1000 / 15);
            }
            MarkDirty(true);
        }