24 lines
434 B
C#
24 lines
434 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace OpenRa.Game.Traits
|
|
{
|
|
class Building : ITick
|
|
{
|
|
public Building(Actor self)
|
|
{
|
|
}
|
|
|
|
bool first = true;
|
|
public void Tick(Actor self)
|
|
{
|
|
if (first && self.Owner == Game.LocalPlayer)
|
|
self.CenterLocation = Game.CellSize * (float2)self.Location + 0.5f * self.SelectedSize;
|
|
|
|
first = false;
|
|
}
|
|
}
|
|
}
|