Exemplo n.º 1
0
 private void ClientRemote_ShowNotEnoughItemsNotification(IProtoItemToolToolbox protoItemToolToolbox)
 {
     NotificationSystem.ClientShowNotification(
         NotificationNotEnoughItems_Title,
         NotificationNotEnoughItems_Message,
         NotificationColor.Bad,
         protoItemToolToolbox.Icon,
         playSound: false);
     ObjectsSoundsPresets.ObjectConstructionSite.PlaySound(ObjectSound.InteractFail);
 }
Exemplo n.º 2
0
        public ConstructionActionState(ICharacter character, IStaticWorldObject worldObject, IItem itemConstructionTool)
            : base(character)
        {
            this.WorldObject               = worldObject;
            this.ItemConstructionTool      = itemConstructionTool;
            this.ProtoItemConstructionTool = (IProtoItemToolToolbox)itemConstructionTool.ProtoGameObject;
            var protoStructure = (IProtoObjectStructure)worldObject.ProtoWorldObject;

            this.Config = protoStructure.GetStructureActiveConfig(worldObject);

            this.currentStageTimeRemainsSeconds = this.currentStageDurationSeconds =
                this.CalculateStageDurationSeconds(character, isFirstStage: true);
            this.ObjectPublicState = worldObject.GetPublicState <StaticObjectPublicState>();

            this.structurePointsMax     = protoStructure.SharedGetStructurePointsMax(worldObject);
            this.stageStructureAddValue = this.structurePointsMax / this.Config.StagesCount;
        }
Exemplo n.º 3
0
 public ProtoItemToolToolboxViewModel([NotNull] IProtoItemToolToolbox toolbox) : base(toolbox)
 {
 }