Пример #1
0
        public Conveyor(InfraType type, string name, Sprite sprite, float speed, PointF direction) : base(name, type, sprite, 10, "")
        {
            this.type   = type;
            this.name   = name;
            this.sprite = sprite;
            this.transportSpeedInPxPerMs = speed;

            this.price = 15;

            this.direction = direction;
        }
Пример #2
0
        protected AbstractInfrastucture(string name, InfraType type, Sprite sprite, int amount, string buildCommand)
        {
            this.name         = name;
            this.type         = type;
            this.sprite       = sprite;
            this.buildCommand = buildCommand;
            this.amount       = amount;

            this.neighbors          = new Dictionary <GameCell, AbstractInfrastucture>();
            this.rawMaterials       = new List <Material>();
            this.gameCells          = new List <GameCell>();
            this.bottomLeftPosition = null;
            this.owner = null;
            this.level = 1;

            this.locker = new object();
        }
Пример #3
0
 public static void Add(Guid OrganizationId, InfraType InfraType, long amount, string message)
 {
     instance.Add(OrganizationId, InfraType, amount, message);
 }
Пример #4
0
 public static bool Test(Guid OrganizationId, InfraType InfraType, long amount)
 {
     return(instance.Test(OrganizationId, InfraType, amount));
 }
Пример #5
0
 public bool Test(Guid OrganizationId, InfraType InfraType, long amount)
 {
     return(true);
 }
Пример #6
0
 public void Add(Guid OrganizationId, InfraType InfraType, long Amount, string Item)
 {
 }