private void ClientRemote_ShowNotEnoughItemsNotification(IProtoItemToolToolbox protoItemToolToolbox) { NotificationSystem.ClientShowNotification( NotificationNotEnoughItems_Title, NotificationNotEnoughItems_Message, NotificationColor.Bad, protoItemToolToolbox.Icon, playSound: false); ObjectsSoundsPresets.ObjectConstructionSite.PlaySound(ObjectSound.InteractFail); }
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; }
public ProtoItemToolToolboxViewModel([NotNull] IProtoItemToolToolbox toolbox) : base(toolbox) { }