Пример #1
0
        protected override void ClientInitialize(ClientInitializeData data)
        {
            // don't use base implementation
            //base.ClientInitialize(data);

            this.ClientAddAutoStructurePointsBar(data);

            var worldObject = data.GameObject;
            var clientState = GetClientState(worldObject);

            // create renderers
            clientState.Renderer = Client.Rendering.CreateSpriteRenderer(worldObject);

            ProtoObjectWallHelper.ClientRefreshRenderer(data.GameObject);

            SharedWallConstructionRefreshHelper.SharedRefreshNeighborObjects(
                data.GameObject.OccupiedTile,
                isDestroy: false);
        }
Пример #2
0
 public void ClientRefreshRenderer(IStaticWorldObject worldObject)
 {
     ProtoObjectWallHelper.ClientRefreshRenderer(worldObject);
 }