public Entity(AoeEntityType unitType, float x, float y, float rotation, byte status, uint identifier) { _type = unitType; _x = x; _y = y; _rotation = rotation; _status = status; _identifier = identifier; }
private static char[] ConvertType(AoeEntityType unitType) { return(UnpackString(_unitTypes[unitType])); }
private static bool TryConvertType(AoeEntityType unitType, out string convertedType) { return(_unitTypes.TryGetValue(unitType, out convertedType)); }
private static bool IsHostile(AoeEntityType unitType) { return(_hostiles.Contains(unitType)); }